problem with streaming mpeg ts when using ffmpeg muxer

About encoding, codec settings, muxers and filter usage
jingke2000
Blank Cone
Blank Cone
Posts: 12
Joined: 17 Sep 2006 21:39

problem with streaming mpeg ts when using ffmpeg muxer

Postby jingke2000 » 21 Mar 2012 21:52

Hi,

I got bunch of errors like this from both VLC 1.1.11 and VLC 2.0.0:

access_output_udp debug: late packet for udp input (3559046358000)
.......
access_output_udp debug: packet has been sent too late (3559046358000)
.......
stream_out_transcode debug: drift is too high, resetting master sync
.......

Here's the parameters I used:
:sout=#gather:transcode{vcodec=h264,vb=3000,fps=30,scale=1,width=1280,height=720,acodec=mp4a,ab=64,channels=2,samplerate=44100}:udp{mux=ffmpeg{mux=mpegts},dst=239.0.102.204:2222} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep :sout-mux-caching=5000

But it works fine if I simply replace "ffmpeg{mux=mpegts}" with the stock TS muxer like this:
:sout=#gather:transcode{vcodec=h264,vb=3000,fps=30,scale=1,width=1280,height=720,acodec=mp4a,ab=64,channels=2,samplerate=44100}:udp{mux=ts,dst=239.0.102.204:2222} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep :sout-mux-caching=5000

However, in my case, I'll need to use FFMPEG's ts muxer.

Any idea?

Thanks!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: problem with streaming mpeg ts when using ffmpeg muxer

Postby Jean-Baptiste Kempf » 22 Mar 2012 12:21

Try to increase caching.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

jingke2000
Blank Cone
Blank Cone
Posts: 12
Joined: 17 Sep 2006 21:39

Re: problem with streaming mpeg ts when using ffmpeg muxer

Postby jingke2000 » 22 Mar 2012 15:51

I inceased the caching by doing "sout-mux-caching=500000". It didn't work. The error messages still occur.

Here's the full script if I use command line:

vlc dshow:// --dshow-vdev="screen-cap" --dshow-adev="audio-cap" :sout=#gather:transcode{vcodec=h264,vb=3000,fps=30,scale=1,width=1280,height=720,acodec=mp4a,ab=64,channels=2,samplerate=44100}:udp{mux=ffmpeg{mux=mpegts},dst=239.0.102.204:2222} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep :sout-mux-caching=500000

Thanks for the help!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: problem with streaming mpeg ts when using ffmpeg muxer

Postby Jean-Baptiste Kempf » 23 Mar 2012 16:00

500000 is too much. Increase dshow caching too.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

realjobe
Cone that earned his stripes
Cone that earned his stripes
Posts: 175
Joined: 10 Feb 2008 15:40

Re: problem with streaming mpeg ts when using ffmpeg muxer

Postby realjobe » 26 Mar 2012 09:27

what does "sout-mux-caching" do anyhow? What does it effect? also what does "rtsp-caching" and "http-caching" do?
I also saw ":rtp{caching=2000,mux..."

so some clearification about all the Cache techniques would be nice.. since vlc 2.x my h264 transcoded realtime streams started to twitch & stutter and buffer...


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 3 guests