Page 1 of 1

VLM to MUX multiple inputs into one TS

Posted: 04 Oct 2009 14:15
by MaSTeRMinD
I need some help with muxing to inputs into one TS.
This is what i got as a VLM configuration

Code: Select all

new chan1 broadcast enabled setup chan1 input "udp://@239.20.20.101:10135" setup chan1 option sout-ts-es-id-pid setup chan1 option sout-ts-program-pmt="100" setup chan1 option sout-ts-pid-video=110 setup chan1 option sout-ts-pid-audio=120 setup chan1 option sout-ts-sdtdesc="Chan1" setup chan1 output #duplicate{dst=bridge-out{id=110},select=video,dst=bridge-out{id=120},select=audio} control chan1 play new chan2 broadcast enabled setup chan2 input "udp://@239.20.109.7:12008" setup chan2 option sout-ts-es-id-pid setup chan2 option sout-ts-program-pmt="200" setup chan2 option sout-ts-pid-video=210 setup chan2 option sout-ts-pid-audio=220 setup chan2 option sout-ts-sdtdesc="Chan2" setup chan2 output #duplicate{dst=bridge-out{id=210},select=video,dst=bridge-out{id=220},select=audio} control chan2 play new channel1 broadcast enabled setup channel1 option sout-ts-es-id-pid setup channel1 option sout-ts-tsid=1 setup channel1 option sout-ts-netid=10 setup channel1 option sout-ts-program-pmt="100,200" setup channel1 option sout-ts-muxpmt="110,120,,210,220" setup channel1 option sout-ts-sdtdesc="TEST,Chan1,TEST,Chan2" setup channel1 output #bridge-in{id-offset=0}:duplicate{dst=std{access=udp{ttl=5},mux=ts,dst=172.16.200.5:12000} control channel1 play
I tried many other combinations and none of them works. I want to know is it even possible?
If yes what may be wrong with my config?

This is the log

Code: Select all

[0x83116e8] main interface error: no suitable interface module [0x8236140] main libvlc error: interface "inhibit,none" initialization failed [0x83116e8] main interface debug: looking for interface module: 1 candidate [0x83116e8] main interface debug: using interface module "screensaver" [0x83116e8] main interface debug: TIMER module_need() : 0.216 ms - Total 0.216 ms / 1 intvls (Avg 0.216 ms) [0x83116e8] main interface debug: thread started [0x83116e8] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151) [0x82ebfb0] main interface debug: looking for interface module: 1 candidate [0x82ebfb0] logger interface: using logger... [0x82ebfb0] logger interface debug: opening logfile `vlclog.txt' [0x83116e8] screensaver interface warning: failed to connect to the D-BUS daemon: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed. [0x82ebfb0] main interface debug: using interface module "logger" [0x82ebfb0] main interface debug: TIMER module_need() : 0.505 ms - Total 0.505 ms / 1 intvls (Avg 0.505 ms) [0x82ebfb0] main interface debug: thread started [0x82ebfb0] main interface debug: thread ended [0x82ebfb0] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151) [0x82ecec8] main interface debug: looking for interface module: 1 candidate [0x82ecec8] main interface debug: using interface module "signals" [0x82ecec8] main interface debug: TIMER module_need() : 0.196 ms - Total 0.196 ms / 1 intvls (Avg 0.196 ms) [0x82ecec8] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151) [0x82ecec8] main interface debug: thread started [0x82ecec8] main interface debug: thread ended [0x82ee210] main interface debug: looking for interface module: 1 candidate [0x82ee210] main interface warning: no interface module matching "globalhotkeys,none" could be loaded [0x82ee210] main interface debug: TIMER module_need() : 4.317 ms - Total 4.317 ms / 1 intvls (Avg 4.317 ms) [0x82ee210] main interface error: no suitable interface module [0x8236140] main libvlc error: interface "globalhotkeys,none" initialization failed [0x82ee1f8] main interface debug: looking for interface module: 1 candidate [0x82ee1f8] dummy interface: using the dummy interface module... [0x82ee1f8] main interface debug: using interface module "dummy" [0x82ee1f8] main interface debug: TIMER module_need() : 0.456 ms - Total 0.456 ms / 1 intvls (Avg 0.456 ms) [0x82ee1f8] main interface debug: thread started [0x82ee1f8] main interface debug: thread ended [0x82ee1f8] main interface debug: thread (interface) created at priority 0 (interface/interface.c:151) [0x82e8028] [Media: chan1] main demux debug: using demux module "ts" [0x82e8028] [Media: chan1] main demux debug: TIMER module_need() : 19.640 ms - Total 19.640 ms / 1 intvls (Avg 19.640 ms) [0x82e8028] [Media: chan1] ts demux debug: DEMUX_SET_GROUP 0 (nil) [0x82e4e38] [Media: chan1] main input debug: starting in async mode [0x82dac10] [Media: chan1] access_udp access warning: unimplemented query in control [0x82e4e38] [Media: chan1] main input debug: `udp://@239.20.20.101:10135' successfully opened [0x82e8028] [Media: chan1] ts demux debug: pid[512] unknown [0x82e8028] [Media: chan1] ts demux debug: pid[650] unknown [0x82e8028] [Media: chan1] ts demux debug: pid[128] unknown [0x82f7e60] [Media: chan2] main demux debug: using demux module "ts" [0x82f7e60] [Media: chan2] main demux debug: TIMER module_need() : 40.304 ms - Total 40.304 ms / 1 intvls (Avg 40.304 ms) [0x82f7e60] [Media: chan2] ts demux debug: DEMUX_SET_GROUP 0 (nil) [0x82dbb98] [Media: chan2] main input debug: starting in async mode [0x82f9688] [Media: chan2] access_udp access warning: unimplemented query in control [0x82dbb98] [Media: chan2] main input debug: `udp://@239.20.109.7:12008' successfully opened [0x82f7e60] [Media: chan2] ts demux debug: pid[66] unknown [0x82f7e60] [Media: chan2] ts demux debug: pid[69] unknown [0x82f7e60] [Media: chan2] ts demux debug: pid[68] unknown libdvbpsi error (PSI decoder): TS discontinuity (received 15, expected 0) for PID 0 [0x82e8028] [Media: chan1] ts demux debug: PATCallBack called [0x82e8028] [Media: chan1] ts demux debug: new PAT ts_id=1 version=1 current_next=1 [0x82e8028] [Media: chan1] ts demux debug: * number=1 pid=256 libdvbpsi error (PSI decoder): TS discontinuity (received 2, expected 0) for PID 256 [0x82e8028] [Media: chan1] ts demux debug: PMTCallBack called [0x82e8028] [Media: chan1] ts demux debug: new PMT program number=1 version=3 pid_pcr=128 [0x82e8028] [Media: chan1] ts demux debug: * es pid=512 type=2 dr->i_tag=0x2 [0x82e8028] [Media: chan1] ts demux debug: * es pid=512 type=2 dr->i_tag=0x52 [0x82e8028] [Media: chan1] ts demux debug: * es pid=512 type=2 fcc=mpgv [0x82e4e38] [Media: chan1] main input debug: selecting program id=1 [0x82fdb58] [Media: chan1] main packetizer debug: looking for packetizer module: 21 candidates [0x82fdb58] [Media: chan1] main packetizer debug: using packetizer module "packetizer_mpegvideo" [0x82fdb58] [Media: chan1] main packetizer debug: TIMER module_need() : 2.231 ms - Total 2.231 ms / 1 intvls (Avg 2.231 ms) [0x82fdb58] [Media: chan1] main packetizer debug: thread started [0x82fdb58] [Media: chan1] main packetizer debug: thread (decoder) created at priority 0 (input/decoder.c:315) [0x82e8028] [Media: chan1] ts demux debug: * es pid=650 type=4 dr->i_tag=0x3 [0x82e8028] [Media: chan1] ts demux debug: * es pid=650 type=4 dr->i_tag=0xa [0x82e8028] [Media: chan1] ts demux debug: * es pid=650 type=4 dr->i_tag=0x52 [0x82e8028] [Media: chan1] ts demux debug: * es pid=650 type=4 fcc=mpga [0x8329ba8] [Media: chan1] main packetizer debug: looking for packetizer module: 21 candidates [0x8329ba8] [Media: chan1] main packetizer debug: using packetizer module "mpeg_audio" [0x8329ba8] [Media: chan1] main packetizer debug: TIMER module_need() : 0.573 ms - Total 0.573 ms / 1 intvls (Avg 0.573 ms) [0x8329ba8] [Media: chan1] main packetizer debug: thread started [0x8329ba8] [Media: chan1] main packetizer debug: thread (decoder) created at priority 5 (input/decoder.c:315) [0x82e8028] [Media: chan1] ts demux warning: first packet for pid=512 cc=0xd [0x82e8028] [Media: chan1] ts demux warning: first packet for pid=650 cc=0xe [0x82e4e38] [Media: chan1] main input debug: Buffering 0% [0x82e4e38] [Media: chan1] main input debug: Buffering 11% [0x82e4e38] [Media: chan1] main input debug: Buffering 22% [0x82e4e38] [Media: chan1] main input debug: Buffering 33% [0x82f7e60] [Media: chan2] ts demux debug: PATCallBack called [0x82f7e60] [Media: chan2] ts demux debug: new PAT ts_id=19938 version=21 current_next=1 [0x82f7e60] [Media: chan2] ts demux debug: * number=1 pid=66 [0x82f7e60] [Media: chan2] ts demux debug: PMTCallBack called [0x82f7e60] [Media: chan2] ts demux debug: new PMT program number=1 version=24 pid_pcr=69 [0x82f7e60] [Media: chan2] ts demux debug: * es pid=68 type=3 dr->i_tag=0xa [0x82f7e60] [Media: chan2] ts demux debug: * es pid=68 type=3 fcc=mpga [0x82dbb98] [Media: chan2] main input debug: selecting program id=1 [0x832d1a0] [Media: chan2] main packetizer debug: looking for packetizer module: 21 candidates [0x832d1a0] [Media: chan2] main packetizer debug: using packetizer module "mpeg_audio" [0x832d1a0] [Media: chan2] main packetizer debug: TIMER module_need() : 0.358 ms - Total 0.358 ms / 1 intvls (Avg 0.358 ms) [0x832d1a0] [Media: chan2] main packetizer debug: thread started [0x832d1a0] [Media: chan2] main packetizer debug: thread (decoder) created at priority 5 (input/decoder.c:315) [0x82f7e60] [Media: chan2] ts demux debug: * es pid=69 type=2 fcc=mpgv [0x832e0b8] [Media: chan2] main packetizer debug: looking for packetizer module: 21 candidates [0x832e0b8] [Media: chan2] main packetizer debug: using packetizer module "packetizer_mpegvideo" [0x832e0b8] [Media: chan2] main packetizer debug: TIMER module_need() : 0.459 ms - Total 0.459 ms / 1 intvls (Avg 0.459 ms) [0x832e0b8] [Media: chan2] main packetizer debug: thread started [0x832e0b8] [Media: chan2] main packetizer debug: thread (decoder) created at priority 0 (input/decoder.c:315) [0x82f7e60] [Media: chan2] ts demux warning: first packet for pid=69 cc=0x1 [0x82f7e60] [Media: chan2] ts demux warning: first packet for pid=68 cc=0xd [0x82e4e38] [Media: chan1] main input debug: Buffering 45% [0x82e4e38] [Media: chan1] main input debug: Buffering 56% [0x82dbb98] [Media: chan2] main input debug: Buffering 0% [0x82dbb98] [Media: chan2] main input debug: switching to sync mode [0x82e4e38] [Media: chan1] main input debug: Buffering 68% [0x832e0b8] [Media: chan2] packetizer_mpegvideo packetizer debug: size 528x576 fps=25.000 [0x82e4e38] [Media: chan1] main input debug: Buffering 79% [0x832d1a0] [Media: chan2] mpeg_audio packetizer debug: MPGA channels:2 samplerate:48000 bitrate:96 [0x82dfa08] [Media: chan2] main stream output debug: adding a new sout input (sout_input:0x832d100) [0x82e01b0] [Media: chan2] stream_out_duplicate stream out debug: duplicated a new stream codec=mpga (es=68 group=1) [0x82e01b0] [Media: chan2] stream_out_duplicate stream out debug: - ignored for output 0 [0x82f92d8] [Media: chan2] stream_out_bridge stream out debug: bridging out input codec=mpga id=220 pos=0 [0x82e01b0] [Media: chan2] stream_out_duplicate stream out debug: - added for output 1 [0x82dbb98] [Media: chan2] main input debug: Buffering 23% [0x82e4e38] [Media: chan1] main input debug: switching to sync mode [0x8329ba8] [Media: chan1] mpeg_audio packetizer debug: MPGA channels:2 samplerate:48000 bitrate:128 [0x82e1398] [Media: chan1] main stream output debug: adding a new sout input (sout_input:0xb7106050) [0x82d8890] [Media: chan1] stream_out_duplicate stream out debug: duplicated a new stream codec=mpga (es=650 group=1) [0x82d8890] [Media: chan1] stream_out_duplicate stream out debug: - ignored for output 0 [0x82dc340] [Media: chan1] stream_out_bridge stream out debug: bridging out input codec=mpga id=120 pos=1 [0x82d8890] [Media: chan1] stream_out_duplicate stream out debug: - added for output 1 [0x82dfa08] [Media: chan2] main stream output debug: adding a new sout input (sout_input:0xb7106070) [0x82e01b0] [Media: chan2] stream_out_duplicate stream out debug: duplicated a new stream codec=mpgv (es=69 group=1) [0x82f9058] [Media: chan2] stream_out_bridge stream out debug: bridging out input codec=mpgv id=210 pos=2 [0x82e01b0] [Media: chan2] stream_out_duplicate stream out debug: - added for output 0 [0x82e01b0] [Media: chan2] stream_out_duplicate stream out debug: - ignored for output 1 [0x82e4e38] [Media: chan1] main input debug: Buffering 90% [0x82e4e38] [Media: chan1] main input debug: Stream buffering done (306 ms in 293 ms) [0x82e4e38] [Media: chan1] main input debug: Decoder buffering done in 0 ms [0x82dbb98] [Media: chan2] main input debug: Buffering 46% [0x82dbb98] [Media: chan2] main input debug: Buffering 70% [0x82dbb98] [Media: chan2] main input debug: Buffering 94% [0x82dbb98] [Media: chan2] main input debug: Stream buffering done (351 ms in 344 ms) [0x82dbb98] [Media: chan2] main input debug: Decoder buffering done in 0 ms [0x82fdb58] [Media: chan1] packetizer_mpegvideo packetizer debug: size 704x576 fps=25.000 [0x82e1398] [Media: chan1] main stream output debug: adding a new sout input (sout_input:0xb710f678) [0x82d8890] [Media: chan1] stream_out_duplicate stream out debug: duplicated a new stream codec=mpgv (es=512 group=1) [0x82da1d0] [Media: chan1] stream_out_bridge stream out debug: bridging out input codec=mpgv id=110 pos=3 [0x82d8890] [Media: chan1] stream_out_duplicate stream out debug: - added for output 0 [0x82d8890] [Media: chan1] stream_out_duplicate stream out debug: - ignored for output 1 ^C[0x82ecec8] signals interface error: Caught Interrupt signal, exiting... [0x8236140] main libvlc debug: deactivating the playlist [0x82e2d78] main playlist debug: Deactivate [0x82e2d78] main playlist debug: saving Media Library to file /home/monitor/.local/share/vlc/ml.xspf [0x82e2d78] main playlist debug: looking for playlist export module: 1 candidate [0x82e2d78] main playlist debug: using playlist export module "export" [0x82e2d78] main playlist debug: TIMER module_need() : 0.319 ms - Total 0.319 ms / 1 intvls (Avg 0.319 ms) [0x82e2d78] main playlist debug: removing module "export" [0x82e2d78] main playlist debug: Deactivated [0x8236140] main libvlc debug: removing all services discovery tasks [0x8236140] main libvlc debug: removing all interfaces [0x82ee1f8] main interface debug: removing module "dummy" [0x82ecec8] main interface debug: removing module "signals" [0x82ebfb0] main interface debug: removing module "logger" [0x83116e8] main interface debug: removing module "screensaver" [0x82d7370] main interface debug: removing module "hotkeys" [0x82dac10] [Media: chan1] main access debug: waitpipe: object killed [0x82dac10] [Media: chan1] main access debug: socket 4 polling interrupted [0x82e8028] [Media: chan1] ts demux debug: eof ? [0x82e4e38] [Media: chan1] main input debug: EOF reached [0x82e4e38] [Media: chan1] main input debug: control type=0 [0x82e4e38] [Media: chan1] main input debug: control: stopping input [0x82fdb58] [Media: chan1] main packetizer debug: removing module "packetizer_mpegvideo" [0x82fdb58] [Media: chan1] main packetizer debug: killing decoder fourcc `mpgv', 0 PES in FIFO [0x82e1398] [Media: chan1] main stream output debug: removing a sout input (sout_input:0xb710f678) [0x8329ba8] [Media: chan1] main packetizer debug: removing module "mpeg_audio" [0x8329ba8] [Media: chan1] main packetizer debug: killing decoder fourcc `mpga', 0 PES in FIFO [0x82e1398] [Media: chan1] main stream output debug: removing a sout input (sout_input:0xb7106050) [0x82e8028] [Media: chan1] ts demux debug: pid list: [0x82e8028] [Media: chan1] ts demux debug: - pid[0] seen [0x82e8028] [Media: chan1] ts demux debug: - pid[128] seen [0x82e8028] [Media: chan1] ts demux debug: - pid[256] seen [0x82e8028] [Media: chan1] ts demux debug: - pid[512] seen [0x82e4e38] [Media: chan1] main input debug: Program doesn't contain anymore ES [0x82e8028] [Media: chan1] ts demux debug: - pid[650] seen [0x82e8028] [Media: chan1] ts demux debug: - pid[8191] seen [0x82e8028] [Media: chan1] main demux debug: removing module "ts" [0x82e77d0] [Media: chan1] main stream debug: removing module "stream_filter_record" [0x82dac10] [Media: chan1] main access debug: removing module "access_udp" [0x82e4e38] [Media: chan1] main input debug: thread ended [0x82d8890] main stream out debug: destroying chain... (name=duplicate) [0x82d8890] stream_out_duplicate stream out debug: closing a duplication [0x82da1d0] main stream out debug: destroying chain... (name=bridge-out) [0x82da1d0] main stream out debug: removing module "stream_out_bridge" [0x82da1d0] main stream out debug: destroying chain done [0x82dc340] main stream out debug: destroying chain... (name=bridge-out) [0x82dc340] main stream out debug: removing module "stream_out_bridge" [0x82dc340] main stream out debug: destroying chain done [0x82d8890] main stream out debug: removing module "stream_out_duplicate" [0x82d8890] main stream out debug: destroying chain done [0x82e4e38] [Media: chan1] main input debug: TIMER input launching for 'udp://239.20.20.101:10135' : 35.719 ms - Total 35.719 ms / 1 intvls (Avg 35.719 ms) [0x82f9688] [Media: chan2] main access debug: waitpipe: object killed [0x82f9688] [Media: chan2] main access debug: socket 6 polling interrupted [0x82dbb98] [Media: chan2] main input debug: control type=0 [0x82dbb98] [Media: chan2] main input debug: control: stopping input [0x832d1a0] [Media: chan2] main packetizer debug: removing module "mpeg_audio" [0x832d1a0] [Media: chan2] main packetizer debug: killing decoder fourcc `mpga', 0 PES in FIFO [0x82dfa08] [Media: chan2] main stream output debug: removing a sout input (sout_input:0x832d100) [0x832e0b8] [Media: chan2] main packetizer debug: removing module "packetizer_mpegvideo" [0x832e0b8] [Media: chan2] main packetizer debug: killing decoder fourcc `mpgv', 0 PES in FIFO [0x82dfa08] [Media: chan2] main stream output debug: removing a sout input (sout_input:0xb7106070) [0x82f7e60] [Media: chan2] ts demux debug: pid list: [0x82f7e60] [Media: chan2] ts demux debug: - pid[0] seen [0x82f7e60] [Media: chan2] ts demux debug: - pid[66] seen [0x82f7e60] [Media: chan2] ts demux debug: - pid[68] seen [0x82dbb98] [Media: chan2] main input debug: Program doesn't contain anymore ES [0x82f7e60] [Media: chan2] ts demux debug: - pid[69] seen [0x82f7e60] [Media: chan2] ts demux debug: - pid[8191] seen [0x82f7e60] [Media: chan2] main demux debug: removing module "ts" [0x82fa118] [Media: chan2] main stream debug: removing module "stream_filter_record" [0x82f9688] [Media: chan2] main access debug: removing module "access_udp" [0x82dbb98] [Media: chan2] main input debug: thread ended [0x82e01b0] main stream out debug: destroying chain... (name=duplicate) [0x82e01b0] stream_out_duplicate stream out debug: closing a duplication [0x82f9058] main stream out debug: destroying chain... (name=bridge-out) [0x82f9058] main stream out debug: removing module "stream_out_bridge" [0x82f9058] main stream out debug: destroying chain done [0x82f92d8] main stream out debug: destroying chain... (name=bridge-out) [0x82f92d8] main stream out debug: removing module "stream_out_bridge" [0x82f92d8] main stream out debug: destroying chain done [0x82e01b0] main stream out debug: removing module "stream_out_duplicate" [0x82e01b0] main stream out debug: destroying chain done [0x82dbb98] [Media: chan2] main input debug: TIMER input launching for 'udp://239.20.109.7:12008' : 47.213 ms - Total 47.213 ms / 1 intvls (Avg 47.213 ms) [0x8236140] main libvlc debug: removing playlist [0x82e2d78] main playlist debug: Destroyed