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
230230 srcfile=$2
231231 enc_fmt=$3
232232 enc_opt=$4
233− final_decode=$5
233+ final_encode=$5
234234 ffprobe_opts=$7
235235 additional_input=$8
236+ final_decode=$9
236237 test -z "$additional_input" || additional_input="$DEC_OPTS $additional_input"
237238 encfile="${outdir}/${test}.${enc_fmt}"
238239 test "$6" = -keep || cleanfiles="$cleanfiles $encfile"
@@ -242,7 +243,7 @@ transcode(){ · 3 unmodified lines
242243 $ENC_OPTS $enc_opt $FLAGS -f $enc_fmt -y $tencfile || return
243244 do_md5sum $encfile
244245 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 \
246247 -f framecrc - || return
247248 test -z $ffprobe_opts || \
248249 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