[FFmpeg-devel] [PATCH] ffmpeg_filter: don't try to autorotate frames with hwaccel pixel formats

Soft Works softworkz at hotmail.com
Tue Sep 21 22:27:17 EEST 2021



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of James Almer
> Sent: Tuesday, 21 September 2021 14:33
> To: ffmpeg-devel at ffmpeg.org
> Subject: [FFmpeg-devel] [PATCH] ffmpeg_filter: don't try to autorotate frames
> with hwaccel pixel formats
> 
> The transpose, rotate, hflip, and vflip filters don't support them.
> Fixes ticket #9432.
> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
> I'm surprised nobody tried to decode an mp4 video like those coming from a
> cellphone camera using a hwaccel decoder. This would have been noticed much
> earlier.

I'm aware of this issue, but I think it would be better to auto-insert the
corresponding hw rotation filters, as a user should be able to expect the
same result, no matter whether using sw or hw filtering.

It is already possible to specify 

-autorotate 0

to prevent autorotation, which applies to all cases equally.

softworkz


More information about the ffmpeg-devel mailing list