[FFmpeg-user] 4K RGB->YUV realtime conversion.

Peter White peter.white at posteo.net
Tue Mar 9 05:52:24 EET 2021


On Mon, Mar 08, 2021 at 09:46:22PM +0100, Anders Degerberg wrote:
> Hi, see output below:
> $ ffmpeg -loglevel verbose -f decklink -raw_format rgb10 -i "DeckLink
> 8K Pro (1)" -sws_flags bilinear -sws_flags print_info -c:v hevc_nvenc
> -an -b:v 30M -f null -

Just an aside, you need to specifiy the -sws_flags like this:
-sws_flags bilinear+print_info

Otherwise the last -sws_flags occurence wins, as can be seen below.

> [auto_scaler_0 @ 0x46e2b00] w:iw h:ih flags:'bicubic' interl:0
> [format @ 0x46e0cc0] auto-inserting filter 'auto_scaler_0' between the
> filter 'Parsed_null_0' and the filter 'format'
> SwScaler: reducing / aligning filtersize 1 -> 4
>     Last message repeated 1 times
> SwScaler: reducing / aligning filtersize 1 -> 1
>     Last message repeated 1 times
> [swscaler @ 0x46e4540] bicubic scaler, from gbrp10le to yuv444p16le using MMXEXT
> [swscaler @ 0x46e4540] 4096x2160 -> 4096x2160

It is still using the default bicubic algoritm.


Peter


More information about the ffmpeg-user mailing list