mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
tests/fate/ac3: Make ac3-fixed-encode-2 bitexact across arches
Don't use a 7.1 EAC3 input file for which our decoder is not
bitexact; instead just use the asynth-44100-8.wav file
which (as a 7.1 file) exhibits the same issue fixed by
1b3f4842c1.
(Either the encoder or the resampler are still not completely
bitexact, so we limit the number of frames output.)
Also switch to a framecrc test so that the output channel layout
is directly contained in the ref file.
Reviewed-by: James Almer <jamrial@gmail.com>
Reviewed-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
+6
-4
@@ -91,10 +91,12 @@ fate-ac3-fixed-encode: CMD = md5 -i $(SRC) -c ac3_fixed -ab 128k -f ac3 -flags +
|
||||
fate-ac3-fixed-encode: CMP = oneline
|
||||
fate-ac3-fixed-encode: REF = e9d78bca187b4bbafc4512bcea8efd3e
|
||||
|
||||
FATE_AC3-$(call ALLYES, EAC3_DEMUXER AC3_FIXED_ENCODER AC3_MUXER ARESAMPLE_FILTER) += fate-ac3-fixed-encode-2
|
||||
fate-ac3-fixed-encode-2: CMD = md5pipe -i $(TARGET_SAMPLES)/eac3/the_great_wall_7.1.eac3 -c:a ac3_fixed -ab 256k -f ac3 -flags +bitexact -af aresample
|
||||
fate-ac3-fixed-encode-2: CMP = oneline
|
||||
fate-ac3-fixed-encode-2: REF = 1b92b037b23b231c9523f334ccfb11da
|
||||
# This tests that the LFE does not get lost when converting the input 7.1
|
||||
# to a channel layout supported by the encoder.
|
||||
FATE_AC3-$(call FRAMECRC, WAV, PCM_S16LE, ARESAMPLE_FILTER AC3_FIXED_ENCODER) += fate-ac3-fixed-encode-2
|
||||
fate-ac3-fixed-encode-2: tests/data/asynth-44100-8.wav
|
||||
fate-ac3-fixed-encode-2: SRC = $(TARGET_PATH)/tests/data/asynth-44100-8.wav
|
||||
fate-ac3-fixed-encode-2: CMD = framecrc -i $(SRC) -c:a ac3_fixed -ab 256k -frames:a 6 -af aresample
|
||||
|
||||
FATE_EAC3-$(call ALLYES, EAC3_DEMUXER EAC3_MUXER EAC3_CORE_BSF) += fate-eac3-core-bsf
|
||||
fate-eac3-core-bsf: CMD = md5pipe -i $(TARGET_SAMPLES)/eac3/the_great_wall_7.1.eac3 -c:a copy -bsf:a eac3_core -fflags +bitexact -f eac3
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
#tb 0: 1/44100
|
||||
#media_type 0: audio
|
||||
#codec_id 0: ac3
|
||||
#sample_rate 0: 44100
|
||||
#channel_layout_name 0: 5.1(side)
|
||||
0, -256, -256, 1536, 1114, 0x32fd276c
|
||||
0, 1280, 1280, 1536, 1116, 0x1ac63ba7
|
||||
0, 2816, 2816, 1536, 1114, 0xdde82dbc
|
||||
0, 4352, 4352, 1536, 1114, 0x39313179
|
||||
0, 5888, 5888, 1536, 1116, 0x166214e2
|
||||
0, 7424, 7424, 1536, 1114, 0xfbcc27ad
|
||||
0, 8960, 8960, 1536, 1114, 0xe7ed3321
|
||||
0, 10496, 10496, 1536, 1114, 0xa1823473
|
||||
Reference in New Issue
Block a user