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
+ Reply to Thread
Results 1 to 8 of 8
Thread: ffmpeg out of sync (intel)?
Thread
-
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?
I'd love to see such an option included in ffmpegX. I have no idea what a wrapper script is, and my current method of extracting the audio separately in wav format and treating it as an external source is tedious.Originally Posted by theorik
On all these software players, yes. I haven't tried on a hardware player.Originally Posted by Case
No idea, really. I tried, and it seemed to work in this case. Strangely, it does not work for another file, so it may not be such a good solution as I thought – sorry! (But because I only occasionally encode, and encoding takes time, I'll stick with mencoder or xvid for now.)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
Dug this up (here):Originally Posted by theorik
Perhaps changing the samples_per_second parameter to a higher value would help.`-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).
Yes, indeed, probably (somehow I misread the instruction completely so that I thought that a smaller number would be better); I also noted thePerhaps changing the samples_per_second parameter to a higher value would help.parameter (say which stream should by synced with what stream), which ffmpegX already uses, but which is not yet configurable through the GUI (?).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
Are you just using the -vsync command in ffmpeg to do this? Also, if it's not too difficult, can you explain how your wrapper script works?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
StatisticsNewest guidesLatest tool updatesNew media comments



Quote