Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

From A Buick 8

macrumors 68040
Original poster
Sep 16, 2010
3,114
127
Ky Close to CinCinnati
Hello, I am having an issue with .AVI files that I am converting for iTunes. The audio is out of sync. I am converting using HB. The AVI files play fine (audio in sync), but after the conversion playing them on the apple tv the audio is not in sync.

I can play the .AVI file on the ATV ( using air video) and the audio is in sync, so it must be a setting I am missing during the HB conversion. I really want these in iTunes for easy playback.

I doubt it matters but these are old VHS tapes that were converted to .AVI files.
 

Idgit

macrumors 6502a
Mar 14, 2004
551
158
Open the file up in Media Info and look to see if it has a packed bitstream. If it does, unpack it with Batch Unpacker and convert the unpacked AVI using Handbrake.

If that doesn't work, try converting it with Quicktime Player or MPEG Streamclip (which uses Quicktime). Just use one of the presets, like the Apple TV 2 one. For some reason, Quicktime can sometimes successfully convert problematic AVIs where Handbrake and other ffmpeg-based converters can't.

I have also had some AVIs that just could not be converted without audio sync problems. There was just something funky about them.
 

From A Buick 8

macrumors 68040
Original poster
Sep 16, 2010
3,114
127
Ky Close to CinCinnati
Open the file up in Media Info and look to see if it has a packed bitstream. If it does, unpack it with Batch Unpacker and convert the unpacked AVI using Handbrake.

If that doesn't work, try converting it with Quicktime Player or MPEG Streamclip (which uses Quicktime). Just use one of the presets, like the Apple TV 2 one. For some reason, Quicktime can sometimes successfully convert problematic AVIs where Handbrake and other ffmpeg-based converters can't.

I have also had some AVIs that just could not be converted without audio sync problems. There was just something funky about them.

thanks i will try this, these are old episodes of MST3K, my son has recently found the joy of that program and we have seen all that netflix has to offer.
 

From A Buick 8

macrumors 68040
Original poster
Sep 16, 2010
3,114
127
Ky Close to CinCinnati
Open the file up in Media Info and look to see if it has a packed bitstream. If it does, unpack it with Batch Unpacker and convert the unpacked AVI using Handbrake.

If that doesn't work, try converting it with Quicktime Player or MPEG Streamclip (which uses Quicktime). Just use one of the presets, like the Apple TV 2 one. For some reason, Quicktime can sometimes successfully convert problematic AVIs where Handbrake and other ffmpeg-based converters can't.

I have also had some AVIs that just could not be converted without audio sync problems. There was just something funky about them.

Not sure if the bitstream is packed or not, here is what i see when I open it in media info. Also when i play the file in iTunes on my iMac the audio sync issue is not there, it only shows up when streaming on the ATV
 

Attachments

  • info.jpg
    info.jpg
    59.6 KB · Views: 92

Idgit

macrumors 6502a
Mar 14, 2004
551
158
Whatever app you're using, doesn't seem to display enough information. Try VideoSpec [free] or the open source MediaInfo.

Not sure if the bitstream is packed or not, here is what i see when I open it in media info. Also when i play the file in iTunes on my iMac the audio sync issue is not there, it only shows up when streaming on the ATV
 

Idgit

macrumors 6502a
Mar 14, 2004
551
158
I had used media info, here is what i see with video spec

Thanks for that screenshot. The big thing that stands out to me is that your AVI doesn't contain a XVID or DivX video file, but rather a MS MPEG-4 v2 video file. That is most likely the source of your sync problems.

The audio is also in mono, not stereo. So I'm not surprised that you had sync problems.

My first suggestion would be to look for better quality files. Yours is low-res, mono, and encoded with a old, non-standard codec. You might want to try your public library. I've gotten many TV DVDs for old shows from our library system and ripped them.

However, if you still want to convert that file, make sure you have the latest Perian codec installed and try converting the video file with Quicktime. You might have to tinker with the settings. Keep the audio to mono. If you're lucky, it'll work.
 

From A Buick 8

macrumors 68040
Original poster
Sep 16, 2010
3,114
127
Ky Close to CinCinnati
Thanks for the help i will give that a shot.

----------

Is it weird that the converted files does not have the sync problem when played through itunes on my mac, and only shows up when streamed through the ATV
 

Idgit

macrumors 6502a
Mar 14, 2004
551
158
Is it weird that the converted files does not have the sync problem when played through itunes on my mac, and only shows up when streamed through the ATV

That's interesting. In the converted file, what HB preset did you use? Is the audio track AAC stereo or AAC mono?
 

Idgit

macrumors 6502a
Mar 14, 2004
551
158
Here is a screen shot of the same file as a .m4v

The only thing that stands out is the High@2.1 profile. Is that from the Apple TV 3 preset? Might want to try a Main profile encode.

I would try a re-encode using the iPad or Apple TV 2 preset in Quicktime to see if it works. If it does, the problem is with Handbrake and certain files.
 

From A Buick 8

macrumors 68040
Original poster
Sep 16, 2010
3,114
127
Ky Close to CinCinnati
The only thing that stands out is the High@2.1 profile. Is that from the Apple TV 3 preset? Might want to try a Main profile encode.

I would try a re-encode using the iPad or Apple TV 2 preset in Quicktime to see if it works. If it does, the problem is with Handbrake and certain files.

All I have, is the Quicktime player I was thinking about getting quicktime though. Looking at the Mac App Store i do not see it
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.