diff options
author | Marton Balint <cus@passwd.hu> | 2016-03-07 22:57:51 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2016-03-20 19:50:15 +0100 |
commit | 48a96383faa0393d66d4bf755808845b6318e06f (patch) | |
tree | 47e483ff32983067c2ca704f766c55be4943b8a4 /tests/fate-run.sh | |
parent | 8284a4ba11e2d8ca55e3222e5730bfa8d6cca940 (diff) | |
download | ffmpeg-48a96383faa0393d66d4bf755808845b6318e06f.tar.gz |
tests/gapless: add gapless aac tests
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-x | tests/fate-run.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 16087cb74e..5631267a1c 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -96,6 +96,21 @@ probeframes(){ run ffprobe${PROGSUF} -show_frames -v 0 "$@" } +probegaplessinfo(){ + filename="$1" + shift + run ffprobe${PROGSUF} -bitexact -select_streams a -show_entries format=start_time,duration:stream=index,start_pts,duration_ts -v 0 "$filename" "$@" + pktfile1="${outdir}/${test}.pkts" + framefile1="${outdir}/${test}.frames" + cleanfiles="$cleanfiles $pktfile1 $framefile1" + run ffprobe${PROGSUF} -bitexact -select_streams a -of compact -count_packets -show_entries packet=pts,dts,duration:stream=nb_read_packets -v 0 "$filename" "$@" > "$pktfile1" + head -n 8 "$pktfile1" + tail -n 9 "$pktfile1" + run ffprobe${PROGSUF} -bitexact -select_streams a -of compact -count_frames -show_entries frame=pkt_pts,pkt_dts,best_effort_timestamp,pkt_duration,nb_samples:stream=nb_read_frames -v 0 "$filename" "$@" > "$framefile1" + head -n 8 "$framefile1" + tail -n 9 "$framefile1" +} + ffmpeg(){ dec_opts="-hwaccel $hwaccel -threads $threads -thread_type $thread_type" ffmpeg_args="-nostdin -nostats -cpuflags $cpuflags" @@ -249,6 +264,19 @@ gapless(){ do_md5sum $decfile3 } +gaplessenc(){ + sample=$(target_path $1) + format=$2 + codec=$3 + + file1="${outdir}/${test}.out-1" + cleanfiles="$cleanfiles $file1" + + # test data after reencoding + ffmpeg -i "$sample" -flags +bitexact -fflags +bitexact -map 0:a -c:a $codec -f $format -y "$file1" + probegaplessinfo "$file1" +} + concat(){ template=$1 sample=$2 |