[FFmpeg-user] ffmpeg-10 audio and video sync problem.

Jim Shupert jshupert at pps-inc.com
Tue Feb 7 14:56:59 CET 2012



On 2/7/2012 12:47 AM, Ly Tran Cong wrote:
> Hi all,
>
> I use this command to transcode multicast video to DarwinStreaming.
>
> ffmpeg -i udp://239.30.10.6:5106?reuse=1
> <http://239.30.10.6:5106/?reuse=1>-an -c:v libx264 -profile baseline
> -preset ultrafast -r 25 -s 320x240 -b:v
> 128k -coder 0 -refs 3 -bf 0 -g 150 -keyint_min 20 -qmin 10 -qmax 51 -qdiff
> 4 -trellis 0 -flags +global_header -vsync 1 -copyts -f rtp rtp://
> 127.0.0.1:37130 -flags +global_header -vn -c:a libfaac -ar 22050 -b:a 8k
> -ac 2 -vn -async 22050 -rtpflags +latm -fflags +latm -copyts -f rtp rtp://
> 127.0.0.1:37132
>
> then I use vlc to play that stream but I have to refresh vlc many time.
> Sometime I can hear audio, sometime I can watch video without audio and
> sometime I can watch video faster than audio.
>
> Please let me know is there any problem with my command or ffmpeg sync
> problem.
>
Friend,
you might try replacing ::

-async 22050   with   -async 1 -ar 22050



More information about the ffmpeg-user mailing list