Remove flv encode, add presets to repo, remove audio from mp4 pass1
authorElana Hashman <ehashman@csclub.uwaterloo.ca>
Mon, 3 Nov 2014 18:33:31 +0000 (13:33 -0500)
committerElana Hashman <ehashman@csclub.uwaterloo.ca>
Mon, 3 Nov 2014 18:33:31 +0000 (13:33 -0500)
encode.sh
libx264-slow.ffpreset [new file with mode: 0644]
libx264-slow_firstpass.ffpreset [new file with mode: 0644]
make-mp4.sh

index 07e5b03..de5e960 100755 (executable)
--- a/encode.sh
+++ b/encode.sh
@@ -42,7 +42,7 @@ TIC=`date +%s`
 # broken
 
 # Job5: flv
-./make-flv.sh $1 $2 &
+#./make-flv.sh $1 $2 &
 
 wait
 
diff --git a/libx264-slow.ffpreset b/libx264-slow.ffpreset
new file mode 100644 (file)
index 0000000..955495a
--- /dev/null
@@ -0,0 +1,22 @@
+coder=1
+flags=+loop
+cmp=+chroma
+partitions=+parti8x8+parti4x4+partp8x8+partb8x8
+me_method=umh
+subq=8
+me_range=16
+g=250
+keyint_min=25
+sc_threshold=40
+i_qfactor=0.71
+b_strategy=2
+qcomp=0.6
+qmin=10
+qmax=51
+qdiff=4
+bf=3
+refs=5
+directpred=3
+trellis=1
+flags2=+bpyramid+mixed_refs+wpred+dct8x8+fastpskip+mbtree
+wpredp=2
diff --git a/libx264-slow_firstpass.ffpreset b/libx264-slow_firstpass.ffpreset
new file mode 100644 (file)
index 0000000..e043a66
--- /dev/null
@@ -0,0 +1,22 @@
+coder=1
+flags=+loop
+cmp=+chroma
+partitions=-parti8x8-parti4x4-partp8x8-partb8x8
+me_method=dia
+subq=2
+me_range=16
+g=250
+keyint_min=25
+sc_threshold=40
+i_qfactor=0.71
+b_strategy=2
+qcomp=0.6
+qmin=10
+qmax=51
+qdiff=4
+bf=3
+refs=1
+directpred=3
+trellis=0
+flags2=+bpyramid-mixed_refs+wpred-dct8x8+fastpskip+mbtree
+wpredp=2
index 691ff6f..721adb3 100755 (executable)
@@ -7,13 +7,14 @@ TIC=`date +%s`
 $ffmpeg -i $1 -v -1 -y $ffmpegopts -strict experimental \
        -pass 1 -threads 0 -y \
        -vcodec libx264 -f mp4 -b "$V_BIT_RATE"  -bt "$V_BIT_RATE" \
-       -vpre slow_firstpass \
+       -fpre ./libx264-slow_firstpass.ffpreset \
+       -an \
        "encodes/$2-first.mp4"
 
 $ffmpeg -i $1 -v -1 -y $ffmpegopts -strict experimental \
        -pass 2 -threads 0 \
        -vcodec libx264 -f mp4 -b "$V_BIT_RATE" -bt "$V_BIT_RATE" \
-       -vpre slow \
+       -fpre libx264-slow.ffpreset \
        -acodec aac -ac 1 -ab "$A_BIT_RATE" \
        "encodes/$2.mp4"