HTTP Streaming to two files with different bitrate

About encoding, codec settings, muxers and filter usage
simon272
Blank Cone
Blank Cone
Posts: 21
Joined: 07 Apr 2010 15:38
VLC version: 1.0.1
Operating System: FreeBSD
Contact:

HTTP Streaming to two files with different bitrate

Postby simon272 » 07 Apr 2010 16:25

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 !

Rémi Denis-Courmont
Developer
Developer
Posts: 15229
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: HTTP Streaming to two files with different bitrate

Postby Rémi Denis-Courmont » 07 Apr 2010 19:42

You can use the same port and a different path, as long as you use a single VLC instance.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

simon272
Blank Cone
Blank Cone
Posts: 21
Joined: 07 Apr 2010 15:38
VLC version: 1.0.1
Operating System: FreeBSD
Contact:

Re: HTTP Streaming to two files with different bitrate

Postby simon272 » 07 Apr 2010 22:51

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!

Rémi Denis-Courmont
Developer
Developer
Posts: 15229
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: HTTP Streaming to two files with different bitrate

Postby Rémi Denis-Courmont » 08 Apr 2010 17:07

Please look for VLM in the documentation.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

simon272
Blank Cone
Blank Cone
Posts: 21
Joined: 07 Apr 2010 15:38
VLC version: 1.0.1
Operating System: FreeBSD
Contact:

Re: HTTP Streaming to two files with different bitrate

Postby simon272 » 08 Apr 2010 17:17

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 !


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests