Skip to content

Instantly share code, notes, and snippets.

@mradbourne
Last active September 29, 2016 15:37
Show Gist options
  • Select an option

  • Save mradbourne/c8031b7cfe6a1568d9459ba930733eaf to your computer and use it in GitHub Desktop.

Select an option

Save mradbourne/c8031b7cfe6a1568d9459ba930733eaf to your computer and use it in GitHub Desktop.

Revisions

  1. Matt Radbourne revised this gist Sep 29, 2016. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion ffmpeg-presets.sh
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,5 @@
    # WebM - Standard web video quality
    ffmpeg -i INPUT.mov -codec:v libvpx -quality good -cpu-used 0 -b:v 600k -maxrate 600k -bufsize 1200k -qmin 10 -qmax 42 -vf scale=-1:480 -threads 4 -codec:a libvorbis -b:a 128k OUTPUT.webm
    ffmpeg -i input_file.mov -codec:v libvpx -quality good -cpu-used 0 -b:v 600k -maxrate 600k -bufsize 1200k -qmin 10 -qmax 42 -vf scale=-1:480 -threads 4 -codec:a libvorbis -b:a 128k output_file.webm

    # H.264 - Standard web video quality
    ffmpeg -i input_file.avi -codec:v libx264 -profile: high -preset slow -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=-1:480 -threads 0 -codec:a libfdk_aac -b:a 128k output_file.mp4
  2. Matt Radbourne created this gist Sep 29, 2016.
    2 changes: 2 additions & 0 deletions ffmpeg-presets.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # WebM - Standard web video quality
    ffmpeg -i INPUT.mov -codec:v libvpx -quality good -cpu-used 0 -b:v 600k -maxrate 600k -bufsize 1200k -qmin 10 -qmax 42 -vf scale=-1:480 -threads 4 -codec:a libvorbis -b:a 128k OUTPUT.webm