mirror of https://github.com/FFmpeg/FFmpeg.git
To define accurately the delay between two frames, it is necessary to have both available. Before this commit, the first frame had a delay of 0; while in practice the problem is not visible in most situation, it is problematic with low frame rate and large scene change. This commit notably fixes output generated with commands such as: ffmpeg -i big_buck_bunny_1080p_h264.mov -vf "select='gt(scene,0.4)',scale=320:-1,setpts=N/TB" -frames:v 5 -y out.gif Also, to avoid odd loop delays, the N-1 delay is duplicated for the last frame.pull/15/head
parent
b63f7b3ac7
commit
a7c5b7a676
2 changed files with 35 additions and 7 deletions
@ -1,3 +1,3 @@ |
||||
c886d22859c033b2b0fe2d63ffcf8aef *./tests/data/lavf/lavf.gif |
||||
e35f5ea283bbcb249818e0078ec72664 *./tests/data/lavf/lavf.gif |
||||
2011766 ./tests/data/lavf/lavf.gif |
||||
./tests/data/lavf/lavf.gif CRC=0xdca4429c |
||||
./tests/data/lavf/lavf.gif CRC=0x0dc5477c |
||||
|
Loading…
Reference in new issue