History

tests/fate-run: Allow to set dec opts for generated file in transcode

This can be necessary to e.g. force a fixed-point audio codec.

Andreas Rheinhardt committed 4 years ago

Commit c9e70501 parent bf1337f1 file · +3 −2Browse files

Unified · Split

tests/fate-run.sh+3−2
@@ -230,9 +230,10 @@ transcode(){ · 229 unmodified lines
230 srcfile=$2230 srcfile=$2
231 enc_fmt=$3231 enc_fmt=$3
232 enc_opt=$4232 enc_opt=$4
233 final_decode=$5233 final_encode=$5
234 ffprobe_opts=$7234 ffprobe_opts=$7
235 additional_input=$8235 additional_input=$8
236 final_decode=$9
236 test -z "$additional_input" || additional_input="$DEC_OPTS $additional_input"237 test -z "$additional_input" || additional_input="$DEC_OPTS $additional_input"
237 encfile="${outdir}/${test}.${enc_fmt}"238 encfile="${outdir}/${test}.${enc_fmt}"
238 test "$6" = -keep || cleanfiles="$cleanfiles $encfile"239 test "$6" = -keep || cleanfiles="$cleanfiles $encfile"
@@ -242,7 +243,7 @@ transcode(){ · 3 unmodified lines
242 $ENC_OPTS $enc_opt $FLAGS -f $enc_fmt -y $tencfile || return243 $ENC_OPTS $enc_opt $FLAGS -f $enc_fmt -y $tencfile || return
243 do_md5sum $encfile244 do_md5sum $encfile
244 echo $(wc -c $encfile)245 echo $(wc -c $encfile)
245 ffmpeg $DEC_OPTS -i $tencfile $ENC_OPTS $FLAGS $final_decode \246 ffmpeg $DEC_OPTS $final_decode -i $tencfile $ENC_OPTS $FLAGS $final_encode \
246 -f framecrc - || return247 -f framecrc - || return
247 test -z $ffprobe_opts || \248 test -z $ffprobe_opts || \
248 run ffprobe${PROGSUF}${EXECSUF} -bitexact $ffprobe_opts $tencfile || return249 run ffprobe${PROGSUF}${EXECSUF} -bitexact $ffprobe_opts $tencfile || return

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t