google-code-export / ffmpegthumbnailer

Automatically exported from code.google.com/p/ffmpegthumbnailer
GNU General Public License v2.0
1 stars 1 forks source link

Number of attempts in MovieDecoder::getVideoPacket() is sometimes too low #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run 'ffmpegthumbnailer -i movie.avi -o thumb.jpg' on an AVI video
created by my Canon camera.

What is the expected output? What do you see instead?
I expect to get a thumbnail. Instead I get this error message:
Error: decodeVideoFrame() failed: frame not finished

What version of the product are you using? On what operating system?
ffmpegthumbnailer-2.0.0 (from SVN)
ffmpeg-0.5_p21602
Gentoo Linux for x86_64

Please provide any additional information below.
After some debugging, I found that my video files consistently have 690
frames of audio before the first video frame. decodeVideoFrame() stops
after 250 attempts.

I am attaching a patch for your consideration that would allow the number
of attempts to be set on the command line.

Thank you!

Original issue reported on code.google.com by skovran...@gmail.com on 21 Feb 2010 at 4:03

Attachments:

GoogleCodeExporter commented 9 years ago
I will simply increase the number of attempts without making it configurable, 
it would 
be an option no one would understand.

Thanks for the info

Original comment by dirk.vdb on 9 Mar 2010 at 3:30

GoogleCodeExporter commented 9 years ago

Original comment by dirk.vdb on 12 Mar 2010 at 9:33