Hi,
I have been able to successfully encode MP4 files to other video formats using FFMPEG for quite some time. Sometimes, however, there are certain MP4 files that play fine in Quicktime - but once converted with FFMPEG the audio is slightly out of sync. The audio sync issue is constant throughout the video.
It seems the MP4 files that are H.264 work fine with FFMPEG, but the MP4 files with MPEG-4 seem to have the audio sync issue.
Any solutions to this?
Thanks
+ Reply to Thread
Results 1 to 7 of 7
-
-
Thanks for the response.
I'm actually using WinFF. I've tried 3 different versions, each with different FFMPEG versions released over the past year, and the audio sync issue remains within each.
I'm not modifying the sample rate. Here's WinFF's FFMPEG command:
"C:\Program Files\WinFF\ffmpeg.exe" -i "C:\sample.mp4" -vcodec wmv2 -acodec wmav2 -b 1000kb "C:\\sample.wmv"
Also, here are the details on the MP4 file that is out of sync. Per Gspot:
Video:
Codec: mp4v
Name: MPEG-4 Video
Frames/s: 29.963
320x240
Audio:
Codec: mp4a: MPEG-4 AAC LC
48000Hz 160 kb/s tot, stereo (2/0)
Any ideas on how to get FFMPEG to encode this file without audio sync issues would be greatly appreciated:
Thanks. -
Here's some detailed info on the file causing the sync issue as reported by MediaInfo. Could it be the Variable Bit Rate audio that is causing sync issues upon conversion? Thanks for the help.
Code:Video Format : MPEG-4 Visual Format profile : Simple@L1 Format settings, BVOP : No Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default Codec ID : 20 Duration : 2mn 25s Bit rate mode : Variable Bit rate : 613 Kbps Nominal bit rate : 752 Kbps Maximum bit rate : 3 401 Kbps Width : 320 pixels Height : 240 pixels Display aspect ratio : 4/3 Frame rate mode : Variable Frame rate : 29.970 fps Minimum frame rate : 29.963 fps Maximum frame rate : 29.981 fps Resolution : 24 bits Colorimetry : 4:2:0 Scan type : Progressive Bits/(Pixel*Frame) : 0.266 Stream size : 10.7 MiB (79%) Writing library : Lavc52.0.0 Language : English Encoded date : UTC 2009-01-02 18:25:43 Tagged date : UTC 2009-01-02 18:25:47 Audio Format : AAC Format/Info : Advanced Audio Codec Format version : Version 4 Format profile : LC Format settings, SBR : No Codec ID : 40 Duration : 2mn 19s Bit rate mode : Variable Bit rate : 160 Kbps Maximum bit rate : 219 Kbps Channel(s) : 2 channels Channel positions : L R Sampling rate : 48.0 KHz Resolution : 16 bits Stream size : 2.67 MiB (20%) Encoded date : UTC 2009-01-02 18:25:43 Tagged date : UTC 2009-01-02 18:25:47
-
I guess it's the Variable FRAME RATE mode that causes the sync problem. Variable bitrate should work fine to convert using ffmpeg. Maybe try something like Variable Framerate Rx to convert to constant frame rate.
Similar Threads
-
Converting everything to mp4 using ffmpeg
By euphonic in forum Video ConversionReplies: 1Last Post: 13th May 2011, 07:53 -
ffmpeg help... convert mp4 to jpeg array, and back to mp4 - problem!
By SaskVideoMaker in forum Video ConversionReplies: 2Last Post: 4th Feb 2011, 04:53 -
Help with FFmpeg .TS to .mp4
By ViM in forum Video ConversionReplies: 2Last Post: 15th Nov 2010, 10:39 -
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 -
FFMpeg - Mpeg2 to MP4 conversion
By gomer_3333 in forum Video ConversionReplies: 2Last Post: 1st Mar 2010, 13:10