Photos to iPad sync error with some movies
My setup: Mac mini 2018, Big Sur 11.6.1, iPad Pro MLQ62KN/A 9,7", iOS 15.1.
A few years ago I converted all incompatible old movies with obsolete codecs that failed to sync to iPad or had display glitches in Photos to H.264/H.265 AAC .mp4.
They synced OK just a few months ago. But lately when syncing to the same iPad I have been getting multiple non-helpful alerts like:
“95777576-B433-4730-9BDE-36D64D5ACCDC.m4v” was not copied to the iPad “matti’s iPad Pro” because it cannot be played on this iPad.
Some videos were not copied to the iPad “matti’s iPad Pro” because they cannot be played on this iPad.
This is not very helpful when trying to isolate the problem and check how the offending movies differ from those that sync OK.
The offending movies can be located via the Terminal recursively from the same folder as the Photos library with a command like:
find . -name 95777576-B433-4730-9BDE-36D64D5ACCDC.m4v
The output locates that movie at:
./Photos Library.photoslibrary/originals/9/95777576-B433-4730-9BDE-36D64D5ACCDC.m4v
In the next step only look but do not touch! Do not in any way modify the folders and files because mere mortals should not mess inside the library package unless they know what they are doing and have good backups!
OK, in Finder right-click or ctrl-click the Photos library and choose "Show Package Contents" and open the "originals/9" folder of that example and in Finder window's upper right Search icon paste that 95777576-B433-4730-9BDE-36D64D5ACCDC.m4v, choose Name matches... and in the upper left click Search "9" to see the offending movie. You can then copy it to another folder to try to check what's wrong with it.
I initially spotted 21 such movies but might have more because only half of my movies fit the 256 GB iPad. Many offending movies were iOS slow/fast motion movies, some regular Final Cut Pro movies and some movies converted with VLC to H.264 from some PC-only codec. Most of them H.264 and one H.265 wrapped as .mp4, .m4v or .mov. So at a first glace they should be OK.
I don't yet try to re-wrap or re-encode them because Big Sur 11.6.1 Photos.app plays them OK and maybe some iOS update will fix this anyway (currently using iOS 15.1).