Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add script to convert vids to h264

  • Loading branch information...
commit 2b77bb8d792cf10b49596477e90e9b520ebec4f6 1 parent 36898d8
@w0ng authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 vidconvert
View
9 vidconvert
@@ -0,0 +1,9 @@
+#!/bin/bash
+# convert videos to x264 + aac
+# http://rodrigopolo.com/ffmpeg/cheats.html
+
+#ffmpeg -y -i $1 -r 30000/1001 -b:v 1M -bt 2M -vcodec libx264 -pass 1 -flags +loop -me_method dia -g 250 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 16 -b_strategy 1 -i_qfactor 0.71 -cmp +chroma -subq 1 -me_range 16 -coder 1 -sc_threshold 40 -flags2 -bpyramid-wpred-mixed_refs-dct8x8+fastpskip -keyint_min 25 -refs 1 -trellis 0 -directpred 1 -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 -an output.mp4
+
+#ffmpeg -y -i $1 -r 30000/1001 -b:v 1M -bt 2M -vcodec libx264 -pass 2 -flags +loop -me_method umh -g 250 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 16 -b_strategy 1 -i_qfactor 0.71 -cmp +chroma -subq 8 -me_range 16 -coder 1 -sc_threshold 40 -flags2 +bpyramid+wpred+mixed_refs+dct8x8+fastpskip -keyint_min 25 -refs 4 -trellis 1 -directpred 3 -partitions +parti8x8+parti4x4+partp8x8+partb8x8 -acodec aac -ac 2 -ar 44100 -ab 128k -strict -2 output.mp4
+
+ffmpeg -y -i "$1" -r 30000/1001 -b:v 1M -bt 2M -vcodec libx264 -flags +loop -me_method umh -g 250 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 16 -b_strategy 1 -i_qfactor 0.71 -cmp +chroma -subq 8 -me_range 16 -coder 1 -sc_threshold 40 -flags2 +bpyramid+wpred+mixed_refs+dct8x8+fastpskip -keyint_min 25 -refs 4 -trellis 1 -directpred 3 -partitions +parti8x8+parti4x4+partp8x8+partb8x8 -acodec aac -ac 2 -ar 44100 -ab 61.1k -strict -2 "${1%.rmvb}.mp4"
Please sign in to comment.
Something went wrong with that request. Please try again.