Page 5 of 5: MP4 Manipulation - using YAMB
MP4 Manipulation - using YAMB:
This section shows you how to use YAMB (Yet Another MP4Box GUI) to edit (join, split and (de)multiplex) MP4 files.
First off, download YAMB, install it and run it.
MP4 Splitting:Go to the "Editing" section and double click on the "Click to split MP4/M4A/MOV/3GP Files" option.
To split a MP4 file, load the MP4 file in the "Input" section and select one of the splitting options:
- Split by Size: Split the MP4 file into smaller files, each with the set file size (and whatever is left over in the final file of the set). Input the file size in MBs.
- Split by Duration: Split the MP4 file into smaller files, each with the set duration. Input in the format hh:mm:ss.ccc or in the number of seconds. The example below splits the video into several files, each 1 minute long.
- Split from Time A to Time B: Split the MP4 file from "Time A" to "Time B". Again, the input in the format hh:mm:ss.ccc or in the number of seconds. The example below produces a file from 1 minute (60 seconds) into the video to 1 minute 20 seconds (80 seconds).
Press the "Next" button to start the splitting process.
MP4 Joining:
Go to the "Editing" section and double click on the "Click to join supported files" option.
To join several MP4 files together, use the "Add" button to add the MP4 files (in the required order), use the "Output" button to specify an output location for the joined file and press the "Join" button to start the join. The "Index" column shows which track in the final output file the current track will be joined to.
Press the "Next" button to start the joining process.
MP4 Multiplexing:
Go to the "Creation" section and double click on the "Click to create an MP4 file with multiple audio, video and subtitle streams" option.
In the "Input" section, use the "Add" button to import the various video, audio and subtitle streams you wish to mux into a single MP4 file. You can use the checkbox to deselect any track that you don't want to add to the output. The "Index" column shows which track in the output file the current track will be added to. If you are adding a .h264 stream, you will have to specify some details for the file, such as the framerate (this is done by selecting the H.264 stream and clicking on the "Properties" button).
Subtitle files can be added, supported formats include SRT, IDX, GPAC Time Text File and QuickTime TeXML.
Chapter files can also be added. The chapter file must be in Ogg text format or GPAC format. If your source is a DVD, DVD Decrypter can create the Ogg text chapter format during ripping (in DVD Decrypter, go to "Settings" -> "IFO mode" -> "Create Additional Files" -> select "Chapter Information - OGG".
Press the "Next" button to multiplex all the input files.
MP4 Demultiplexing/Extracting:
Go to the "Editing" section and double click on the "Click to extract streams from AVI/MP4/MOV/TS" files.
Load the MP4 file you want to demux in the "Input" section. Information about the MP4 file will be displayed in the "Content" section, including a list of available tracks and their properties.
Highlight the track that you want to extract, and then select either the "Extract to Raw Format" or "Extract to MP4" option. The "Extract to Raw Format" option will extract the track in its raw format without a container (eg. .h264, .aac). The "Extract to MP4" option will wrap the extracted track in a MP4 container. You can also use the "Extract All Streams to Raw Format" option, which does exactly what the option suggests.
Press the "Next" button to demux the selected track(s).