google-code-export / ffmpegthumbnailer

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

infinite loop with some movies #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

My system information:

 - Archlinux x86_64
 - ffmpegthumbnailer 1.5.4
 - ffmpeg 0.5

The issue:

I have some videos (~600M so it's hard to share...) which result in an
infinite loop when generating the thumbnail. I've looked at the code, and
it seems to be in the MovieDecoder::getVideoPacket() method, when calling
the av_read_frame() function.

By adding some debug, here is what I get:

m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0
m_pFormatContext=0x14b4b70 m_pPacket=0x14d8100 av_read_frame returns 0

(and then it hangs in the av_read_frame() function).

The video looks like this:
/tmp/in.avi: RIFF (little-endian) data, AVI, 576 x 240, 23.98 fps, video:
XviD, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)

Maybe I'm going to look for issue in the ffmpeg function, but I'm a little
bit afraid of doing this...

Original issue reported on code.google.com by ubi...@gmail.com on 3 Aug 2009 at 7:00

GoogleCodeExporter commented 9 years ago
Hey, I've found a little video that fails: 
http://yozora-irc.net/~ubitux/rearx.avi

So you may confirm the bug (still if the problem comes from av_read_frame() of 
ffmpeg).

Original comment by ubi...@gmail.com on 3 Aug 2009 at 7:54

GoogleCodeExporter commented 9 years ago
As I thought, I didn't understand anything in the code. But I've notice the 
issue
with 6 others videos. All that movies have a common point: by using ffmpeg -i on
these, I get this warning:

[NULL @ 0x1cc5de0]looks like this file was encoded with 
(divx4/(old)xvid/opendivx) ->
forcing low_delay flag

(with another address of course).

Maybe there is something to track this way...

Original comment by ubi...@gmail.com on 4 Aug 2009 at 12:04

GoogleCodeExporter commented 9 years ago
I have indeed been able to reproduce the problem, but haven't had time to 
further
investigate it. I will compare my implementation with the ffplay code to spot 
any
differences since ffplay plays the file correctly.

Original comment by dirk.vdb on 4 Aug 2009 at 12:12

GoogleCodeExporter commented 9 years ago
I think it's fixed in subversion, can you verify this?

Original comment by dirk.vdb on 11 Aug 2009 at 5:59

GoogleCodeExporter commented 9 years ago
Wonderful, works fine with every videos! Thanks a lot!

Original comment by ubi...@gmail.com on 11 Aug 2009 at 6:36

GoogleCodeExporter commented 9 years ago

Original comment by dirk.vdb on 12 Aug 2009 at 12:59