Page 1 of 1

[SOLVED] two channel streaming through vlc

Posted: 18 Sep 2013 14:21
by hislitermos
Hello,

I opened up two ssh panel with the same username and then run two different stream.
When I watch the second one, sound is belonging to the first stream but video is belonging to the second one.
How can I show ssh the right path for different audio and video input?

The first stream:

Code: Select all

vlc -vvv mms://89.201.164.181/stv :sout="#transcode{vcodec=mp2v,vb=1024,fps=25,scale=1,width=640,height=480,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{dst=127.0.0.1,sdp=file:///home/ermos/vlc/vlc.sdp,port=5004,ttl=1}" :sout-all :sout-keep
Second stream:

Code: Select all

vlc -vvv http://domain.name/i/live_1@90368/master.m3u8?dw=60 :sout="#transcode{vcodec=mp2v,vb=1024,fps=25,scale=1,width=640,height=480,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{dst=127.0.0.1,sdp=file:///home/ermos/vlc/vlc2.sdp,port=5004,ttl=1}" :sout-all :sout-keep
I also changed second line as shown below but no good result.

Code: Select all

vlc -vvv http://domain.name/i/live_1@90368/master.m3u8?dw=60 :sout="#transcode{vcodec=mp2v,vb=1024,fps=25,scale=1,width=640,height=480,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{dst=127.0.0.1,sdp=file:///home/ermos/vlc/vlc2.sdp,port-audio=5006,port-video=5008,ttl=1}" :sout-all :sout-keep
Thanks in advance
Ermos

Re: two channel streaming through vlc

Posted: 18 Sep 2013 17:25
by hislitermos
When I set different port nrs for both stream, both of them plays but I receive some errors.

Code: Select all

avcodec encoder warning: almost fed libavcodec with two frames with the same PTS (17255669106)
Anyway, it works.

Thanks
Ermos