Log in

View Full Version : mp4creator for linux-compatible


odyssey
14th March 2013, 16:45
I need a working mp4creator for linux, or more specifically my Synology NAS (Atom-based).

I have tried compiling it myself, but it fails, due to perl not being compiled with threads (and I have failed to compile perl as well).

I was wondering if it was possible to compile on a generic Linux-dist and run it on the NAS?

I also tried compiling it on OS X, but there it fails with
./cvs_bootstrap: line 12: libtoolize: command not found
Need a link for libtoolize to glibtoolize

Seems odd that it's nearly impossible to find anything on this with Google.

And no, I can't just use mp4box. Unless, someone has figured a way to mux h264+ac3 together with it, which is supported by iTunes/AppleTV. So far, I have only found Handbrake to do this properly, and it looks like it is build on mp4creator.

filler56789
14th March 2013, 17:28
AFAIK, mp4box does support AC3 input since a couple of years ago.

The command-line mp4box -h format does NOT list ac3, but it's only because the maintainers of the source-code are too lazy :)

odyssey
14th March 2013, 20:15
AFAIK, mp4box does support AC3 input since a couple of years ago.

The command-line mp4box -h format does NOT list ac3, but it's only because the maintainers of the source-code are too lazy :)
I didn't say that mp4box could not mux ac3+h264 - I said that it was not
supported by iTunes/AppleTV

Edit: And don't ask me why. I can just see the difference reported by mp4box on the Handbrake-file and the mp4box-file:

$ mp4box output.mp4 -info 0

* Movie Info *
Timescale 600 - Duration 02:10:16.320
Fragmented File no - 2 track(s)
File suitable for progressive download (moov before mdat)
File Brand mp42 - version 0
Created: GMT Wed Mar 13 20:03:20 2013

File has root IOD (9 bytes)
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: AVC/H264 Profile (0x15)
Audio PL: No audio capability required (0xff)
No streams included in root OD

$ mp4box handbrake.mp4 -info 0

* Movie Info *
Timescale 90000 - Duration 02:10:16.320
Fragmented File no - 2 track(s)
File Brand mp42 - version 0
Created: GMT Wed Mar 13 20:37:33 2013

File has root IOD (9 bytes)
Scene PL 0xff - Graphics PL 0xff - OD PL 0xff
Visual PL: ISO Reserved Profile (0x7f)
Audio PL: No audio capability required (0xff)
No streams included in root OD

iTunes Info:
Encoder Software: HandBrake 0.9.8 2012071800

If you have a magic setting to make mp4box do the same stuff that Handbrake apparently does, please enlighten me :D

SeeMoreDigital
14th March 2013, 22:18
And no, I can't just use mp4box. Unless, someone has figured a way to mux h264+ac3 together with it, which is supported by iTunes/AppleTV. So far, I have only found Handbrake to do this properly, and it looks like it is build on mp4creator.
I seem to remember somebody mentioning (a long time ago) that Apple products require an mandatory AAC audio stream along with an AC3 audio stream. And that the AAC audio stream has to be assigned as the primary stream...

odyssey
14th March 2013, 22:21
I seem to remember somebody mentioning (a long time ago) that Apple products require an mandatory AAC audio stream along with AC3 audio stream. And that the AAC audio stream has to be assigned as the primary stream...
Edit: Deleted wrong information

SeeMoreDigital
14th March 2013, 22:42
I've seen that claim too, but I have already verified this claim to be false :)

Actually, the file shown above, that was created with Handbrake, contains only a video and an AC3 track, and it played flawlessy on my AppleTV.
That's interesting. Are you able to provide a short sample?

odyssey
14th March 2013, 23:43
That's interesting. Are you able to provide a short sample?

Well ain't that typical... You mess around for several nights trying to get something to work, and the minute you ask for help, everything clears up and makes sense!
:stupid:

Apparently you are right (although, I am quite sure I SOMEHOW got a file with just one AC3 track playing yesterday). However, I'm not able to reproduce that now.

Instead, I'm able to reproduce the claim that it will only work if an AAC-stream is also included (!!!)

It took quite some trials for me now, and I had to dig up some information that I had previously dismissed, but here is the right solution:

AC3 track MUST be disabled and be placed AFTER the AAC-track.
Both audio tracks MUST belong to the same group

This command should work for muxing together the streams properly:

mp4box -fps 23.976 -add video.h264 -add audio.aac:group=1 -add audio.ac3:group=1:disable -new apple_compliant.m4v

Which means, that with this, it should be possible to re-mux mkv files with h264-material for use with AppleTV's! YAY :D

It's worth noting, though that I've got the new refresh model (Apple TV 3,2), and I have not seen a High Profile 4.1 video that it wasn't able to playback. I don't know how previous models deal with this (other than it is not supported officially)

Thanks for your "help" :)

filler56789
15th March 2013, 00:33
:thanks: 4 sharing your knowledge :) :) :)

But anyway, now everybody knows the actual problem has always been iTunes and Apple TV ---

--- both of which "nobody uses" :D