Compress videos using FFMpeg algorithm
- Select source video files (.avi) to compress, or select folders where video files are stored. Video files will be searched in the folders and all subfolders. You can select multiple files and folders.
- All the video files found will be listed in the left listbox. From there, select the videos you want to compress and move them to the right listbox.
- Select Destination folder (default: destination folder is the same of the source video). Note: if you specify a folder, the same destination folder will be used for all videos regardless of their respective source folder.
- A prefix or suffix can be added to the file name. If you specify any, the same prefix/suffix will be added to the file name of all videos.
- Select whether to delete source files or not (deafult is Delete Off)
- If you select Delete On, you will be asked for confirmation.
- The app will try to move files to the Recycle Bin, rather then deleting permanently. Note: files will be permanently deleted if they are located in an external or network drive.
- Select the compression factor (x264Crf between 1 and 51 (default 25, corresponding to a file size of ~18 times smaller))
- A compression factor of 25 (~18 times smaller file size) should be fine in most cases
- Check Mathis & Warren 2018 and examples below.
- Start FFMpeg compression!
- Compression will take 1-5 min per video. The output videos will have .mp4 extension.
- Download and install FFMpeg
- Download this repository.
- Run
ffmpegsetup.m
and follow its instructions to specify the path of the ffmpeg executable file.
- FFMpeg Toolbox (already included in this repository)
- uipickfiles: uigetfile on steroids (already included in this repository)
The same frame from an example uncompressed (left) and 10x compressed video (right).
The same frame from an example uncompressed (left, 8.07 GB) and 67x (x264Crf = 30) compressed video (right, 0.12 GB).