bino-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bino-list] Frame Sequences


From: Martin Lambers
Subject: Re: [Bino-list] Frame Sequences
Date: Sat, 18 Feb 2012 17:32:46 +0100

On Sat, 18 Feb 2012 13:56:34 +0100, C. Meyer wrote:
> Am 18.02.2012 13:49, schrieb Martin Lambers:
> > Do you have a sample image available so that I can test?
> 
> http://dl.dropbox.com/u/1815482/flamme.zip
> 
> Thats 1 sec. starting with frame #200.

Thanks a lot! This one is weird, but should be fixed now :)

Explanation:

Libavcodec (from FFmpeg) flips JPEG images if they are produced by the
Intel JPEG lib. See ffmpeg-0.10/libavcodec/mjpegdec.c lines 1432-1434.

FFplay displays the images correctly nonetheless. This is because it
sets the CODEC_FLAG_EMU_EDGE flag in certain situations, in which case
mjpegdec does not flip the image even if it still thinks it has to. See
mjpegdec.c lines 958-962.

With this patch
<http://git.savannah.gnu.org/cgit/bino.git/commit/?id=3b6a676c017e5bc613f544c93c3deec880abbb64>,
Bino now does what ffplay does in the hope that it is the right thing.
For your images, this results in a warning message for each frame, but
at least the images are shown correctly.

The real fix may be to change mjpegdec.c so that it does not decide that
your images should be flipped in the first place, but I'm not sure about
that.

Martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]