Hello
Can you include options for rotating or flipping h/v of the
picture, especially from video device? I have a Quickcam
camera mounted under the ceiling and since nor the
driver nor ffmpeg support rotation, it is hard to use the
camera - the image is upside-down (not mirrored, but
rotated 180 degrees).
Thanks.
Logged In: YES
user_id=209371
180 degree rotating/flipping can be very easily implemented in
ffmpeg. I did it in the do_video_out function by hacking the
pixel format conversion part of the code in it : I first convert
the picture to RGB format, flip/rotate it in memory (array ops)
and convert it back to the encoder pixel format.
90 degree seems to be problematic since you need to modify
the frame size info for the target stream. Since not all codec
(mpeg 2 profiles have fixed rsolutions ) it may impact on
codecs.
I am interested in the 90 degree conversion for embedded
device applications.