Bug 334678

Summary: Thumbnails fail to generate for certain AVI files - infinite loop
Product: [Applications] digikam Reporter: Steve <stephen_bainbridge>
Component: Thumbs-VideoAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 6.0.0
Sentry Crash Report:

Description Steve 2014-05-12 21:12:45 UTC
Certain AVI files fail to get thumbnails generated, whenever Digikam tries to extract the thumbnail for these files it will loop indefinately, consuming 100% CPU.

Dolphin shows the thumbnails correctly.

If I check the AVI with ffmpeg, for example:

  ffmpeg -v error -i bike.AVI -f null -

it kicks back an error:

  [mjpeg @ 0x1e3c660] overread 8

So there does seem to be an issue with the AVI (even though it plays fine), but I would expect Digikam to at least display a default thumbnail and not continually loop.




Reproducible: Always

Steps to Reproduce:
1. Copy suspect AVI into photo folder
Actual Results:  
No thumbnail will be generated and one core on the CPU will stick at 100% CPU busy for the digikam process/thread.

Expected Results:  
Should generate a thumbnail or a default one and not continually loop.
Comment 1 caulier.gilles 2014-05-12 21:26:00 UTC
Video thumbnails creation is delegate to KDE video thumbnailer. Probably it miss a component in KDE to support this feature.

Here under Mageia, it's this package :

ffmpegthumbs - Video thumbnail generator for KDE4 file managers​                                                                                                                         
FFmpegThumbs is a video thumbnails implementation for KDE4 based on FFmpegThumbnailer.
This thumbnailer uses FFmpeg to decode frames from the video files, so supported video formats depend on the configuration flags of ffmpeg.
This thumbnailer was designed to be as fast and lightweight as possible.

Gilles Caulier
Comment 2 Steve 2014-05-13 07:32:15 UTC
Hi,

I don't believe it's a missing dependancy as some AVI files correctly have their thumbnails generated. I'm using Manjaro (an Arch derivative) and have the kdemultimedia-ffmpegthumbs package installed.

The problem seems to be when it tries to generate a thumbnail and fails. Rather than just fail gracefully it will continually loop and consume all the CPU.
Comment 3 caulier.gilles 2014-05-13 07:48:42 UTC
Well the problem is located in video thumbnail generator, not digiKam...

Gilles Caulier
Comment 4 Andrew Crouthamel 2018-11-11 04:29:44 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 5 caulier.gilles 2018-11-11 04:44:24 UTC
Video Thumbnailer will be fixed in digiKam with 6.0.0 implementation...

Gilles Caulier