Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th August 2014, 02:29   #1  |  Link
bennynihon
Registered User
 
Join Date: Oct 2001
Posts: 106
mux Apple compliant .mp4 / .m4v? mp4box doesn't do it for me

All of my encodes have the following elementary streams (video.264, audio.m4a (aac), audio.ac3, subtitles.srt, and chapters.txt). I mux them with mp4box using the following command

Code:
"c:\program files\gpac\mp4box.exe" -add video.264 -add audio.m4a:lang=en:group=1:disable -add audio.ac3:lang=en:group=1 -add subtitles.srt:lang=en:hdlr=sbtl:disable -chap chapters.txt -ipod -new "output.m4v"
However, despite using -ipod I am not able to get them to sync to my iPad Air properly. I can add the movies to my iTunes library, but get the following error when trying to sync: "was not copied...because it cannot be played on this iPad". If I open up the .m4v file that I get out of mp4box in the Mac OS application, Subler, and simply save it to another file, this movie can be added to my iPad without issue. So clearly using the options I have used above with mp4box doesn't create an Apple compliant movie, while Subler does. The documentation of mp4box is a bit sparse, so I'm not sure if there are other options that are suggested to get an Apple compliant .m4v file.

Since I use a Windows box to batch encoded movies, using Subler is out of the question. And although I'd love to use .MKV, I'd rather create .MP4/.M4V since most of my products are Apple (iPad, iPhone, Apple TV). What's everyone using to mux Apple compliant .m4v files?
bennynihon is offline   Reply With Quote
Old 12th August 2014, 03:12   #2  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
Have you tried MkvToMp4? It does a lot more than its name might suggest.

Last edited by Asmodian; 12th August 2014 at 03:14.
Asmodian is offline   Reply With Quote
Old 12th August 2014, 03:18   #3  |  Link
bennynihon
Registered User
 
Join Date: Oct 2001
Posts: 106
Quote:
Originally Posted by Asmodian View Post
Have you tried MkvToMp4? It does a lot more than its name might suggest.
I have. But it's GUI only, correct? Right now automate the muxing process after I encode my movies via a command line batch file
bennynihon is offline   Reply With Quote
Old 12th August 2014, 03:58   #4  |  Link
bennynihon
Registered User
 
Join Date: Oct 2001
Posts: 106
oops. Realized I started this thread in the wrong forum. Meant to be in the a/v container one.

But the good news is that MkvToMp4 also seems to fix the output of mp4box. Seems to have something to do with TKHD atoms.

Quote:
TKHD atom correction for video. TRAK 1
TKHD atom correction for audio. TRAK 2
Is there a way to avoid them being "incorrect" from the get go, or can I correct them from the command line with something like mp4box? Thanks
bennynihon is offline   Reply With Quote
Old 12th August 2014, 06:09   #5  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
You could give a try to L-Smash's muxer or remuxer...

http://forum.doom9.org/showthread.ph...66#post1688566
filler56789 is offline   Reply With Quote
Old 12th August 2014, 06:51   #6  |  Link
bennynihon
Registered User
 
Join Date: Oct 2001
Posts: 106
Quote:
Originally Posted by filler56789 View Post
You could give a try to L-Smash's muxer or remuxer...

http://forum.doom9.org/showthread.ph...66#post1688566
Thanks for the suggestion. I had looked at it previously, but it seemed somewhat limited in its capabilities. Any way to mux in a subtitle track? Or set the default audio track?
bennynihon is offline   Reply With Quote
Old 12th August 2014, 09:31   #7  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
In order to work out which streams are causing a problem I suggest you try generating 'test muxes' using just the video and audio streams first. And build up from there.

Apple media players can be extremely fussy with various stream combinations as their media players don't conform fully to the MPEG-4 ISO standard.
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 12th August 2014, 15:43   #8  |  Link
bennynihon
Registered User
 
Join Date: Oct 2001
Posts: 106
Quote:
Originally Posted by SeeMoreDigital View Post
In order to work out which streams are causing a problem I suggest you try generating 'test muxes' using just the video and audio streams first. And build up from there.
I determined it has something to do with disabling the AAC track.

Code:
-add audio.m4a:lang=en:group=1:disable -add audio.ac3:lang=en:group=1
Since I have both a stereo AAC audio track and an AC3 audio track (for broader player compatibility), I wanted to make sure the AC3 was the default track but wanted to place the AAC audio as the 1st audio track sequentially since some players expect an AAC audio track to be the first one. Hence the reason for disabling the AAC track to make the AC3 the default one. But perhaps this isn't the way to handle this.
bennynihon is offline   Reply With Quote
Old 12th August 2014, 15:47   #9  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
Quote:
Originally Posted by bennynihon View Post
Since I have both a stereo AAC audio track and an AC3 audio track (for broader player compatibility), I wanted to make sure the AC3 was the default track but wanted to place the AAC audio as the 1st audio track sequentially since some players expect an AAC audio track to be the first one. Hence the reason for disabling the AAC track to make the AC3 the default one. But perhaps this isn't the way to handle this.
I seem to remember reading somewhere that the AAC track has to be the first/default track for Apple devices...
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 13th August 2014, 01:09   #10  |  Link
bennynihon
Registered User
 
Join Date: Oct 2001
Posts: 106
Quote:
Originally Posted by SeeMoreDigital View Post
I seem to remember reading somewhere that the AAC track has to be the first/default track for Apple devices...
Yeah, apparently that's the case. Looks like this was the cause of my issues
bennynihon is offline   Reply With Quote
Old 13th August 2014, 09:34   #11  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
Quote:
Originally Posted by bennynihon View Post
Yeah, apparently that's the case. Looks like this was the cause of my issues
Life would be so much easier if Apple made their devices truly 'end-user friendly' and offered greater ISO 14496 compliance
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 14:09.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.