dvb-t 數位電視 VLC 網路串流設定

用 VLC 在區域網路上作 Multicast 播放數位電視的訊號

1. 先在 Client 及 Server 電腦上都裝上 VLC media player ( http://www.videolan.org/vlc/)

2. 然後在裝了 USB 電視棒 Server 端的電腦執行下面其中一行指令
(它把同一個頻率中的三個節目分別廣播到 227.2.2.7:2227, 228.2.2.8:2228, 229.2.2.9:2229 這三個 multicast 位址)

// 中視
"C:\Program Files\VideoLAN\VLC\vlc.exe" --ts-es-id-pid --programs="100,101,102" dvb-t://frequency=533000000 --dvb-bandwidth=6 --sout-standard-access=udp --ttl=10 --miface-addr="192.168.1.1" --sout-standard-mux=ts :sout="#duplicate{dst=std{dst=227.2.2.7:2227},select=program=100,dst=std{dst=228.2.2.8:2228},select=program=101,dst=std{dst=229.2.2.9:2229},select=program=102}"
// 公視
"C:\Program Files\VideoLAN\VLC\vlc.exe" --ts-es-id-pid --programs="201,202,203" dvb-t://frequency=545000000 --dvb-bandwidth=6 --sout-standard-access=udp --ttl=10 --miface-addr="192.168.1.1" --sout-standard-mux=ts :sout="#duplicate{dst=std{dst=227.2.2.7:2227},select=program=201,dst=std{dst=228.2.2.8:2228},select=program=202,dst=std{dst=229.2.2.9:2229},select=program=203}"
// 民視
"C:\Program Files\VideoLAN\VLC\vlc.exe" --ts-es-id-pid --programs="300,301,302" dvb-t://frequency=557000000 --dvb-bandwidth=6 --sout-standard-access=udp --ttl=10 --miface-addr="192.168.1.1" --sout-standard-mux=ts :sout="#duplicate{dst=std{dst=227.2.2.7:2227},select=program=300,dst=std{dst=228.2.2.8:2228},select=program=301,dst=std{dst=229.2.2.9:2229},select=program=302}"
// 台視
"C:\Program Files\VideoLAN\VLC\vlc.exe" --ts-es-id-pid --programs="400,401,402" dvb-t://frequency=581000000 --dvb-bandwidth=6 --sout-standard-access=udp --ttl=10 --miface-addr="192.168.1.1" --sout-standard-mux=ts :sout="#duplicate{dst=std{dst=227.2.2.7:2227},select=program=400,dst=std{dst=228.2.2.8:2228},select=program=401,dst=std{dst=229.2.2.9:2229},select=program=402}"
// 華視
"C:\Program Files\VideoLAN\VLC\vlc.exe" --ts-es-id-pid --programs="501,502,503" dvb-t://frequency=593000000 --dvb-bandwidth=6 --sout-standard-access=udp --ttl=10 --miface-addr="192.168.1.1" --sout-standard-mux=ts :sout="#duplicate{dst=std{dst=227.2.2.7:2227},select=program=501,dst=std{dst=228.2.2.8:2228},select=program=502,dst=std{dst=229.2.2.9:2229},select=program=503}"
// Hi_HD
"C:\Program Files\VideoLAN\VLC\vlc.exe" dvb-t://frequency=569000000 --dvb-bandwidth=6 --ttl=10 --miface-addr="192.168.1.1" --sout-standard-access=udp --sout-standard-mux=ts :sout="#duplicate{dst=std{dst=227.2.2.7:2227},select=program=200}"

--miface-addr="192.168.1.1" // IP address for the default multicast interface in multiple nic environment.
這個參數是指定輸出介面位址,如果有多張網卡,請改成想要輸出的網卡IP,單張網卡時可以不要這個參數。

3. 在想要看電視的 Client 端,把下面內容存成 TV.m3u ,然後用 VLC 開啟就可以了
(你可以同時開3個VLC 同時看3個節目)
-------------------------------
#EXTM3U
udp://@227.2.2.7:2227
udp://@228.2.2.8:2228
udp://@229.2.2.9:2229
--------------------------------



// 頻道資料
:usage
echo ;; Taipei
echo ;; Frequency in KHz, Video PID, Audio PID, Program Name
echo 1=533000, 03E9, 03EA, CH24-1:中視 (101)
echo 2=533000, 03F3, 03F4, CH24-2:中視-新聞台 (102)
echo 3=533000, 03FD, 03FE, CH24-3:中視-綜藝台 (103)
echo 4=545000, 07DB, 07DC, CH26-1:公視 PTS (201)
echo 5=545000, 07E5, 07E6, CH26-2:DiMoTV (202)
echo 6=545000, 0000, 07F0, CH26-3:HakkaTV (203)
echo 7=557000, 0BB9, 0BBA, CH28-1:民視 (300)
echo 8=557000, 0BC3, 0BC4, CH28-2:民視交通台 (301)
echo 9=557000, 0BCD, 0BCE, CH28-3:民視新聞台 (302)
echo 10=581000, 0FA1, 0FA2, CH32-1:台視 TTV (400)
echo 11=581000, 0FAB, 0FAC, CH32-2:台視財經台 (401)
echo 12=581000, 0FB5, 0FB6, CH32-3:台視健康娛樂台 (402)
echo 13=593000, 1393, 1394, CH34-1:華視 CTS (501)
echo 14=593000, 139D, 139E, CH34-2:華視教育台 (502)
echo 15=593000, 13A7, 13A8, CH34-3:華視休閒台 (503)


// VLC 在本機看電視的播放清單,channels.conf , utf8
---------------------------------------------------------------------------------------------
公視 PTS:545000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:2011:2012:201
DiMoTV:545000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:2021:2022:202
HakkaTV:545000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:2031:2032:203
民視:557000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:3001:3002:300
民視交通台:557000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:3011:3012:301
民視新聞台:557000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:3021:3022:302
Hi_HD:569000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:0:0:200
台視 TTV:581000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:4001:4002:400
台視財經台:581000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:4011:4012:401
台視健康娛樂台:581000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:4021:4022:402
台視廣播台:581000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:0:4042:404
華視 CTS:593000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:5011:5012:501
華視教育台:593000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:5021:5022:502
華視休閒台:593000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_2_3:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:5031:5032:503
中視:533000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:1001:1002:100
中視新聞台:533000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:1011:1012:101
中視綜藝台:533000000:INVERSION_AUTO:BANDWIDTH_6_MHZ:FEC_2_3:FEC_AUTO:QAM_16:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:1021:1022:102
---------------------------------------------------------------------------------------------

No comments: