mirror of https://git.ffmpeg.org/ffmpeg.git
tests/gapless: add gapless aac tests
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
8284a4ba11
commit
48a96383fa
|
@ -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
|
||||
|
|
|
@ -3,5 +3,31 @@ fate-gapless-mp3: CMD = gapless $(TARGET_SAMPLES)/gapless/gapless.mp3
|
|||
|
||||
FATE_GAPLESS = $(FATE_GAPLESS-yes)
|
||||
|
||||
FATE_GAPLESSINFO_PROBE-$(call DEMDEC, MOV, AAC) += fate-gaplessinfo-itunes1
|
||||
fate-gaplessinfo-itunes1: ffprobe$(PROGSSUF)$(EXESUF)
|
||||
fate-gaplessinfo-itunes1: CMD = probegaplessinfo $(TARGET_SAMPLES)/cover_art/Owner-iTunes_9.0.3.15.m4a
|
||||
|
||||
FATE_GAPLESSINFO_PROBE-$(call DEMDEC, MOV, AAC) += fate-gaplessinfo-itunes2
|
||||
fate-gaplessinfo-itunes2: ffprobe$(PROGSSUF)$(EXESUF)
|
||||
fate-gaplessinfo-itunes2: CMD = probegaplessinfo $(TARGET_SAMPLES)/gapless/102400samples_qt-lc-aac.m4a
|
||||
|
||||
FATE_GAPLESSENC_PROBE-$(call ENCDEC, AAC, MOV) += fate-gaplessenc-itunes-to-ipod-aac
|
||||
fate-gaplessenc-itunes-to-ipod-aac: ffprobe$(PROGSSUF)$(EXESUF)
|
||||
fate-gaplessenc-itunes-to-ipod-aac: CMD = gaplessenc $(TARGET_SAMPLES)/gapless/102400samples_qt-lc-aac.m4a ipod aac
|
||||
|
||||
FATE_GAPLESSENC_PROBE-$(call ENCDEC, AAC, MOV) += fate-gaplessenc-pcm-to-mov-aac
|
||||
fate-gaplessenc-pcm-to-mov-aac: $(AREF)
|
||||
fate-gaplessenc-pcm-to-mov-aac: ffprobe$(PROGSSUF)$(EXESUF)
|
||||
fate-gaplessenc-pcm-to-mov-aac: CMD = gaplessenc $(AREF) mov aac
|
||||
|
||||
FATE_GAPLESSINFO-$(CONFIG_FFPROBE) = $(FATE_GAPLESSINFO_PROBE-yes)
|
||||
FATE_GAPLESSINFO = $(FATE_GAPLESSINFO-yes)
|
||||
|
||||
FATE_GAPLESSENC-$(CONFIG_FFPROBE) = $(FATE_GAPLESSENC_PROBE-yes)
|
||||
FATE_GAPLESSENC = $(FATE_GAPLESSENC-yes)
|
||||
|
||||
FATE_SAMPLES_AVCONV += $(FATE_GAPLESS)
|
||||
fate-gapless: $(FATE_GAPLESS)
|
||||
FATE_SAMPLES_AVCONV += $(FATE_GAPLESSINFO)
|
||||
FATE_SAMPLES_AVCONV += $(FATE_GAPLESSENC)
|
||||
|
||||
fate-gapless: $(FATE_GAPLESS) $(FATE_GAPLESSINFO) $(FATE_GAPLESSENC)
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
[STREAM]
|
||||
index=0
|
||||
start_pts=1058
|
||||
duration_ts=104384
|
||||
[/STREAM]
|
||||
[FORMAT]
|
||||
start_time=0.023991
|
||||
duration=2.367000
|
||||
[/FORMAT]
|
||||
packet|pts=1058|dts=1058|duration=1024
|
||||
packet|pts=2082|dts=2082|duration=1024
|
||||
packet|pts=3106|dts=3106|duration=1024
|
||||
packet|pts=4130|dts=4130|duration=1024
|
||||
packet|pts=5154|dts=5154|duration=1024
|
||||
packet|pts=6178|dts=6178|duration=1024
|
||||
packet|pts=7202|dts=7202|duration=1024
|
||||
packet|pts=8226|dts=8226|duration=1024
|
||||
packet|pts=97314|dts=97314|duration=1024
|
||||
packet|pts=98338|dts=98338|duration=1024
|
||||
packet|pts=99362|dts=99362|duration=1024
|
||||
packet|pts=100386|dts=100386|duration=1024
|
||||
packet|pts=101410|dts=101410|duration=1024
|
||||
packet|pts=102434|dts=102434|duration=1024
|
||||
packet|pts=103458|dts=103458|duration=1024
|
||||
packet|pts=104482|dts=104482|duration=-98
|
||||
stream|nb_read_packets=102
|
||||
frame|pkt_pts=1058|pkt_dts=1058|best_effort_timestamp=1058|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=2082|pkt_dts=2082|best_effort_timestamp=2082|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=3106|pkt_dts=3106|best_effort_timestamp=3106|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=4130|pkt_dts=4130|best_effort_timestamp=4130|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=5154|pkt_dts=5154|best_effort_timestamp=5154|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=6178|pkt_dts=6178|best_effort_timestamp=6178|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=7202|pkt_dts=7202|best_effort_timestamp=7202|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=8226|pkt_dts=8226|best_effort_timestamp=8226|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=97314|pkt_dts=97314|best_effort_timestamp=97314|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=98338|pkt_dts=98338|best_effort_timestamp=98338|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=99362|pkt_dts=99362|best_effort_timestamp=99362|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=100386|pkt_dts=100386|best_effort_timestamp=100386|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=101410|pkt_dts=101410|best_effort_timestamp=101410|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=102434|pkt_dts=102434|best_effort_timestamp=102434|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=103458|pkt_dts=103458|best_effort_timestamp=103458|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=104482|pkt_dts=104482|best_effort_timestamp=104482|pkt_duration=-98|nb_samples=1024
|
||||
stream|nb_read_frames=102
|
|
@ -0,0 +1,43 @@
|
|||
[STREAM]
|
||||
index=0
|
||||
start_pts=-1024
|
||||
duration_ts=530224
|
||||
[/STREAM]
|
||||
[FORMAT]
|
||||
start_time=-0.023220
|
||||
duration=12.024000
|
||||
[/FORMAT]
|
||||
packet|pts=-1024|dts=-1024|duration=1024
|
||||
packet|pts=0|dts=0|duration=1024
|
||||
packet|pts=1024|dts=1024|duration=1024
|
||||
packet|pts=2048|dts=2048|duration=1024
|
||||
packet|pts=3072|dts=3072|duration=1024
|
||||
packet|pts=4096|dts=4096|duration=1024
|
||||
packet|pts=5120|dts=5120|duration=1024
|
||||
packet|pts=6144|dts=6144|duration=1024
|
||||
packet|pts=521216|dts=521216|duration=1024
|
||||
packet|pts=522240|dts=522240|duration=1024
|
||||
packet|pts=523264|dts=523264|duration=1024
|
||||
packet|pts=524288|dts=524288|duration=1024
|
||||
packet|pts=525312|dts=525312|duration=1024
|
||||
packet|pts=526336|dts=526336|duration=1024
|
||||
packet|pts=527360|dts=527360|duration=1024
|
||||
packet|pts=528384|dts=528384|duration=1840
|
||||
stream|nb_read_packets=518
|
||||
frame|pkt_pts=-1024|pkt_dts=-1024|best_effort_timestamp=-1024|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=0|pkt_dts=0|best_effort_timestamp=0|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=1024|pkt_dts=1024|best_effort_timestamp=1024|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=2048|pkt_dts=2048|best_effort_timestamp=2048|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=3072|pkt_dts=3072|best_effort_timestamp=3072|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=4096|pkt_dts=4096|best_effort_timestamp=4096|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=5120|pkt_dts=5120|best_effort_timestamp=5120|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=6144|pkt_dts=6144|best_effort_timestamp=6144|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=521216|pkt_dts=521216|best_effort_timestamp=521216|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=522240|pkt_dts=522240|best_effort_timestamp=522240|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=523264|pkt_dts=523264|best_effort_timestamp=523264|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=524288|pkt_dts=524288|best_effort_timestamp=524288|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=525312|pkt_dts=525312|best_effort_timestamp=525312|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=526336|pkt_dts=526336|best_effort_timestamp=526336|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=527360|pkt_dts=527360|best_effort_timestamp=527360|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=528384|pkt_dts=528384|best_effort_timestamp=528384|pkt_duration=1840|nb_samples=1024
|
||||
stream|nb_read_frames=518
|
|
@ -0,0 +1,43 @@
|
|||
[STREAM]
|
||||
index=0
|
||||
start_pts=0
|
||||
duration_ts=1294336
|
||||
[/STREAM]
|
||||
[FORMAT]
|
||||
start_time=0.000000
|
||||
duration=29.350023
|
||||
[/FORMAT]
|
||||
packet|pts=0|dts=0|duration=1024
|
||||
packet|pts=1024|dts=1024|duration=1024
|
||||
packet|pts=2048|dts=2048|duration=1024
|
||||
packet|pts=3072|dts=3072|duration=1024
|
||||
packet|pts=4096|dts=4096|duration=1024
|
||||
packet|pts=5120|dts=5120|duration=1024
|
||||
packet|pts=6144|dts=6144|duration=1024
|
||||
packet|pts=7168|dts=7168|duration=1024
|
||||
packet|pts=1286144|dts=1286144|duration=1024
|
||||
packet|pts=1287168|dts=1287168|duration=1024
|
||||
packet|pts=1288192|dts=1288192|duration=1024
|
||||
packet|pts=1289216|dts=1289216|duration=1024
|
||||
packet|pts=1290240|dts=1290240|duration=1024
|
||||
packet|pts=1291264|dts=1291264|duration=1024
|
||||
packet|pts=1292288|dts=1292288|duration=1024
|
||||
packet|pts=1293312|dts=1293312|duration=1024
|
||||
stream|nb_read_packets=1264
|
||||
frame|pkt_pts=2112|pkt_dts=2112|best_effort_timestamp=2048|pkt_duration=960|nb_samples=960
|
||||
frame|pkt_pts=3072|pkt_dts=3072|best_effort_timestamp=3072|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=4096|pkt_dts=4096|best_effort_timestamp=4096|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=5120|pkt_dts=5120|best_effort_timestamp=5120|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=6144|pkt_dts=6144|best_effort_timestamp=6144|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=7168|pkt_dts=7168|best_effort_timestamp=7168|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=8192|pkt_dts=8192|best_effort_timestamp=8192|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=9216|pkt_dts=9216|best_effort_timestamp=9216|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=1286144|pkt_dts=1286144|best_effort_timestamp=1286144|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=1287168|pkt_dts=1287168|best_effort_timestamp=1287168|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=1288192|pkt_dts=1288192|best_effort_timestamp=1288192|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=1289216|pkt_dts=1289216|best_effort_timestamp=1289216|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=1290240|pkt_dts=1290240|best_effort_timestamp=1290240|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=1291264|pkt_dts=1291264|best_effort_timestamp=1291264|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=1292288|pkt_dts=1292288|best_effort_timestamp=1292288|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=1293312|pkt_dts=1293312|best_effort_timestamp=1293312|pkt_duration=1024|nb_samples=1024
|
||||
stream|nb_read_frames=1262
|
|
@ -0,0 +1,43 @@
|
|||
[STREAM]
|
||||
index=0
|
||||
start_pts=0
|
||||
duration_ts=105472
|
||||
[/STREAM]
|
||||
[FORMAT]
|
||||
start_time=0.000000
|
||||
duration=2.391655
|
||||
[/FORMAT]
|
||||
packet|pts=0|dts=0|duration=1024
|
||||
packet|pts=1024|dts=1024|duration=1024
|
||||
packet|pts=2048|dts=2048|duration=1024
|
||||
packet|pts=3072|dts=3072|duration=1024
|
||||
packet|pts=4096|dts=4096|duration=1024
|
||||
packet|pts=5120|dts=5120|duration=1024
|
||||
packet|pts=6144|dts=6144|duration=1024
|
||||
packet|pts=7168|dts=7168|duration=1024
|
||||
packet|pts=97280|dts=97280|duration=1024
|
||||
packet|pts=98304|dts=98304|duration=1024
|
||||
packet|pts=99328|dts=99328|duration=1024
|
||||
packet|pts=100352|dts=100352|duration=1024
|
||||
packet|pts=101376|dts=101376|duration=1024
|
||||
packet|pts=102400|dts=102400|duration=1024
|
||||
packet|pts=103424|dts=103424|duration=1024
|
||||
packet|pts=104448|dts=104448|duration=1024
|
||||
stream|nb_read_packets=103
|
||||
frame|pkt_pts=2112|pkt_dts=2112|best_effort_timestamp=2048|pkt_duration=960|nb_samples=960
|
||||
frame|pkt_pts=3072|pkt_dts=3072|best_effort_timestamp=3072|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=4096|pkt_dts=4096|best_effort_timestamp=4096|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=5120|pkt_dts=5120|best_effort_timestamp=5120|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=6144|pkt_dts=6144|best_effort_timestamp=6144|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=7168|pkt_dts=7168|best_effort_timestamp=7168|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=8192|pkt_dts=8192|best_effort_timestamp=8192|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=9216|pkt_dts=9216|best_effort_timestamp=9216|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=97280|pkt_dts=97280|best_effort_timestamp=97280|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=98304|pkt_dts=98304|best_effort_timestamp=98304|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=99328|pkt_dts=99328|best_effort_timestamp=99328|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=100352|pkt_dts=100352|best_effort_timestamp=100352|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=101376|pkt_dts=101376|best_effort_timestamp=101376|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=102400|pkt_dts=102400|best_effort_timestamp=102400|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=103424|pkt_dts=103424|best_effort_timestamp=103424|pkt_duration=1024|nb_samples=1024
|
||||
frame|pkt_pts=104448|pkt_dts=104448|best_effort_timestamp=104448|pkt_duration=1024|nb_samples=1024
|
||||
stream|nb_read_frames=101
|
Loading…
Reference in New Issue