-
Notifications
You must be signed in to change notification settings - Fork 0
/
GenVideoFiles.sh
30 lines (22 loc) · 961 Bytes
/
GenVideoFiles.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
inputfile=<ReferenceVideoDirectory>/ntia_HeadShoulders-Female15_original.avi
outputFilePrefix=<OutputVideoDirectory>/ntia_HeadShoulders-Female15_h264_720p_baseline
logFile=<LogDirectory>/output.log
aNR=( 999 0 )
aQuant=( 23 27 31 35 )
aFPS=( 25 20 15 10 )
for NR in "${aNR[@]}"
do
for Quant in "${aQuant[@]}"
do
for FPS in "${aFPS[@]}"
do
outputFile=$outputFilePrefix
outputFile+=_fps$FPS
outputFile+=_q$Quant
outputFile+=_nr$NR
outputFile+=_amrwb_m08.3gp
time gst-launch-1.0 filesrc location=$inputfile ! decodebin name=demux ! queue ! videorate ! videoconvert ! videoscale ! "video/x-raw,width=1280,height=720,framerate=$FPS/1" ! x264enc pass=4 quantizer=$Quant noise-reduction=$NR ! "video/x-h264,profile=constrained-baseline" ! qtmux name=mux ! filesink location=$outputFile demux. ! queue ! progressreport ! audiorate ! audioconvert ! audioresample ! voamrwbenc band-mode=8 ! mux. >> $logFile
done
done
done