Opened 3 years ago
Last modified 3 years ago
#10425 new defect
ffmpeg fail to make vaapi to work with filters
| Reported by: | elias tsolis | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | undetermined |
| Version: | 5.1.3 | Keywords: | |
| Cc: | elias tsolis | Blocked By: | |
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
`
ffmpeg version 5.1.3-1 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
`
Trying to convert a gopro video, using vaapi_device fails in color transformation. I used -pix_fmt yuv440p but now it it not available under hwaccel. These formats are available under hwaccel
vaapi dxva2_vld vdpau qsv mmal d3d11va_vld cuda xvmc
videotoolbox_vld mediacodec d3d11 drm_prime opencl vulkan
but using dxva2_vld vaapi failed.
ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -f concat -safe 0 -i "./vids.txt" -vf "format=vaapi,eq=brightness=0.2:contrast=0.7:saturation=1:gamma=1,setpts=2*PTS, hwupload" -c:v hevc_vaapi -rc_mode CQP -global_quality 21 video.mp4
or
ffmpeg -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -f concat -safe 0 -i "./vids.txt" -vf "hwdownload,format=yuv420p,eq=brightness=0.2:contrast=0.7:saturation=1:gamma=1,setpts=2*PTS,hwupload" -c:v hevc_vaapi -rc_mode CQP -global_quality 21 video.mp4
but videos produced with a green line! i cant make it work
video for 7 days: https://we.tl/t-o0nDKtFYSr
Change History (2)
comment:1 by , 3 years ago
comment:2 by , 3 years ago
Yes it worked! Thanks! Please include such information in your manual / guide. Nowhere it was found such information! Thanks!



Could you try the command below:
$ ffmpeg -hwaccel vaapi -hwaccel_output_format yuv420p -vaapi_device /dev/dri/renderD128 -f concat -safe 0 -i "./vids.txt" -vf "eq=brightness=0.2:contrast=0.7:saturation=1:gamma=1,setpts=2*PTS,format=nv12, hwupload" -c:v hevc_vaapi -rc_mode CQP -global_quality 21 video.mp4