Hello,
I'm encoding some videos from my camera (mjpeg+mp3) to x264+aac in FFmpeg. Here's the command line I use:
What happens is... when I play out.mkv in ffplay, it plays fine. When I play it in mplayer, audio is played a bit ahead of the video. It is possible to play out.mkv in mplayer in sync, when I add "-autosync 1000" option to mplayer command... Other videos (those not encoded by me) play fine without this option.Code:ffmpeg -i "in.mp4" \ -vcodec libx264 -preset veryslow -crf 25 \ -af "aresample=44100" -async 1000 \ -strict experimental -acodec aac -ab 192k \ "out.mkv"
It's the same without "-async 1000" in FFmpeg command... I'm using newest FFmpeg (2013/04/01). This behavior replicable with all older versions I tried so far.
What's wrong with my command?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
-
Try remuxing your "out.mkv" with MKVtoolnix. The Matroska muxer of ffmpeg is buggy, and probably the Matroska demuxer of ffplay is equivalently-buggy.
-
Got it. =P Thanks.
Anyway, I ended up writing my own script that uses neroAacEnc, x264 (executable) (level 3.1) and muxing their outputs to .mp4.
Similar Threads
-
Vcr plays good for a bit then picture gets noisy and loses the signal
By imma in forum RestorationReplies: 22Last Post: 11th Aug 2012, 22:21 -
x264 + aac = seek/sync problem
By leandro in forum DVD RippingReplies: 8Last Post: 10th Jul 2012, 13:35 -
Audio out of sync problem with FFMPEG encoding MP4 (h.264,AAC)
By jenak1980 in forum Video ConversionReplies: 7Last Post: 5th May 2010, 01:03 -
MP4 (x264 / AAC / 720x480) to MP4 (x264 / AAC / iPod res)
By GrayStrickland in forum Video ConversionReplies: 2Last Post: 15th Jun 2009, 10:20 -
Video Capture with Mplayer, Mencoder or ffmpeg under Winxp. Is it possible?
By gll99 in forum CapturingReplies: 0Last Post: 11th Sep 2008, 18:00