FS#13920 - [ffmpegthumbnailer] over CPU usage

Attached to Project: Community Packages
Opened by ugaciaka (ugaciaka) - Sunday, 22 March 2009, 17:42 GMT
Last edited by Dan Griffiths (Ghost1227) - Friday, 14 August 2009, 02:55 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Aaron Griffin (phrakture)
Ronald van Haren (pressh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
when I mount a usb flash memory with video inside ffmpegthunmbail use about 100% cpu

I use xfce with thunar file manager.

Steps to reproduce:
I mount a usb flash memory with video inside ffmpegthunmbail use about 100% cpu (with thunar)
This task depends upon

Closed by  Dan Griffiths (Ghost1227)
Friday, 14 August 2009, 02:55 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in most recent version.
Comment by orbisvicis (orbisvicis) - Tuesday, 14 April 2009, 16:52 GMT
Same when mounting a cd with video content (avi)

Not only does it use an entire core, but it leaks memory (slowly, seen via top)

Test run:
ffmpegthumbnailer -iMYFILE.AVI
[NULL @ 0x88fe980]looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
^C
And the output file ~/TESTING is zero bytes

file MYFILE.AVI
MYFILE.avi i: RIFF (little-endian) data, AVI, 640 x 352, 25.00 fps, video: XviD, audio: Dolby AC3 (stereo, 48000 Hz)

ffmpeg -i MYFILE.AVI -vcodec copy -acodec copy ~/TESTING.AVI
FFmpeg version UNKNOWN, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libtheora --enable-postproc --enable-shared --enable-pthreads --enable-x11grab --enable-swscale
libavutil 49.14. 0 / 49.14. 0
libavcodec 52.15. 0 / 52.15. 0
libavformat 52.29. 0 / 52.29. 0
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 7. 0 / 0. 7. 0
libpostproc 51. 2. 0 / 51. 2. 0
built on Feb 22 2009 06:59:19, gcc: 4.3.3
[NULL @ 0x9aa5e20]looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag

Seems stream 0 codec frame rate differs from container frame rate: 2.00 (2/1) -> 25.00 (25/1)
Input #0, avi, from 'MYFILE.AVI':
Duration: 00:40:58.24, start: 0.000000, bitrate: 1176 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 640x352 [PAR 1:1 DAR 20:11], 25.00 tb(r)
Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
File '/home/orbisvicis/TESTING.AVI' already exists. Overwrite ? [y/N] y
Output #0, avi, to '/home/orbisvicis/TESTING.AVI':
Stream #0.0: Video: mpeg4, yuv420p, 640x352 [PAR 1:1 DAR 20:11], q=2-31, 25.00 tb(c)
Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=39485 fps=891 q=-1.0 Lsize= 217053kB time=1579.40 bitrate=1125.8kbits/s
video:177913kB audio:37028kB global headers:0kB muxing overhead 0.982480%
...

As far as I can see, there is no problem with the ffmpeg program or the video encoding
Comment by Ronald van Haren (pressh) - Monday, 13 July 2009, 20:07 GMT
is this still an issue with ffmpegthumbnailer 1.5.4?
Comment by orbisvicis (orbisvicis) - Thursday, 23 July 2009, 19:58 GMT
cursory test with 1.5.4-2

Seems to be no problem.

Loading...