mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
5d407cb2d7
When no timestamps are available from the container, the video decoding code will currently use fake dts values - generated in process_input_packet() based on a combination of information from the decoder and the parser (obtained via the demuxer) - to generate timestamps during decoder flushing. This is fragile, hard to follow, and unnecessarily convoluted, since more reliable information can be obtained directly from post-decoding values. The new code keeps track of the last decoded frame pts and estimates its duration based on a number of heuristics. Timestamps generated when both pts and pkt_dts are missing are then simple pts+duration of the last frame. The heuristics are somewhat complicated by the fact that lavf insists on making up packet timestamps based on its highly incomplete information. That should be removed in the future, allowing to further simplify this code. The results of the following tests change: * h264-3386 now requires -fps_mode passthrough to avoid dropping frames at the end; this is a pathology of the interaction of the new and old code, and the fact that the sample switches from field to frame coding in the last packet, and will be fixed in following commits * hevc-conformance-DELTAQP_A_BRCM_4 stops inventing an arbitrary timestamp gap at the end * hevc-small422chroma - the single frame output by this test now has a timestamp of 0, rather than an arbitrary 7
102 lines
5.5 KiB
Plaintext
102 lines
5.5 KiB
Plaintext
#tb 0: 1/25
|
|
#media_type 0: video
|
|
#codec_id 0: rawvideo
|
|
#dimensions 0: 1920x1088
|
|
#sar 0: 0/1
|
|
0, 0, 0, 1, 3133440, 0xfbd10331
|
|
0, 1, 1, 1, 3133440, 0x7764ad70
|
|
0, 2, 2, 1, 3133440, 0xaeaf44c1
|
|
0, 3, 3, 1, 3133440, 0x0590073b
|
|
0, 4, 4, 1, 3133440, 0xc4173137
|
|
0, 5, 5, 1, 3133440, 0xd173b667
|
|
0, 6, 6, 1, 3133440, 0xb70253db
|
|
0, 7, 7, 1, 3133440, 0x506ada41
|
|
0, 8, 8, 1, 3133440, 0x7748178b
|
|
0, 9, 9, 1, 3133440, 0xd5450415
|
|
0, 10, 10, 1, 3133440, 0x2d1cf084
|
|
0, 11, 11, 1, 3133440, 0xc89fb208
|
|
0, 12, 12, 1, 3133440, 0x3d065c44
|
|
0, 13, 13, 1, 3133440, 0x15a67a95
|
|
0, 14, 14, 1, 3133440, 0xde1684ca
|
|
0, 15, 15, 1, 3133440, 0xc3e64367
|
|
0, 16, 16, 1, 3133440, 0x5bf1bd00
|
|
0, 17, 17, 1, 3133440, 0x253703c8
|
|
0, 18, 18, 1, 3133440, 0x5c5fb22b
|
|
0, 19, 19, 1, 3133440, 0x5fcd0915
|
|
0, 20, 20, 1, 3133440, 0xb6fe6c0d
|
|
0, 21, 21, 1, 3133440, 0x3673f749
|
|
0, 22, 22, 1, 3133440, 0x42535c71
|
|
0, 23, 23, 1, 3133440, 0x889fd32d
|
|
0, 24, 24, 1, 3133440, 0x259c6c22
|
|
0, 25, 25, 1, 3133440, 0x128844a2
|
|
0, 26, 26, 1, 3133440, 0x34d9ead6
|
|
0, 27, 27, 1, 3133440, 0x0a68658a
|
|
0, 28, 28, 1, 3133440, 0x3aa96f3e
|
|
0, 29, 29, 1, 3133440, 0x20249702
|
|
0, 30, 30, 1, 3133440, 0x6d14a401
|
|
0, 31, 31, 1, 3133440, 0xf6acf9ae
|
|
0, 32, 32, 1, 3133440, 0x0894adfb
|
|
0, 33, 33, 1, 3133440, 0x664178bb
|
|
0, 34, 34, 1, 3133440, 0x6b9305df
|
|
0, 35, 35, 1, 3133440, 0x8afd4ab4
|
|
0, 36, 36, 1, 3133440, 0x1869c2aa
|
|
0, 37, 37, 1, 3133440, 0x004f3a7d
|
|
0, 38, 38, 1, 3133440, 0xadeb9a81
|
|
0, 39, 39, 1, 3133440, 0xbeffc378
|
|
0, 40, 40, 1, 3133440, 0x58c34e3c
|
|
0, 41, 41, 1, 3133440, 0x5b07ad91
|
|
0, 42, 42, 1, 3133440, 0x41bf5cb6
|
|
0, 43, 43, 1, 3133440, 0x65ebea43
|
|
0, 44, 44, 1, 3133440, 0x9c2462ae
|
|
0, 45, 45, 1, 3133440, 0x3cbc1a04
|
|
0, 46, 46, 1, 3133440, 0x0debbeeb
|
|
0, 47, 47, 1, 3133440, 0x954399f6
|
|
0, 48, 48, 1, 3133440, 0x3ba1b057
|
|
0, 49, 49, 1, 3133440, 0x3b5a0cae
|
|
0, 50, 50, 1, 3133440, 0xfdf6c423
|
|
0, 51, 51, 1, 3133440, 0x08097c97
|
|
0, 52, 52, 1, 3133440, 0x13f06984
|
|
0, 53, 53, 1, 3133440, 0x52a3baec
|
|
0, 54, 54, 1, 3133440, 0x7961fb92
|
|
0, 55, 55, 1, 3133440, 0xb6805a96
|
|
0, 56, 56, 1, 3133440, 0xde1c16e9
|
|
0, 57, 57, 1, 3133440, 0x07cb1ffc
|
|
0, 58, 58, 1, 3133440, 0xad1a1f91
|
|
0, 59, 59, 1, 3133440, 0x77bb5968
|
|
0, 60, 60, 1, 3133440, 0x85e8074c
|
|
0, 61, 61, 1, 3133440, 0x1a2919ef
|
|
0, 62, 62, 1, 3133440, 0x81540640
|
|
0, 63, 63, 1, 3133440, 0xd61a3574
|
|
0, 64, 64, 1, 3133440, 0xf875c32c
|
|
0, 65, 65, 1, 3133440, 0x50548308
|
|
0, 66, 66, 1, 3133440, 0xf98ee7e9
|
|
0, 67, 67, 1, 3133440, 0xb7b4cb8e
|
|
0, 68, 68, 1, 3133440, 0x1c22b2b7
|
|
0, 69, 69, 1, 3133440, 0x2ea55366
|
|
0, 70, 70, 1, 3133440, 0x82e76ac5
|
|
0, 71, 71, 1, 3133440, 0x292af798
|
|
0, 72, 72, 1, 3133440, 0x29508415
|
|
0, 73, 73, 1, 3133440, 0x4ef87b17
|
|
0, 74, 74, 1, 3133440, 0xa6eeb679
|
|
0, 75, 75, 1, 3133440, 0xfe69f819
|
|
0, 76, 76, 1, 3133440, 0x95bb6b49
|
|
0, 77, 77, 1, 3133440, 0x5bf3f8ad
|
|
0, 78, 78, 1, 3133440, 0x58113e3a
|
|
0, 79, 79, 1, 3133440, 0xd87b6888
|
|
0, 80, 80, 1, 3133440, 0xb3e7a295
|
|
0, 81, 81, 1, 3133440, 0x3c2c7f97
|
|
0, 82, 82, 1, 3133440, 0xe5f5cc48
|
|
0, 83, 83, 1, 3133440, 0xa222f3e6
|
|
0, 84, 84, 1, 3133440, 0x6ae80e0b
|
|
0, 85, 85, 1, 3133440, 0x2bc02816
|
|
0, 86, 86, 1, 3133440, 0x2a5043cb
|
|
0, 87, 87, 1, 3133440, 0x857089b9
|
|
0, 88, 88, 1, 3133440, 0xf3443ad1
|
|
0, 89, 89, 1, 3133440, 0x7cb10b4c
|
|
0, 90, 90, 1, 3133440, 0x75bb32b9
|
|
0, 91, 91, 1, 3133440, 0x6b720e0f
|
|
0, 92, 92, 1, 3133440, 0x761571be
|
|
0, 93, 93, 1, 3133440, 0x34dc14a1
|
|
0, 94, 94, 1, 3133440, 0xbb94c2d4
|
|
0, 95, 95, 1, 3133440, 0x5300e459
|