1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-12 19:18:44 +02:00
FFmpeg/tests/ref/fate/pcm_dvd-16-5.1-96000
Anton Khirnov d85c6aba0c fftools/ffmpeg: rework audio-decode timestamp handling
Stop using InputStream.dts for generating missing timestamps for decoded
frames, because it contains pre-decoding timestamps and there may be
arbitrary amount of delay between input packets and output frames (e.g.
dependent on the thread count when frame threading is used). It is also
in AV_TIME_BASE (i.e. microseconds), which may introduce unnecessary
rounding issues.

New code maintains a timebase that is the inverse of the LCM of all the
samplerates seen so far, and thus can accurately represent every audio
sample. This timebase is used to generate missing timestamps after
decoding.

Changes the result of the following FATE tests
* pcm_dvd-16-5.1-96000
* lavf-smjpeg
* adpcm-ima-smjpeg
In all of these the timestamps now better correspond to actual frame
durations.
2023-05-02 10:59:24 +02:00

52 lines
2.7 KiB
Plaintext

d8e182dfa46524c28d1f78a4cc1f2719 *tests/data/fate/pcm_dvd-16-5.1-96000.vob
90112 tests/data/fate/pcm_dvd-16-5.1-96000.vob
#tb 0: 1/96000
#media_type 0: audio
#codec_id 0: pcm_s16le
#sample_rate 0: 96000
#channel_layout_name 0: 5.1
0, 0, 0, 166, 1992, 0x00000000
0, 167, 167, 167, 2004, 0x00000000
0, 334, 334, 167, 2004, 0x00000000
0, 501, 501, 167, 2004, 0x00000000
0, 668, 668, 167, 2004, 0x00000000
0, 835, 835, 167, 2004, 0x00000000
0, 1002, 1002, 167, 2004, 0x00000000
0, 1169, 1169, 167, 2004, 0x00000000
0, 1336, 1336, 167, 2004, 0x00000000
0, 1503, 1503, 167, 2004, 0x00000000
0, 1670, 1670, 167, 2004, 0x00000000
0, 1837, 1837, 167, 2004, 0x00000000
0, 2004, 2004, 167, 2004, 0x00000000
0, 2171, 2171, 167, 2004, 0x00000000
0, 2338, 2338, 167, 2004, 0x00000000
0, 2505, 2505, 167, 2004, 0x00000000
0, 2672, 2672, 167, 2004, 0x00000000
0, 2839, 2839, 167, 2004, 0x00000000
0, 3006, 3006, 167, 2004, 0x00000000
0, 3173, 3173, 167, 2004, 0x00000000
0, 3340, 3340, 167, 2004, 0x00000000
0, 3507, 3507, 167, 2004, 0x00000000
0, 3674, 3674, 167, 2004, 0x00000000
0, 3841, 3841, 167, 2004, 0x00000000
0, 4008, 4008, 167, 2004, 0x00000000
0, 4175, 4175, 167, 2004, 0x00000000
0, 4342, 4342, 167, 2004, 0x00000000
0, 4509, 4509, 167, 2004, 0x00000000
0, 4676, 4676, 167, 2004, 0x00000000
0, 4843, 4843, 167, 2004, 0x00000000
0, 5010, 5010, 167, 2004, 0x00000000
0, 5177, 5177, 167, 2004, 0x00000000
0, 5344, 5344, 167, 2004, 0x00000000
0, 5511, 5511, 167, 2004, 0x00000000
0, 5678, 5678, 167, 2004, 0x00000000
0, 5845, 5845, 167, 2004, 0x00000000
0, 6012, 6012, 167, 2004, 0x00000000
0, 6179, 6179, 167, 2004, 0x00000000
0, 6346, 6346, 167, 2004, 0x00000000
0, 6513, 6513, 167, 2004, 0x00000000
0, 6680, 6680, 166, 1992, 0x00000000
0, 6846, 6846, 167, 2004, 0x00000000
0, 7014, 7014, 167, 2004, 0x00000000
0, 7181, 7181, 101, 1212, 0x00000000