[FFmpeg-user] gbrpf32le in filter_complex
Andrew Randrianasulu
randrianasulu at gmail.com
Fri May 9 22:05:07 EEST 2025
пт, 9 мая 2025 г., 21:50 Mark Filipak <markfilipak.imdb at gmail.com>:
> I make two statements below regarding the core of the filter_complex.
> I'd be grateful if you'd point out statements that are wrong.
> (Of course, anything more you'd like to contribute is welcome, too.)
>
> In the core of filter_complex, pixel format is always gbrpf32le.
>
I do not think this is true ... at least in cinelerra-gg many ffmpeg
filters run as 8bpc, on my fx 4300 (in 32 bit mode) difference between
8bpc and 32fp surely very noticeable.
> It is possible to convert bt2020nc/bt2020/smpte2084 to bt709/bt709/bt709
> via zscale, only.
>
If you have Vulkan driver and libplacebo dev files installed you can try
something like:
./ffmpeg -init_hw_device vulkan=vulkan -filter_hw_device vulkan -hwaccel
vulkan -i ~/K38_sdcard1/Documents/iPhone11_4K-recorder_59.940HDR10.mov
-vf
libplacebo=w=1920:h=1080:force_original_aspect_ratio=decrease:normalize_sar=true:upscaler=ewa_lanczos:downscaler=ewa_lanczos:colorspace=bt709:color_primaries=bt709:color_trc=bt709:range=tv
-c:a copy -c:v libx264 -f mp4 -benchmark
/dev/shm/ffmpeg-git-libplacebo-vulkan-2k.mp4
or with opencl:
./ffmpeg -hwaccel vaapi -init_hw_device opencl=ocl -filter_hw_device ocl
-i ~/K38_sdcard1/Documents/iPhone11_4K-recorder_59.940HDR10.mov -vf
"scale=1920:1080,format=p010,hwupload,tonemap_opencl=tonemap=mobius:param=0.01:desat=0:r=tv:p=bt709:t=bt709:m=bt709:format=nv12,hwdownload,format=nv12"
-c:a copy -c:s copy -c:v libx264 -f mp4 /dev/shm/fhd-sdr-ocl.mp4
I used ffmpeg 7.1.1 or git (compiled them and placed in ~/bin/ )
Note, I have recent vulkan-sdk ( vulkan-sdk-1.4.304.0-i686-1) and mesa3d
suite of drivers also from git , on AMD RX550 GPU, Slackware 15.0
updated manually. libplacebo at libplacebo-6.338.1-i586-1_SBo
./configure lines were
ffmpeg version N-118190-g8bb682d454 Copyright (c) 2000-2025 the FFmpeg
developers
built with gcc 11.2.0 (GCC)
configuration: --enable-opencl --disable-debug --enable-libx265
--enable-libx264 --enable-gpl --enable-libplacebo --enable-vulkan
--enable-libshaderc --enable-libzimg --enable-libaom --enable-libdav1d
--enable-libsoxr --enable-libfontconfig --enable-libfreetype
--enable-libfribidi --enable-gnutls --enable-libass --enable-libbluray
--enable-libcdio --enable-frei0r --enable-libgsm --enable-openal
--enable-libopus --enable-librtmp --enable-libsnappy --enable-libspeex
--enable-libssh --enable-libtheora --enable-libtwolame --enable-libv4l2
--enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp
On Windows you probably want different hwaccel (dx11va ?), hopefully it
will work with other hw filtering components ?
> Thanks! -- Mark.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
More information about the ffmpeg-user
mailing list