Interested in improving the compression for mp4 files output from ffmpeg. Looking for a saved file size comparable equivalent formats: ogv; mkv.
I had found that my files mp4 created by ffmpeg following an action such as top and tail were larger than the original.The mp4 version of a file was much larger when compared to other video formats.
H.264 is an advanced coding standard capable of encoding high quality video to a lower bit rate when compared to older video compression standards.
Selecting the h264 encoding increases the compression reducing the size of the resulting file
To output a video called video-source.mp4 as h.264 format to a file called video-output.mp4 use the following ffmpeg command.
ffmpeg -i video-source.mp4 -vcodec h264 -acodec aac video-output.mp4
I’ve found this to be effective at reducing the size of the file to be used, and uploaded to a website.


