On date Thursday 2009-01-08 17:08:26 -0200, R?mulo Fernandes encoded:
Hello,
I'm using libswscale to scale and convert pixel format from frames that I capture from the screen. In my windows build the frames that I capture are in DIB format. I'm using FFMPEG SVN rev 16437.
DIB format? Can you explain what is it?
Calling sws_scale normally I get the image correctly, except that it's vertically flipped.
If I change the srcSliceY from 0 to srcHeight and srcSliceH from srcHeight to 0, I get a grey image (with correct dimensions). If I keep the srcSliceY in 0 and change srcSliceH from srcHeight to -srcHeight, I also get that grey image.
Is there a way to make sws_scale flip the image for me ?
No, you need to use a filter for that. Check out the code of libavfilter in the SOC repo. Regards. -- ffmpeg-user random tip #3 Some few multimedia formats (mpeg-1, mpeg-2:PS, DV) support physical merge consistency, which means you can merge two files with cat. E.g.: cat input1.mpeg input2.mpeg > output.mpeg See: http://ffmpeg.mplayerhq.hu/faq.html#SEC25