[FFmpeg-user] dynamically sync audio and video

Feurstein, Michael Michael.Feurstein at wu.ac.at
Mon Jul 4 09:02:42 CEST 2011


Hi,

I'm using ffmpeg 0.6.3 ("works with HTML5" as stated on ffmpeg.org) to merge a live video stream with a live audio stream and feed that stream to Apple's mediastreamsegmenter in order to do HTTP Live Streaming with HTML5. The merging works, the streaming works as well. Only thing I can't get a hold of is the audio and video synchronization. Sometimes it's in sync, then again it's off 3 to 7 seconds.

In an earlier attempt I thought I managed to conquer the sync problem by measuring the time until the video stream was analyzed and shown on command line. This solution works but seems unreliable based on the running system.

Is there a way to get the first presentation time stamps (pts) of video and audio? Based on that info I could resync the video.

Any input appreciated
Thanks

-Michael


More information about the ffmpeg-user mailing list