[FFmpeg-user] audio and video sync problem

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Jul 4 11:07:25 CEST 2014


On Thursday 03 July 2014 10:10:39 am Murat Maman wrote:

> sudo ffmpeg -y -f mpegts -i 'udp://@

Unrelated: I believe that everybody on this list agrees 
that "sudo ffmpeg" is a very bad idea.

> 00.00.00.00:1111?fifo_size=1000000&overrun_nonfatal=1 \
> -maxrate 2M -bufsize 2M \
> -af volume=1.1 \
> -strict experimental \
> -c:a libfaac -ar 22050 -ac 2 -b:a 64k \
> -vsync 1 -c:v libx264 -r 25 -vf yadif,scale=640:480 -aspect:v 16:9 -b:v
> 900k \
> -preset superfast -tune zerolatency -threads 8 -crf 25 \
> -map 0:0 -map 0:1 \
> -f flv 'rtmp://testt:testt@00.00.00.00:0000/live/1111'

(Complete, uncut console output missing.)

Why are you using -vsync 1?
Did you try -async 1?

Am I correct that the problem is reproducible with file output 
instead of network output?

Is the problem reproducible if you save the udp stream to a file 
(including the reception problems) and transcode the file with 
FFmpeg?

Carl Eugen


More information about the ffmpeg-user mailing list