I'm not sure if it's just me... Everytime I try to encode a video with ffmpeg (not mencoder!), it gradually gets out of sync toward the end of the film (or rather in the middle; anyway, the sound faster than the video); the same issue occurs with the ffmpeg binary included in burn (http://burn-osx.sourceforge.net/).
Edit: I should maybe mention that the synchronisation is not lost on my Linux PC; so it might be an (Intel?) Mac specific problem.
I managed to write a wrapper script for ffmpeg which adds the optionto enable audio synchronisation. It seems that this works. Would it be a good idea to include such a sync option in ffmpegx anyway?Code:-async 2
(Or is it really just me, or can't I google well!? Apologies, just in case...)
Cheers,
Theorik
Results 1 to 8 of 8
-
-
Is the loss on sync that you experienced the same on various players? E.g. QuickTime, MPlayer, VLC, hardware players.
And just out of curiosity, what does this "-async 2" do on a lower level, i.e. what is done to secure sync? Does it have any side-effects on playback compatibility?
-
Originally Posted by theorik
-
Originally Posted by Case
And just out of curiosity, what does this "-async 2" do on a lower level, i.e. what is done to secure sync? Does it have any side-effects on playback compatibility?
Cheers,
Theorik
-
Originally Posted by theorik
`-async samples_per_second'
Audio sync method. "Stretches/squeezes" the audio stream to match the timestamps, the parameter is the maximum samples per second by which the audio is changed. -async 1 is a special case where only the start of the audio stream is corrected without any later correction.
Major, I'd love for this option to be included in ffmpegX (or perhaps a section to add command line switches manually).
-
Perhaps changing the samples_per_second parameter to a higher value would help.Code:
-map
In the meantime I've found out that my problem (or at least one of them?) seems to be that my DVB-T recordings have some ‘dropped’ video frames (seems to be inevitable because it happens to each and every movie), so that I decided to sync the video stream to the audio stream.
Cheers,
Theorik
-
Originally Posted by theorik
Thanks,
Bucho
-
Yes, trying again, I found "-map"ping to have strange effects (jumpy video); there's nearly no documentation on vsync, so I only played around. I went back to xvid for a very bad recording. (jumpy with mapping and vsync, with async sounded like an irregularly running tape.)
The wrapper script seems to be necessary because "-vsync" or "-ascync" are an outfile option; so I go through the options, wait until "-i" (the input file option), and place my "sync" options immediately after it.
Cheers,
b
Similar Threads
-
Intel Quick Sync, will it ever be able to do 2-pass encoding
By Wam7 in forum Video ConversionReplies: 1Last Post: 24th Nov 2011, 16:33 -
FFMpeg Audio Out of Sync
By Endemoniada in forum Video ConversionReplies: 1Last Post: 15th Aug 2010, 21:04 -
Mencoder // ffmpeg flv file Audio-video sync problem
By krishnareddy in forum ffmpegX general discussionReplies: 5Last Post: 26th Apr 2009, 09:13 -
Intel Q6600 Kentsfield or Intel E8400 Wolfdale??? Help me decide which one
By budz in forum ComputerReplies: 33Last Post: 12th Mar 2009, 00:19 -
FFMPEG causes certain MP4's to be out of sync
By jjones3535a in forum Video ConversionReplies: 6Last Post: 15th Feb 2009, 10:21