[Ffmpeg-devel] [PATCH] MJPEG wronglydisplayedwithverticalYUV422

Luca Abeni lucabe72
Thu Nov 2 11:46:07 CET 2006


Hi Michael,

On Wed, 2006-11-01 at 22:22 +0100, Michael Niedermayer wrote:
[...]
> > > btw, see bgr16ToUV() bgr16ToY() you just need to implement some rgb
> > > counterparts
> > Thanks for the hint. I wrote the attached patch, which seems to work,
> 
> patch ok, commit it (dont delay it because of the flip thing)
Ok, I just committed it

> > but... The resulting image is upside-down :(
> > 
> > I tried some quick tests, and it seems that conversions from bgr555 and
> > bgr565 also vertically flip the image.
> 
> how do you know its upside down? did you view it in gdb, a hexeditor
> mplayer, ffplay?
I just tried to use ffplay to play the MTV samples provided by Diego.
And if I configure with --enable-swscaler, all the MTV videos look
upside-down.

> and how does imgresample/convert behave?
If I configure without --enable-swscaler, all the MTV files look ok. So,
I guess either swscale or img_convert is vertically flipping the image.

I also tried mplayer, and I see that the samples are not played
upside-down (colors are wrong, but this is another issue), and the
detected codec is "rawbgr15flip". So, this "flip" seems to confirm that
mplayer and ffmpeg have different opinions about the vertical
orientation of the video :)

I'll look at this later.


			Thanks,
				Luca
-- 
_____________________________________________________________________________
Copy this in your signature, if you think it is important:
                               N O    W A R ! ! !





More information about the ffmpeg-devel mailing list