Opened 4 years ago
Last modified 3 years ago
#8063 reopened defect
`-vsync cfr` tends to duplicate the wrong frames
Reported by: | gdgsdg123 | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | ffmpeg |
Version: | git-master | Keywords: | fps |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
With a VFR input, -vsync cfr
may alter the playback experience by duplicating the wrong frames. (appeared to be... exactly 1 frame later)
Simple illustration of the problem:
(each number represents a frame of unique content)
-vsync vfr
(expressed in CFR manner):
1 1 2 2 3
-vsync cfr
:
1 2 2 3 3
Note:
The above happened in MP4, MKV container, failed to reproduce (seemed working correctly) in AVI container. (tested x264, and appeared to be codec dependent... as with magicyuv it happens in AVI also, and more severe: broken frames (part of the duplicated frames have incorrect color))
Attachments (1)
Change History (11)
comment:1 by , 4 years ago
Resolution: | → needs_more_info |
---|---|
Status: | new → closed |
by , 3 years ago
comment:2 by , 3 years ago
follow-up: 4 comment:3 by , 3 years ago
vsync takes effect before encoding and muxing so choice of encoder and muxer is irrelevant - one caveat being that if vsync is not specified by the user ffmpeg will set it as per muxer flags.
comment:4 by , 3 years ago
Resolution: | needs_more_info |
---|---|
Status: | closed → reopened |
Replying to Gyan:
one caveat being that if vsync is not specified by the user ffmpeg will set it as per muxer flags.
In another word: always explicitly set the preferred vsync
method, unless you want FFmpeg to choose one randomly for you...
comment:5 by , 3 years ago
It's not random. It's chosen as per muxer flags which are fixed in code and rarely changed.
follow-up: 8 comment:7 by , 3 years ago
Component: | undetermined → ffmpeg |
---|---|
Keywords: | fps added |
While the description is highly misleading, I believe that a (minor) issue can be reproduced with the sample file.
follow-up: 9 comment:8 by , 3 years ago
follow-up: 10 comment:9 by , 3 years ago
comment:10 by , 3 years ago
Replying to cehoyos:
Feel free to provide such clips.
I have already... If you had the interest to download:
https://www.youtube.com/playlist?list=PLXvoB-d-4W1kKvr3CA20DrcU1HzTXibAX (check the descriptions)
Replying to gdgsdg123:
Managed to reproduce it in AVI container:
Frame information of 123.avi:
Expected frame information of cfr.avi: