FFmpeg presets

FFmpeg is a very fast command line program for encoding video files.

Instructions:
  1. Download the program here
  2. Download the appropriate batch file below
  3. copy both files to the folder of the video file to be re-encoded
  4. open the batch file in a text editor such as notepad and change " Input_file.mov " to your file name.
  5. run the batch file


Here are a few presets:
  1. convert Quicktime animation to prores
    I use this method to encode my films for festival screenings
    Right click this link and chooose "save file as": ffmeg_Quicktime_Animation_to_ProresLT.bat

    here is the command line inside the batch file:
    ffmpeg -i "input.mov" -vcodec prores -profile:v 1 -acodec pcm_s16le -ar 48000 -ac 2 "Output.mov"

    Change the profile number for the desired Prores quality:
    0 - Proxy
    1- LT
    2 - SQ
    3 - HQ

  2. Replace the audio track in a video file
    This will save a lot of time when you get an updated audio track from your sound designer and you don't want to export your film again from your editing program.
    Right click this link and chooose "save file as": ffmpeg_replace_Audio.bat

    here is the command line inside the batch file:
    ffmpeg -i input_video.mp4 -i input_audio.wav -vcodec copy -map 0:0 -map 1:0 "output.mp4

  3. Batch Convert all AVI files in folder to MP4 (this mp4 file will only open in VLC)
    In this file you don't have to change anything. It will convert all AVI files in the folder to MP4 files.
    Right click this link and chooose "save file as": ffmpeg_batch_AVI_to_Mp4.bat


    here is the command line inside the batch file:
    for %%a in ("*.avi") do ffmpeg -i "%%a" -c:v libx264 -crf 19 -preset slow -c:a aac -strict experimental -b:a 192k -ac 2 "%%~na.mp4"
    * change the CRF number to change the mp4 quality. Lower numbers wll give higher quality.

  4. Batch Convert all AVI files in folder to Prores
    Right click this link and chooose "save file as": ffmpeg_batch_AVI_to_prores.bat

    *see remarks in number 1 for prores quality settings
go back to Class Notes
go back to homepage