Cannot stream mp4 lower than 350kbps (XP)

About encoding, codec settings, muxers and filter usage
DNeser
New Cone
New Cone
Posts: 3
Joined: 03 Mar 2009 19:31

Cannot stream mp4 lower than 350kbps (XP)

Postby DNeser » 03 Mar 2009 19:35

I have been tasked with providing a solution which would stream multicast mp4 RTP traffic onto a network with a data rate of 128, 256, and 384 kbps. I have attempted to do this by encoding the video using an open source program called "Handbrake" to rip video from a DVD to a single VOB file at each of the rates mentioned. Then by using VLC to stream the video at the mentioned rates as well. It seems that no matter what I try; modifying the scale, lowering the streaming bit rate, or changing the frame rate, I cannot get the stream below ~400kbps. The CLI command I am using is as follows:

c:\vlc.exe "file://C:\software\Video\Sniper.mp4" :sout=#transcode{fps=15,vcodec=mp4v,vb=128,scale=1}:duplicate{dst=rtp{dst=225.2.2.9,mux=ts,port=1234}}


Modifying the scale seems to improve video quality, lowering the bit rate does have an effect until about the 200kbps setting at which point it will not send lower than the ~350kbps mark, and frame rate will crash or freeze VLC below 15fps.

Have you experienced any of these issues with VLC before or have a solution, to VLC or any other software, which would allow me to create the mentioned streams?

rh
Cone that earned his stripes
Cone that earned his stripes
Posts: 158
Joined: 21 Sep 2006 13:11
VLC version: 2.0.2
Operating System: Lin / Win / Andr
Location: Germany

Re: Cannot stream mp4 lower than 350kbps (XP)

Postby rh » 04 Mar 2009 15:50

Try this (linux, but also works in the same way on win*):

cvlc -d <file> :file-caching=5000 :sout="#transcode{vcodec=theo,vb=300,acodec=vorb,ab=32,channels=1,audio-sync,width=280,height=220}:duplicate{dst=std{access=http,mux=ogg,dst=<destIP>:<destPort>}}"

you should have a transfer rate of 40 kbps
scarcely you do it right it works ...
Greetings, rh

DNeser
New Cone
New Cone
Posts: 3
Joined: 03 Mar 2009 19:31

Re: Cannot stream mp4 lower than 350kbps (XP)

Postby DNeser » 05 Mar 2009 00:55

Thank you! I was able to modify your recommendation and got plenty of low data rates! Here is the cli command i am currently using:

vlc "<file>" :file-caching=5000 :sout=#transcode{vcodec=mp4v,vb=100,acodec=none,ab=0,channels=0,audio-sync,scale=0.25}:duplicate{dst=rtp{dst=<destIP>,mux=ts,port=<port>}}

Resulted in ~100kbps

popper
Blank Cone
Blank Cone
Posts: 25
Joined: 17 Oct 2008 20:55

Re: Cannot stream mp4 lower than 350kbps (XP)

Postby popper » 10 Mar 2009 21:50

"stream multicast mp4 RTP traffic onto a network with a data rate of 128, 256, and 384 kbps. I have attempted to do this by encoding the video using an open source program called "Handbrake" to rip video from a DVD to a single VOB file at each of the rates mentioned."

if you have already encoded to your 128, 256, and 384 kbps rates,and placed them inside an MP4 container, why are you then wasting CPU cycles re-transcoding your content again, why not just stream them directly without any VLC transcode if their already in the rate and container you want to stream?

Avidemux is a very good tool for messing about with placing your content into different containers,copying video and audio or recoding them into what you might need, i think it can also take VOB as an input if need be so try it in windows or the other OSs it runs in.

DNeser
New Cone
New Cone
Posts: 3
Joined: 03 Mar 2009 19:31

Re: Cannot stream mp4 lower than 350kbps (XP)

Postby DNeser » 23 Mar 2009 23:24

The reason I am re- transcoding them is because after I create them in handbrake with those settings and I supply the video to VLC it still streams the video at upwards of 1Mbit a second.I have to re- transcode them so that they transmit at a lower rate.

But now I am running into even more issues when I try to use a video that was transcoded @ 5 frames a second, before I was using a full motion video which I had running at my three desired rates, now I have to supply a "fps=x" statement just to make the video viewable and the I can get no where near the transmit rates again.

I am very confused.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 12 guests