Page 1 of 1

duplicate stream ignored

Posted: 19 Mar 2010 13:37
by weeraman
Hi,

I'm to use the below code for multiple streaming.

Code: Select all

:sout=#duplicate{dst="transcode{vcodec=mp4v,width=320,height=240,vb=350,acodec=mp4a,ab=64,channels=2,samplerate=44100}:rtp{dst=10.48.233.38,port-video=7702,port-audio=7704,sdp=file://c:\vlcsdp\demux1.sdp}",select="program=1",dst="transcode{vcodec=mp4v,width=320,height=240,vb=350,acodec=mp4a,ab=64,channels=2,samplerate=44100}:rtp{dst=10.48.233.38,port-video=7802,port-audio=7804,sdp=file://c:\vlcsdp\demux2.sdp}",select="program=2",dst="transcode{vcodec=mp4v,width=320,height=240,vb=350,acodec=mp4a,ab=64,channels=2,samplerate=44100}:rtp{dst=10.48.233.38,port-video=7902,port-audio=7904,sdp=file://c:\vlcsdp\demux3.sdp}",select="program=3"}
sometimes two chains are started. (demux1 and demux 2) but many times only demux 1 chain starts (the 1st chain)
When i took the message log it shows that other two (demux 2, demux 3) have been ignored. But no error or reason given.
What could be the reason for this ?
main debug: thread started
main debug: thread (RTP send thread) created at priority 15 (../../.././modules/stream_out/rtp.c:1282)
stream_out_rtp debug: sdp=
v=0
o=- 14937465064192475136 14937465064192475136 IN IP4 CNCAPTURE
s=Unnamed
i=N/A
c=IN IP4 10.48.233.38
t=0 0
a=tool:vlc 1.0.5
a=recvonly
a=type:broadcast
a=charset:UTF-8
m=video 7702 RTP/AVP 96
b=AS:350
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=3; config=000001b001000001b58913000001000000012000c48d8800cd0a041e1463000001b24c61766335322e34392e30;
m=audio 7704 RTP/AVP 97
b=AS:64
a=rtpmap:97 mpeg4-generic/48000/2
a=fmtp:97 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1190; SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1;

stream_out_duplicate debug: - added for output 0
stream_out_duplicate debug: - ignored for output 1
stream_out_duplicate debug: - ignored for output 2

ts warning: discontinuity received 0x5 instead of 0x3 (pid=302)
ts warning: discontinuity received 0xd instead of 0xc (pid=102)
ts warning: discontinuity received 0xb instead of 0x9 (pid=302)
ts warning: discontinuity received 0xf instead of 0xc (pid=103)

Re: Solved-duplicate stream ignored

Posted: 23 Mar 2010 07:19
by weeraman
Well after carefully read the VLC help, found that only one elementary stream will be put out by default so we have to use --sout-all :)

then the code would look like this;

Code: Select all

:sout-all: sout=#duplicate{dst="transcode{vcodec=mp4v,width=320,height=240,vb=350,acodec=mp4a,ab=64,channels=2,samplerate=44100}:rtp{dst=10.48.233.38,port-video=7702,port-audio=7704,sdp=file://c:\vlcsdp\demux1.sdp}",select="program=1",dst="transcode{vcodec=mp4v,width=320,height=240,vb=350,acodec=mp4a,ab=64,channels=2,samplerate=44100}:rtp{dst=10.48.233.38,port-video=7802,port-audio=7804,sdp=file://c:\vlcsdp\demux2.sdp}",select="program=2",dst="transcode{vcodec=mp4v,width=320,height=240,vb=350,acodec=mp4a,ab=64,channels=2,samplerate=44100}:rtp{dst=10.48.233.38,port-video=7902,port-audio=7904,sdp=file://c:\vlcsdp\demux3.sdp}",select="program=3"}