mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
1270e12e49
Current code compares the desired recording time with InputStream.pts, which has a very unclear meaning. Change the code to use actual timestamps of the frames passed to the encoder. In several tests, one less frame is encoded, which is more correct. In the idroq test one more frame is encoded, which is again more correct. Behavior with stream copy should be unchanged.
54 lines
3.2 KiB
Plaintext
54 lines
3.2 KiB
Plaintext
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
|
|
ret: 0 st:-1 flags:0 ts:-1.000000
|
|
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
|
|
ret: 0 st:-1 flags:1 ts: 1.894167
|
|
ret: 0 st: 0 flags:0 dts: 1.880000 pts: 1.920000 pos: 327680 size: 12894
|
|
ret: 0 st: 0 flags:0 ts: 0.788333
|
|
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
|
|
ret: 0 st: 0 flags:1 ts:-0.317500
|
|
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
|
|
ret: 0 st: 1 flags:0 ts: 2.576667
|
|
ret: 0 st: 1 flags:1 dts: 2.018778 pts: 2.018778 pos: 370700 size: 235
|
|
ret: 0 st: 1 flags:1 ts: 1.470833
|
|
ret: 0 st: 1 flags:1 dts: 1.261222 pts: 1.261222 pos: 145408 size: 261
|
|
ret: 0 st:-1 flags:0 ts: 0.365002
|
|
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
|
|
ret: 0 st:-1 flags:1 ts:-0.740831
|
|
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
|
|
ret: 0 st: 0 flags:0 ts: 2.153333
|
|
ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.960000 pos: 339968 size: 681
|
|
ret: 0 st: 0 flags:1 ts: 1.047500
|
|
ret: 0 st: 0 flags:0 dts: 1.040000 pts: 1.080000 pos: 40960 size: 16073
|
|
ret: 0 st: 1 flags:0 ts:-0.058333
|
|
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
|
|
ret: 0 st: 1 flags:1 ts: 2.835833
|
|
ret: 0 st: 1 flags:1 dts: 2.018778 pts: 2.018778 pos: 370700 size: 235
|
|
ret: 0 st:-1 flags:0 ts: 1.730004
|
|
ret: 0 st: 0 flags:0 dts: 1.760000 pts: 1.800000 pos: 292864 size: 13170
|
|
ret: 0 st:-1 flags:1 ts: 0.624171
|
|
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
|
|
ret: 0 st: 0 flags:0 ts:-0.481667
|
|
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
|
|
ret: 0 st: 0 flags:1 ts: 2.412500
|
|
ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.960000 pos: 339968 size: 681
|
|
ret: 0 st: 1 flags:0 ts: 1.306667
|
|
ret: 0 st: 1 flags:1 dts: 1.522444 pts: 1.522444 pos: 342028 size: 314
|
|
ret: 0 st: 1 flags:1 ts: 0.200844
|
|
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
|
|
ret: 0 st:-1 flags:0 ts:-0.904994
|
|
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
|
|
ret: 0 st:-1 flags:1 ts: 1.989173
|
|
ret: 0 st: 0 flags:1 dts: 1.920000 pts: 1.960000 pos: 339968 size: 681
|
|
ret: 0 st: 0 flags:0 ts: 0.883344
|
|
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
|
|
ret: 0 st: 0 flags:1 ts:-0.222489
|
|
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
|
|
ret: 0 st: 1 flags:0 ts: 2.671678
|
|
ret: 0 st: 1 flags:1 dts: 2.018778 pts: 2.018778 pos: 370700 size: 235
|
|
ret: 0 st: 1 flags:1 ts: 1.565844
|
|
ret: 0 st: 1 flags:1 dts: 1.522444 pts: 1.522444 pos: 342028 size: 314
|
|
ret: 0 st:-1 flags:0 ts: 0.460008
|
|
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
|
|
ret: 0 st:-1 flags:1 ts:-0.645825
|
|
ret: 0 st: 1 flags:1 dts: 1.000000 pts: 1.000000 pos: 2048 size: 208
|