root/transcode-test

Revision 68, 1.1 kB (checked in by steve, 2 years ago)

cleanup

  • Property svn:executable set to *
Line 
1#!/bin/sh
2# Normal 2-pass encode
3
4if [[ "$2" = "1" ]]; then
5        FLAGS=" -f 23.976,1 "
6else
7        FLAGS=""
8fi
9
10if [[ ! -f tc-test1.avi ]]; then
11        transcode -a 0 -b 128,0,0 -w 2200,250,100 -A -N 0x2000 -M 2 -Y 4,4,4,4 -B 1,11,8 -R 1,tc-test1.log -x mpeg2,ac3 -y xvid4,null -o /dev/null --write_pid transcode.pid -i $1 $FLAGS
12        transcode -a 0 -b 128,0,0 -w 2200,250,100 -A -N 0x2000 -M 2 -Y 4,4,4,4 -B 1,11,8 -R 2,tc-test1.log -x mpeg2,ac3 -y xvid4 -o tc-test1.avi --write_pid transcode.pid -i $1 $FLAGS
13       
14        if [[ -f tc-test1.log ]]; then
15                rm tc-test1.log
16        fi
17        if [[ -f transcode.pid ]]; then
18                rm transcode.pid
19        fi
20fi
21
22if [[ "$2" = "1" ]]; then
23        FLAGS=" -f 0,4 --export_frc 0,4 -J ivtc -J decimate -J 32detect=force_mode=5:chromathres=2:chromadi=9 "
24else
25        FLAGS=" -J 32detect=force_mode=5:chromathres=2:chromadi=9 -I 1 "
26fi
27
28# Variable framerate encode
29if [[ ! -f tc-test2.avi ]]; then
30        transcode -x mpeg2,ac3 $FLAGS --hard_fps -M 2 -R 3 -w 2 -B 3,9,16 -y xvid -o tc-test2.avi -A -N 0x2000 -a 0 -b 128,0,0 --write_pid transcode.pid -i $1
31fi
32
33if [[ -f transcode.pid ]]; then
34        rm transcode.pid
35fi
Note: See TracBrowser for help on using the browser.