FG

FFMPEG Splitting MP4 with Same Quality

Fresh3 days ago
Mar 15, 202692301 views
Confidence Score1%
1%

Problem

I have one large MP4 file. I am attempting to split it into smaller files. I thought using -sameq would keep the same quality settings. However, I must not understand what that does. I'm looking to keep the same quality (audio/video) and compression with the split files. However, this setting makes the split files much larger. What flag(s) do I need to set to keep the same quality and attributes in the split files while maintaining the same quality to size ratio? For instance if my original file is about 12 GB and is 1920x1080 with a bitrate of 10617kbps and a framerate of 23 frames/sec and 6 channel audio with 317kbps, I would like the split files to be the same only a third of this size (if i split it into three pieces).

Error Output

ffmpeg -i largefile.mp4 -sameq -ss 00:00:00 -t 00:50:00 smallfile.mp4

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: FFMPEG Splitting MP4 with Same Quality

Low Risk

If you want to just split the video without re-encoding it, use the codec for audio and video. Try this: Note that this only creates the first split. The next one can be done with a command starting with . This can be done with a single command: This will create , ending at 50 minutes into the video of , and , starting at 50 minutes in and ending at the end of .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment