Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 2.79 KB

README.md

File metadata and controls

36 lines (29 loc) · 2.79 KB

FFMpeg-compress-videos

Compress videos using FFMpeg algorithm

image

How to use the app

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. Start FFMpeg compression!
    • Compression will take 1-5 min per video. The output videos will have .mp4 extension.

Installation

  • Download and install FFMpeg
    • Installing FFMpeg is a bit more tedious than typical software, so follow wikiHow or this guide.
  • Download this repository.
  • Run ffmpegsetup.m and follow its instructions to specify the path of the ffmpeg executable file.

Dependencies

Examples

The same frame from an example uncompressed (left) and 10x compressed video (right). image

The same frame from an example uncompressed (left, 8.07 GB) and 67x (x264Crf = 30) compressed video (right, 0.12 GB). image