Page 1 of 1

HTTP Streaming to two files with different bitrate

Posted: 07 Apr 2010 16:25
by simon272
First of all excuse me for insufficient skills in English.

Q: At this moment I use simple .FLV streaming scheme:
/usr/local/bin/vlc -d /tmp/rawdv --sout "#transcode{venc=x264{keyinit=10},vcodec=x264,vb=200,width=320,height=240,acodec=aac,ab=48,channels=1,samplerate=22050}: std{access=http,dst=0.0.0.0:89080/stream.flv}"

... But I'd like to have two streams from one source with different video bit rate (200 and 500 for example) on same port (...:8080/stream200.flv and ...:8080/stream500.flv). Can any one advise me in this question ? Thanks !

Re: HTTP Streaming to two files with different bitrate

Posted: 07 Apr 2010 19:42
by Rémi Denis-Courmont
You can use the same port and a different path, as long as you use a single VLC instance.

Re: HTTP Streaming to two files with different bitrate

Posted: 07 Apr 2010 22:51
by simon272
I don't Understand how I can use one instance if need multiple trans coding + multiple streaming (instead of trans coding + multiple streaming). Can you show me how should looks -sout part schematically?
...Link to some documentation which describes command line for this or similar case will be priceless too.

Thank you for reply!

Re: HTTP Streaming to two files with different bitrate

Posted: 08 Apr 2010 17:07
by Rémi Denis-Courmont
Please look for VLM in the documentation.

Re: HTTP Streaming to two files with different bitrate

Posted: 08 Apr 2010 17:17
by simon272
Thank you, I found and implement this scheme:

T200='dst="transcode{venc=x264{keyinit=10},vcodec=x264,vb=200,width=320,height=240,acodec=aac,ab=48,channels=1,samplerate=22050}:standard{access=http,dst=0.0.0.0:8080/efir.flv}"'
T500='dst="transcode{venc=x264{keyinit=5},vcodec=x264,vb=450,width=640,height=480,deinterlace,acodec=mp4a,ab=48,channels=1,samplerate=22050}:standard{access=http,dst=0.0.0.0:8080/efir0.flv}"'

/usr/local/bin/cvlc -vvv /tmp/rawdv --sout '#duplicate{'$T200','$T500'}'

VLC is awesome streaming server !!! Thanks for it !