VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Member
    Join Date
    Oct 2005
    Location
    England
    Search Comp PM
    I have some quite large mp4 files (5-6 hours+) that I'd like to cut into either 30 minute or 1 hour chunks, without reencoding them. Are there any programs that can automate this process?
    Quote Quote  
  2. mp4box . Make sure you download a very recent mp4box build from GPAC, because older mp4box builds did not work properly

    The basic syntax is -split (in seconds)

    e.g.

    mp4box -split 1800 "input.mp4"

    would produce

    input_001.mp4
    input_002.mp4
    input_003.mp4
    .
    .
    .



    They won't be EXACTLY 1800sec for most types of files - because the splits have to be on GOP boundaries on Keyframes. So it might be a second or so off each cut depending on the source file and GOP configuration , but the output files will not have missing frames or overlaps (ie. if you re-join the segments, you will have the original)



    To do it in batch file (e.g. process all the MP4 files in a directory)

    Code:
    for %%a in ("*.mp4") do "mp4box.exe" -split 1800 "%%a" 
    pause
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!