Hi,
I recently got the new version of ffmpegx and I though I would rerip and try out H.264 on my Team America DVD. I used the preset and only adjusted the bitrate. When done I checked it out and after about half way through the movie and until the end the audio is slightly out of sync with the video. I used the VIDEO_TS as the input and tried both the 5.1 and the Stereo in the sound tab.
I tried this dvd with the XviD codec and it worked great and was not out of sync. I also tried different audio options (mp3, mp2) on the H.264.
Thanks in advance
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 30 of 86
Thread
-
-
I've had issues as well with getting the audio and video in sync with H.264. Encodes using XviD work perfectly.
-
I'm making some tests about this. It would be worth checking if you have the same issues when the input is a VOB file instead of a VIDEO_TS folder.
-
I reripped the title as one VOB in MTR and I'll try that. I'll let you know when it gets done. My powerbook sure is getting a workout.
One thing I wanted to note. I ripped the VIDEO_TS from my House Season 1 dvds to see if it was just the team america dvd. The thing is when I woke up it was done, but this time it was obvious the video was running a lot faster than the audio. So it looks like another issue, but we will work on the first one first.
I'll keep trying different things to try and get it to work. -
Well,
It just finished after the progress window went to 153% and it left the file as a .264 file so i changed it to both mp4 and mov and neither of which would open in quicktime. There was also a 0kb in size .aac file left in the folder as well. I looked in the log and this was the last few lines
Duration: 01:03:21.3, start: 0.195633, bitrate: 9473 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480, 29.97 fps, 9800 kb/s
Stream #0.1[0x20]: Subtitle: dvdsub
Stream #0.2[0x21]: Subtitle: dvdsub
Stream #0.3[0x22]: Subtitle: dvdsub
Stream #0.4[0x23]: Subtitle: dvdsub
Stream #0.5[0x24]: Subtitle: dvdsub
Stream #0.6[0x25]: Subtitle: dvdsub
Stream #0.7[0x80]: Audio: ac3, 48000 Hz, 5:1, 448 kb/s
Stream #0.8[0x81]: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Stream #0.9[0x82]: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Codec type mismatch for mapping #0.1 -> #0.0 -
It is trying to convert a subtitle (#0.1) into audio. Try to select 7 as audio track. I'll add more option to detect the audio streams. In the meantime, use VOBs with a single audio track and no subtitles, or use VIDEO_TS.
-
I have now tried a Single .VOB & VIDEO_TS with multiple movies and none of which are in sync. They start off in sync and then slowly get worse. Not sure what else to do. Thanks for you help so far Major. That was the problem with the audio thing on the other one but still out of sync once I fixed that.
-
Originally Posted by major
Encoding started on Sun Sep 4 00:17:41 CDT 2005
MEncoder dev-CVS-050814-13:46-3.3 (C) 2000-2005 MPlayer Team
Mac OSX static build for ffmpegX
AltiVec found
CPU: PowerPC
success: format: 0 data: 0x0 - 0x9495c000
MPEG-PS file format detected.
VIDEO: MPEG2 720x480 (aspect 3) 29.970 fps 9800.0 kbps (1225.0 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x480 fps:29.97 ftime:=0.0334
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=640 h=272]
Crop: 718 x 358, 0 ; 58
Opening video filter: [pp=md]
Opening video filter: [pp=0x33]
So which is right?
and if the ffmpeg window is right how do i force it to not change to 29 fps? -
I have also been having the same problem... When I left the frame rate at 29.97 the audio was WAY out of sync (by minutes). I adjusted it back to "FILM" and it is much better but still off by about 1 min at the end of a 22 minute episode. I haven't tried other settings.
As per the other poster, using MPEG 4, avi container (using menencoder) worked just fine, using the exact same framerate and audio settings (as far as I can tell.) Again, thanks for the excellent product and support. -
--Laurence
-
I might have found a temporary solution.
What I did was I ripped a DVD as the .m2v and .ac3.
Then i muxed them as a dvd (without authoring) in ffmpegx.
I then used the resulting .mpg file in ffmpegx and the video and audio was in sync. I'll try another one when i get the chance. -
hi,
I recently found Mplayer Documents updated,here.
Improving muxing and A/V sync reliability.
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-dvd-mpeg4.html#menc-feat-dvd-mpeg4-muxi...-filter-issues
I wish i could understand english better,,,
If you have QuickTime Pro,This may help.
1)encode without B-frames
2)demux x264+aac.mp4 to x264.mp4 and aac.mp4
3)copy Video and add TO aac.mp4
Some screenshots here
http://www.geocities.jp/howtoffmpegx/009t_H264mp4.html
good luck -
Please try again with the 0.0.9t r3 version which I just uploaded at http://homepage.mac.com/major4/ffmpegX.dmg (no need to reinstall binaries, just download again the disk image and overwrite the application). Please report if it works now.
-
I tried my Boondock Saints DVD VIDEO_TS folder with the new version and still out of sync.
-
Strange, I tried with a full NTSC DVD here and it was okay. Are you using NTSC or NTSC FILM? How much is it out of sync? If you encode a single VOB from inside the VIDEO_TS, it is also out of sync? Thank you.
-
Originally Posted by major
-
Which kind of material is the VOB, a regular movie, cartoon or anime, music video?
-
Well I tried a single .VOB from the movie (about 16 min) and it was still out of sync, both with NTSC and NTSC Film.
-
Er, I am having video sync issues going to/from anything.
Code:Encoding started on Mon Sep 12 17:11:10 PDT 2005 Input #0, mpeg, from '/Volumes/Second HD/ftp/VirtualUsers/dad/Good Eats/Good Eats - ''Circle of Life'' (Recorded Jul 28, 2005, FOODP).mpg': Duration: 00:30:00.7, start: 11.111111, bitrate: 6089 kb/s Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 480x480, 29.97 fps, 5800 kb/s Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 192 kb/s Output #0, dv, to '/Volumes/Second HD/Good Eats/Good Eats - ''Circle of Life''.mpg.ff.dv': Stream #0.0: Video: dvvideo, yuv420p, 720x480, 29.97 fps, q=2-9, 25000 kb/s Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 [mpeg2video @ 0x4199e0]Warning MVs not available [mpeg2video @ 0x4199e0]concealing 870 DC, 870 AC, 870 MV errors [mpeg2video @ 0x4199e0]Warning MVs not available [mpeg2video @ 0x4199e0]concealing 870 DC, 870 AC, 870 MV errors [mpeg2video @ 0x4199e0]ac-tex damaged at 10 2 [mpeg2video @ 0x4199e0]Warning MVs not available [mpeg2video @ 0x4199e0]concealing 840 DC, 840 AC, 840 MV errors [dvvideo @ 0x4199e0]Can't process DV frame #53979. Insufficient audio data or severe sync problem. [dvvideo @ 0x4199e0]Can't process DV frame #53979. Insufficient audio data or severe sync problem. [dvvideo @ 0x4199e0]Can't process DV frame #53979. Insufficient audio data or severe sync problem. [dvvideo @ 0x4199e0]Can't process DV frame #53979. Insufficient audio data or severe sync problem. [dvvideo @ 0x4199e0]Can't process DV frame #53979. Insufficient audio data or severe sync problem. bench: utime=4961.509s video:6326016kB audio:337707kB global headers:0kB muxing overhead -5.073119% Encoding completed on Mon Sep 12 18:55:06 PDT 2005
-
I'm suprised by the different experiences we are all having... When I said that Fight Club was out of sync, it was only about a half a second by the end of the film, certainly not anything like 15 seconds. I am encoding it again with the new r3 version but I won't know until morning whether it worked any better or not.
--Laurence -
Originally Posted by lhawkins
-
I'm trying to find a source file which shows the sync problem when encoded to MP4 H264. Can anybody provide me with a link to download one?
-
I tried My matrix dvd as one big .VOB. Its NTSC Film but the audio is just a fraction off (half a second).
-
I don't know if this has been mentioned before, but the out-of-sync problem with x264 may be caused by a reasoned which is exemplified in the following tests I made:
Source: 24fps, about 2 hour long movie
1. Xvid @ 24fps: plays in sync
2. Xvid @ 30fps: plays in sync but video a bit choppy is certain sequences (as expected because encode is at 30fps and source is 24fps). Nevertheless, video and audio are perfectly in sync
3. x264 @ 24fps: plays about about 0.5 seconds out of sync
4. **x264 @ 30fps: Here's the key test. WAY WAY out of sync...video ends about 20-30 minutes before audio. Video seems like it's every so slightly in fast forward. Video and audio are in sync at the VERY beginning and gets progressively more out of sync as the movie progresses.
Here's what I think is happening. #1, everything's fine. In #2, because encoding is at 30fps and source is 24fps, 6 duplicate frames must be made every second to keep video and audio in sync. However, this frame duplication doesn't seem to be happening in x264 encodes and this is what is causing the out-of-sync problem.
This would explain why #4 is WAY out of sync and would explain why the video would seem to be slightly in fast forward. And to explain #3, when I looked at the log file, I saw that sometimes in the encoding process a few frames would be skipped. This would cause #3 to be slightly out of sync.
Similar Threads
-
Is there ANYthing that will trim h.264 flv's without audio sync issues?
By AshleyQuick in forum Newbie / General discussionsReplies: 4Last Post: 29th Mar 2012, 09:07 -
Sound and video do not sync up when I convert avi to h.264 x 264.
By toddlava1 in forum ffmpegX general discussionReplies: 1Last Post: 8th Mar 2012, 02:15 -
Is there ANYthing that will trim h.264 flv's without audio sync issues?
By AshleyQuick in forum Newbie / General discussionsReplies: 4Last Post: 18th Nov 2011, 00:28 -
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 -
SOLVED: Audio out of sync or no audio - mkv/h.264 to avi/xvid
By dwoozle in forum Video ConversionReplies: 3Last Post: 2nd Feb 2009, 16:14