18

I'm looking for a tool which can split MP4 video files. I have tried Any Video Converter but find that it is unreliable and forces choices on frame size but does not always allow me to choose the existing frame size.

What I want is something very simple:

  1. Runs on Windows 7
  2. Takes an MP4 file as input
  3. Takes a desired file size as input
  4. Outputs multiple videos (video_1.mp4, video_2.mp4, etc.) which have the same frame size, same codec (h264, etc.) with a maximum file size as specified
  5. Can be command-line or graphical (but prefer graphical)
  6. Is free

This seems so simple but I see a lot people talking about a lot of problems with a lot of programs.

2 Answers 2

10

You can use FFmpeg:

  • Free, open-source and widely used
  • Supports most video formats
  • Runs on Windows, Linux and Mac.
  • Allows to cut:

    Running ffmpeg two times:

    ffmpeg -i input.avi -vcodec copy -acodec copy -t 00:30:00 output1.avi
    ffmpeg -i input.avi -vcodec copy -acodec copy -ss 00:30:00 -t 00:45:00 output2.avi
    

    Or in one command:

    ffmpeg -i input.avi -vcodec copy -acodec copy -t 00:30:00 output1.avi \
       -vcodec copy -acodec copy -ss 00:30:00 -t 00:45:00 output2.avi
    
  • Allows to specify the output's max size: -fs limit_size (output)

  • Is CLI so you can batch.
2
  • 1
    Could you please expand about what are those lines for? Nov 21, 2014 at 11:52
  • What a question in a comment... -i <inputfile> should be obvious. -vcodec copyand -acodec copy tell ffmpeg to use stream copying instead of transcoding. -ss <time> tells ffmpeg at which time to start and -ttells it how long a video to create. Reading the documentation would have explained that in much more detail.
    – St0fF
    Nov 9, 2015 at 22:27
3

A good freeware application for splitting and cutting video files (including mp4) is Avidemux. It supports a lot of formats and it is multiplatform. You can modify frame size, framerate, codec as you desire. You can also calculate output file size before you begin encoding it. If you only cut/split video without changing codecs it is very fast!

Here is a screenshot from Avidemux site:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.