Currently Being ModeratedMay 22, 2010 2:45 AM (in response to Bazaar)After significant testing I have found a solution that I can share with others - albeit a far from optimal one - to at least get MP4 movies to work without having to re-encode them. (However, there is no fix currently for embedded Chapters not being supported.)
My movies were encoded as stated above, with the MeGui Xbox360 preset: AVC High Profile Level 3.1 video, AAC-LC 2ch audio. However, some of my later encodes were tagged in the MP4 metadata as Level 4.1. This is a result of the MeGUI Xbox360 preset being updated in line with Microsoft adding new features by firmware updates. However, nothing was different with the ACTUAL encoding - only the Level tag changed.
There is a SINGLE BYTE in the MP4 that declares AVC level. *iTunes will refuse to sync a movie merely if it doesn't like that one byte for AVC level*. It will not allow any movie tagged as Level 4.1 or higher to be synced, _even if in reality it doesn't exceed Level 3.1 limitations_. (Consult Wikipedia for those resolution and bitrate limits.) It doesn't even look at what the encoding method was, or if it really will render on the iPad! The warning dialog lies! Ridiculous.
By changing literally ONE byte out of 1 giga byte file, I was able to transfer my movies to my iPad. Instructions are below. My new request to the developers would be to remove that arbitrary restriction on AVC level from iTunes, or at the very least change it to a warning dialog saying "+The movie may not work *FOR XYZ REASON*, but proceed anyway+". I know the iPad is officially stated as only supporting up to AVC High Profile Level 3.1, but it shouldn't arbitrarily reject media like the PS3 does either.
Also, the order of Audio/Video tracks (which one is first) doesn't seem to matter for compatibility. I've tried both ways using multiple muxers, and either way worked. YAMB worked best. As long as it can be dragged and dropped into the Library interface, and play inside iTunes, it works on the iPad.
*How to change AVC Level in an MP4 without reencoding (or demuxing):*
1.) Open up the MP4 in a hex editor (HxD is a freeware for Windows - be warned: it tries to automatically save a "backup" copy when saving, but that can be aborted)
2.) Search for the hex "61 76 63 43" ("avcC" in ASCII) - it should occur only once near the top
3.) The next byte after that is usually "01" and isn't important
4.) The next two bytes declare Profile ("42 E0" = Baseline, "4D 40" = Main, "58 A0" = Extended, "64 00" = High).
5.) The next byte declares AVC Level ("1F" = Level 3.1, "29" = Level 4.1, "33" = Level 5.1)
6.) Change whatever is in the AVC level to "1F" in hex and save. Try syncing the movie to the iPad again. (It would also be a good idea to check to see if you are violating the AVC 3.1 limits by doing so.)
Hope this helps someone else. I'm ticked off since I already burned my movies on DL's for trips, and now I have to copy them all off to a hard drive to Edit. Then I have to re-burn them on the expensive discs again. All of because an arbitrary one-byte flag rejection in iTunes.Other OS
Currently Being ModeratedMay 22, 2010 3:12 AM (in response to Bazaar)
My new request to the developers would be to remove that arbitrary restriction on AVC level from iTunes, or at the very least change it to a warning dialog saying "+The movie may not work *FOR XYZ REASON*, but proceed anyway+".
Have you sent this to Apple? We're mostly just users like yourself in here
Colin R.MacBook Pro 15.4" 2.2GHz Intel Core 2 Duo, 2 GB , Mac OS X (10.6.2), iPod 30GB v2.3 iMac DVSE iPod nano v1.3 iPhone 24" iMac
Currently Being ModeratedMay 22, 2010 3:29 AM (in response to Colin Robinson)I will try that, Colin. Thank you for the link. I'm the type of person that would try to crumble mountains by tapping on them with a tuning fork - and I must admit this problem was particularly vexing.
I'm certain the restriction was intentional, however - so I may only be pointing out the obvious. Nonetheless, I appreciate your positive input, and will try submitting a suggestion.Other OS
Currently Being ModeratedJun 2, 2010 11:15 PM (in response to Bazaar)Holy crap you rock! I haven't hex-edited since the 80s - but since the file I had was worthless after an unsuccessful muxxing attempt, I did your trick - and BAM - back in business. iTunes and Quicktime liked the file fine, my iPad wouldn't touch it.
I use OSX so if you're a on a mac try the free editor "Hex Fiend".
Just do a find (command F) for the hex series he mentioned, then change the appropriate byte - then remove it from the library and put it back in. Boom - piece of CAKE!
Haven't had this much fun since back when I was a game tester and found some passcodes in hex and remapped a client in an early FPS shooter and created havoc on a beta-test during April Fools day (removed all the walls on my map - and played ghost with everyone).
Currently Being ModeratedJun 20, 2010 12:35 AM (in response to Bazaar)I love you so much right now.
You have no idea how frustrated I was getting, this works AMAZING.
I will name my second child after you.Windows 7
Currently Being ModeratedJul 20, 2010 6:17 AM (in response to [Cyanide])I just got my new ipad and ran into this problem. It seams like a big limitation/annoyance. One thing I find odd is I can email a video to the ipad and it will play fine through the ipad mail, but try to sync the same video and I get the error message.
Currently Being ModeratedOct 23, 2010 9:17 PM (in response to Bazaar)This solution worked a treat for me, except I found that files encoded as "Apple/Universal" in handbreak have these header packets at the end of the file, not the beginning.
Here's a Python script which automates the patching process.
Just *chmod u+x ipadfix.py* and run it from the command line with the file to be patched as the only argument, ie:
On windows, install Python and then run it like:
*python ipadfix.py mymovie.mp4*
And presto, your file is patched! This will still work for files which have the metadata at the beginning of the file, but will take a LONG time. It's already pretty slow (around 15 seconds to find the data), but I never wrote anything in Python before, so if someone knows a faster way, let me know! Bazaar, thanks for sharing the research results!Various, Mac OS X (10.6.4)
Currently Being ModeratedNov 19, 2010 9:26 AM (in response to Bazaar)Great tip! I've run into the same problem. This saves a lot of headaches and time. Sometimes why software designers/engineers do things they was they do is simply inexplicable! Who knows what Apple was thinking when they implemented this new way of handling movies. Previously all my movies synced with my iPad without problem. Now we must resort to things like what you have come up with to circumvent this.Mac Pro 2 x 2.66 GHz Dual-Core Intel, Mac OS X (10.5.5)
Currently Being ModeratedDec 5, 2010 5:37 PM (in response to mcneildeal)I have many video files that I have collected over time. Some are in a MP4 format and some in the M4V format. I can play both formats in iTunes, but only the M4V formats will transfer and play on my iPad.
The solution you discribe seems to be the solution to my problem. I am not very technical, but get around a PC okay. Would you mind providing details about how I might use the Python program and run the script against my MP4 files. Is it possible to run this in a batch? I have a few hundred files. Thank you in advance!!MacBook Pro, Mac OS X (10.6.5), Window XP and 7
Currently Being ModeratedDec 16, 2010 9:46 AM (in response to Bazaar)This does not seem to work with my iPod touch 4G. I have a few hundred TV show episodes in High@L4.1. They play fine on my Apple TV 2 and also play fine in air sharing on my iPod without conversion. I tried modifying it to Main@L3.1 and iTunes still didn't transfer the video. Any ideas?
ThanksMacBook Pro (Early 2008), Mac OS X (10.6.5)
Currently Being ModeratedDec 21, 2010 6:34 PM (in response to Wes Plate)anyone?MacBook Pro (Early 2008), Mac OS X (10.6.5)
Currently Being ModeratedDec 21, 2010 6:41 PM (in response to edc1591)Your in the iPad forum... You need to post in the iPod forum.
Message was edited by: David M BrewerG-4 1.2 GIG, 1.5 GIGs of Ram, Mac OS X (10.5.8), Quicktime 7.6.4, FCS2, nano 5th, iPad and a bunch of other stuff...
Currently Being ModeratedSep 29, 2011 10:32 PM (in response to Bazaar)
I can confirm that this fixed it for me. I had the trouble on a movie ripped from handbrake 0.9.5 on vista premium. The hex for profile and audio where different than you listed. I used the Ipod touch and Iphone preset and it would not sync. Changing the value allowed it to sync and the file played fine.
Currently Being ModeratedNov 5, 2011 1:29 PM (in response to Wes Plate)
Not sure if you resolved your issue yet but I was having the same thing happen and it turned out to be that I needed to update to the latest version of QuickTime on my pc. Once I did that all my videos synced to my iPad 2 fine. Hope this helps.
Currently Being ModeratedDec 19, 2011 4:05 AM (in response to Wes Plate)
I have this problem...
- The Inbetweeners Movie file will not play on my iMac with the latest version of itunes & quicktime stating it cannot be played because it is incompatible with quicktime and this version of itunes.
- In addition I purchased the HD version which should come with an iPad/iPhone ready SD version. When i attempt to copy this film to the ipad or iphone in itunes, it states this file is not compatible.
- If I attempt to convert the film for iPad use using Advanced > Create iPad or Apple TV Version, I receive the error "An unknown error occurred (-4)
- The Inbetweeners Movie is a brand new release which should mean that it is in the latest and most compatible file formats
- My Ipad is running version 5.0.1 (9A405)
- My iMac is running Mac OS X Lion 10.7.2 (11C74)
- My ITunes version is 10.5.2 (11) 64Bit
- My Quicktime Player app is version 10.1 (501.5)
- This is my second re-download attempt and has the same problem as the first.