Initial gray frames when first frame is no keyframe
|Reported by:||DonMoir||Owned by:|
|Blocking:||Reproduced by developer:||yes|
|Analyzed by developer:||no|
I think maybe this has been discussed before, but if there is no initial keyframe then gray frames are produced. This happens often enough that it needs a solution. What I currently do in my application is I don't display anything until I get one initial keyframe and this seems to fix it well and easy.
A couple possible solutions for ffmpeg might be:
o - Assume the first keyframe is all black if there is no initial keyframe
o - In avcodec_decode_video2 maybe got_picture_ptr should not be set until a first keyframe is received.
I believe a related discussion is here:
This file is pretty bad and probably a worst case. I have a few others where is its much cleaner but still initially gray.
Change History (10)
Changed 5 years ago by cehoyos
comment:4 Changed 5 years ago by cehoyos
- Reproduced by developer set
- Status changed from new to open
- Version changed from unspecified to git-master