View Full Version : YAMB audio
dror.sharon
19th July 2014, 14:32
Hello!
I've been using Handbrake to encode movies to my iPad 4, and it works perfectly.
However, at times I have an mp4 file, and then I want to add another track, usually the commentaries track from a Blu Ray which I didn't add originally.
Now, I found YAMB and it indeed allows me to combine several track to the film. However, the end result is that all the tracks play at the same time, and iTunes doesn't find different tracks, just one track made of all the other tracks combined.
Is there a way to fix this?
Thanks for the help!
Asmodian
19th July 2014, 21:31
Try re-muxing with MkvToMp4 (http://forum.doom9.org/showthread.php?p=1537903#post1537903) or via command line with the new mp4box (http://gpac.wp.mines-telecom.fr/). I don't like the way mp4box is integrated into the entire GPAC package as I only need mp4box but installing the entire thing seems to be ok (via a custom install at least).
Don't be fooled by the name, MkvToMp4 seems to have expanded its functionality.
fvisagie
20th July 2014, 08:48
if you would like to see how ffmpeg works for you, you could use the syntax:
ffmpeg -i handbrakefile.mp4 -i commentaryfile.mp4 -map 1,0 -c copy newfile.mp4
'-i' quite obviously specifies the two input files, '-map 1,0' specifies that the 2nd input file (commentary) be synched to the 1st input file and '-c copy' specifies that no re-encoding be done. Therefore this command line assumes your commentary track is already in a format suitable for MP4 and iPad.
hello_hello
20th July 2014, 08:54
You could try My MP4Box GUI (http://www.videohelp.com/tools/My-MP4Box-GUI). It comes with MP4Box so you don't need to download it separately. I gave up on YAMB a long time ago. I don't think it's been updated for quite a while and I couldn't always get it to do what I thought it should be doing when muxing anyway.
It sounds more like a player issue than a muxing issue to me though. I rarely use MP4 and don't have an ianything installed, but if itunes won't let you select a specific audio track, can you use a different player? Or at least try a different player to confirm it's an itunes issue before you waste too much time trying to fix the problem the wrong way.... so to speak. It sounds like the audio tracks are being muxed correctly but they're all being decoded at the same time.
MeGUI (http://www.videohelp.com/tools/MeGUI) also has an MP4 muxer under it's Tools menu. It also uses MP4Box to do the work. I just thought I'd mention it, as it can be used as a MP4Box GUI.
Reino
20th July 2014, 11:13
ffmpeg -i handbrakefile.mp4 -i commentaryfile.mp4 -map 1,0 -c copy newfile.mp4
'-i' quite obviously specifies the two input files, '-map 1,0' specifies that the 2nd input file (commentary) be synched to the 1st input file...-map 1,0 is first of all incorrect. The correct syntax is -map 1:0, but with -map 1:0 you only forward the 2nd input's videostream, completely ignoring the 1st input. The following would be better:
ffmpeg.exe -i <input1> -i <input2> -map 0 -map 1:1 -c copy <output>-map 0 forwards all streams of <input1> and -map 1:1 forwards only the 2nd track (the audiotrack) of <input2>.
fvisagie
20th July 2014, 11:57
-map 1,0 is first of all incorrect. The correct syntax is -map 1:0
No, the correct syntax for specifying that all streams from the 2nd input be synched to the first input file is '-map 1,0'. From the documentation (http://ffmpeg.org/ffmpeg.html#Advanced-options):
‘-map [-]input_file_id[:stream_specifier][,sync_file_id[:stream_specifier]] | [linklabel] (output)’
... Each input stream is identified by the input file index input_file_id and the input stream index input_stream_id within the input file. Both indices start at 0. If specified, sync_file_id:stream_specifier sets which input stream is used as a presentation sync reference.Note the comma as well as the optional [:stream_specifier] following 'sync_file_id'.
But the command I suggested did miss out the next part
The first -map option on the command line specifies the source for output stream 0, the second -map option specifies the source for output stream 1, etc. as you point out below.
but with -map 1:0 you only forward the 2nd input's videostream, completely ignoring the 1st input. The following would be better:
ffmpeg.exe -i <input1> -i <input2> -map 0 -map 1:1 -c copy <output>-map 0 forwards all streams of <input1> and -map 1:1 forwards only the 2nd track (the audiotrack) of <input2>.
Adding the synch specifier:
ffmpeg.exe -i <input1> -i <input2> -map 0 -map 1:1,0 -c copy <output>
This would work for <input2> containing video and audio, in that order. If audio is the first or only track (as assumed in the original ffmpeg suggestion), the following should be used
ffmpeg.exe -i <input1> -i <input2> -map 0 -map 1:0,0 -c copy <output>
dror.sharon
22nd July 2014, 15:58
Thanx all!
I don't really use command lines, since I have no idea how to use them.
Will report about the results soon!
dror.sharon
22nd July 2014, 20:36
Well I used MKVtoMP4 to add the commentary track. VLC player plays it fine, but iTunes won't recognize it at all!
I drag it to the iTunes window, and it isn't added to the movies list. Now, I have A LOT of "home made" movies (basically my entire Blu Ray collection...), and it never had that problem before.
I used the files that iTunes originally recognized (MP4 before adding the commentaries). I tryed both MP4 file format and M4V with two different movies, but nothing seems to work...
Any other ideas?
Asmodian
23rd July 2014, 01:40
You do have the "Mp4 atom correction for Apple devices" checked right? 8-bit H.264 and <=160 Kbps stereo AAC?
dror.sharon
24th July 2014, 01:14
OK guys!
It seems the movies actually WERE transfered to iTunes, it just placed them in Movies instead of Home Videos, which is why I didn't find them.
So, to sum up, the situation is resolved and everything is working perfectly!
So resolved!
Thanx a lot everyone, you're great!
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.