Log in

View Full Version : H264 encoding and audio synchronization


curious d
14th February 2008, 04:20
Hi. I recently tried encoding a movie for Ipod use. At first, I had my own custom setting for 320x240 for the Nano. It worked well for the first disc. Then I used it for another disc and it resulted with the audio out of sync with the video. I used the Ipod setting on the mobile encoder for 320x240 with the only exception being the H264 encoding and still ended up with the audio out of sync with the video.

If such a thing happened to an XVID file, I would use Nandub to alter the AVI file to get the audio back in sync with the video. However, I am not aware of any such program for MP4 files. Is there a way to be able to get the audio back in sync with the video for these files?

Thanks.

jdobbs
14th February 2008, 17:45
I've noticed that there are a few DVDs that have a lot of garbage at the beginning of the PGC holding the main feature. This seems to cause audio sync problems on MOBILE output (only). I'm looking at it to see what can be done to compensate.

You can, however, adjust the audio offset by manually changing the value in the AVS file used for MOBILE encoding. It'll be obvious when you open it with NOTEPAD or WORDPAD. If you want to experiment to get it aligned without having to reencode the entire movie you can add:

FrameLimit=2000

to the [Mobile] area of REBUILDER.INI. The example would limit the encode to only the first 2000 frames of the file. Don't forget to remove it when you have it all ready to go for the entire movie.

blutach
14th February 2008, 22:41
If there are tiny cells (eg from advanced protection), these will cause the sync issues. Remove them with PgcEdit.

Regards

curious d
15th February 2008, 04:02
RI4M, if I remember correctly, has this option to remove PGC files. I thought that I had this option set. I didn't and so I will try it again. Is there a reason not to have all the advanced options on the preferences in RI4M checked off?

By the way, thanks for the new version of DVD-RB Pro today.

blutach
15th February 2008, 07:29
Whatever you're using to rip, I'd be doing movie only so the tiny cells are not present. You only want the movie for mobile encoding anyway, right?

This presupposes the ripper is doing a good job on MO rips.

Regards

curious d
16th February 2008, 04:50
Bingo! That was it. The audio is now in sync with the video. Is there a problem with keeping all values in the advanced settings checked off if I'm ripping for DVD backup rather than mobile backup? Thanks again.