invalid / distorded frames on VP6F-encoded contents (FLV) (Bug #2815)
Description
Hi,
I'm running OpenCV 2.4.3 on an up-to-date Kubuntu 12.10 (64bits), and I've noticed a decoding while processing a valid FLV video file, that contains a VP6F video stream.
This video runs fine through VLC, mplayer, ffplay, but I can't obtain valid frames using OpenCV : all of them are being displayed distorted (cf. attached picture)
There are no issues on this topic reported so far (at least, I couldn't find them), so here it goes.
I'll also attach a link to download the sample FLV file shortly, since it's around 20Mb
Best regards,
Guillaume.
PS : the attached picture actually represents one of the first frames loaded with imread() and outputted with imwrite()
Associated revisions
fix for OpenCV issue #2815
- libavcodec issue
- some decoders alter AVCodecContext width/height values, in a wrong way
- eg. in issue 2815, vp6f decoder changes these values, resulting in distorted / invalid frames
- this patch forces default AVCodecContext values
Merge pull request #2815 from Aletheios:Bugfix#3705
History
Updated by Guillaume Ferry about 12 years ago
Here is a direct link for the FLV video:
https://www.dropbox.com/s/2iu30fh02yjsntj/50829739.flv
Updated by Anna Kogan about 12 years ago
Hello Guillaume,
Thank you for reporting the issue! If you could work on a fix and provide it as a pull request for the '2.4' branch, that would help a lot!
Updated by Guillaume Ferry about 12 years ago
Hi Anna,
I'll have a look on it, sure.
Regards,
Guillaume
Updated by Guillaume Ferry about 12 years ago
Okay Anna,
I've just submitted a tiny pull request that adresses this issue (ID #510)
I can now process all these special FLV files perfectly, and so far, no regressions can be observed with other video types
Regards,
Guillaume.
Updated by Guillaume Ferry about 12 years ago
By the way, here are some ffmpeg tickets that reference this issue:
https://ffmpeg.org/trac/ffmpeg/ticket/1386
https://ffmpeg.org/trac/ffmpeg/ticket/2268
Updated by Anna Kogan about 12 years ago
Wow, so soon! Thank you for the pull request=)
Updated by Andrey Kamaev about 12 years ago
Fix is pushed to 2.4
- Target version set to 2.4.4
- Status changed from Open to Done