Why won't some of my MP4s stream to Apple TV (or iPad) via Home Sharing?

Hi all. I've been converting my DVDs, HD-DVDs, and Blu-rays to MP4, using MakeMKV and then Handbrake 0.9.9.5530 64-bit for encoding. I have been intending to play the files on my iPad, both transferring to the device and streaming via Home Sharing. I also want stream these via Apple TV (3rd gen, Model A1427) in the house via Home Sharing.


All the files sourced from HD-DVDs & Blu-rays seem to work fine. However, more than half the DVDs I've converted -- using the same Handbrake preset I've been using for the BRs -- will not play back on the iPad, or streamed to the iPad, or streamed to Apple TV. The files will copy to the iPad, but for both device playback and streaming, I get the error message "The operation could not be completed." On Apple TV, it's "An error occurred loading this content, try again later."


The files will play in iTunes for Windows, and they will play in VLC. (Files bought from the iTunes Store also stream fine.) There is no metadata in these files, but I am manually adding a poster image once I drop them into iTunes.


It seems pretty clear that this is a problem with the file itself, but since the only issues I'm having involve streaming, I reset my router for good measure. I restarted the Apple TV and quit all the apps on my iPad before restarting it, too. I've also made sure the firmware on all devices is up to date. None of that had an effect.


I compared a DVD rip (Bill & Ted's Excellent Adeventure) to a BR rip (Independence Day). Both feature exactly the same bitrates & sample rates for video and audio -- according to the Windows Properties -> Details tab, Data rate is 1499kbps, Total bitrate 1659, 23 frames/second, 2 stereo audio channels at 48KHz. The only difference is the BR frame size is larger (1920x812), and of course the run times & file sizes are different. But the bigger file plays fine, and a lot of these smaller files do not.


MP4s from DVDs that will stream: Toy Story, Dead Again, Clue, School of Rock.

MP4s from DVDs that won't stream: Ocean's Eleven, Escape from New York, Galaxy Quest, Robocop (Criterion). Shaun of the Dead, Team America World Police

Again, these were all converted on the same PC with the same software and same settings. If there's a common thread among the source material of the MP4s that will play and won't play, I don't know what it is, but I figured it would not hurt to list it.

My Handbrake settings are based on Handbrake's AppleTV 2 preset, with the following modifications:


Avg Bitrate 1500, 2-pass, no turbo 1st pass

Framerate: 30, Peak


Optimize:

x264 Preset: Very Slow

H.264 Profile: High

H.264 Level: 3.1


Container is MP4, as is the file extension. (Since dragged-and-dropped MKV files default to M4V in Handbrake, I select MKV then re-select MP4 from the Container drop-down before adding to Handbrake's queue.)


Someone suggested I simply change the file extension to M4V, so I tried it, but that did not fool any of the stream devices.


I have been testing the output MP4 files on my PC as I go, and once they played fine in VLC after Handbrake, I have been deleting the MKV files. I can go back and rip them all again if I have to (these are all from DVDs I personally own), but obviously I'd rather not do that! So my questions now are:


- Could this be related to the audio stream? I've been opting for the DD 3/2.1 stream whenever possible when ripping, and letting Handbrake mix it down.

- If I run the MP4s through Handbrake a second time with a different setting, will it do a pass-through convert instead of a full re-encode? (I don't want to shrink the video if only the audio needs attention.) If so, which setting should that be?

- Is there a way to repair these MP4 files without completely starting over with a fresh MKV?

- If I have to start from scratch, should I go with Constant Quality over Average Bitrate?


Hopefully someone can spot my issue based on this description. I'm happy to send you my Handbrake settings as a .plist file and offer any other info I can, as I'm stumped as to what went wrong. There has to be a logical reason. Thanks!

Apple TV, Windows 7

Posted on Aug 11, 2013 1:23 AM

Reply
6 replies

Aug 12, 2013 2:56 PM in response to terryo2442

Mp4 is just an extension not a format

http://www.apple.com/appletv/specs.html


"H.264 video up to 1080p, 30 frames per second, High or Main Profile level 4.0 or lower, Baseline profile level 3.0 or lower with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats

MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats

Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format"

Aug 12, 2013 11:08 PM in response to terryo2442

Terry, sounds like we have similar problems but with different extensions. The plot thickens. I've tried changing the file extension, and I haven't seen any difference.


One of my recent tests was to encode the same film as an M4V using the Apple TV 3 preset and one as an MP4 using the same present, but removing the AC3 passthrough audio channel. The M4V was 1.5 GB instead of 1.0 for the MP4. The M4V played, the MP4 didn't. This is the only clue I have; perhaps it is related to the audio, or the mixdown is not working on some soundtracks.


All of my MP4s are within the specs listed by Rudegar. I will double-check, because it's a starting point, but I'm fairly certain.

Aug 24, 2013 2:43 AM in response to Rudegar

I've continued tests on different films, and tried my entire collection. I've found about two dozen that will play fine on the PC, but will not cooperate when streamed to either Apple TV or my iPad. I tried several more tests with the audio, and that turned out not to be a factor -- I could not replicate that on another test.


I wonder if something in the header of these files is corrupted or a flag is set incorrectly or something along those lines, as the data appears to be fine -- it's just not "handshaking" with my streaming hardware and/or the Apple Home Sharing code that powers it.


Is there any way for me to "scrub" these files and amend their headers, or get into the file and tinker with that info by hand?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why won't some of my MP4s stream to Apple TV (or iPad) via Home Sharing?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.