1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
FFmpeg/libavutil
Xu Guangxin ae97f69ce1 avutils/vulkan: hwmap, respect src frame resolution
fixes http://trac.ffmpeg.org/ticket/9055

The hw decoder may allocate a large frame from AVHWFramesContext, and adjust width and height based on bitstream.
We need to use resolution from src frame instead of AVHWFramesContext.

test command:
ffmpeg -loglevel debug -hide_banner -hwaccel vaapi -init_hw_device vaapi=va:/dev/dri/renderD128 -hwaccel_device va -hwaccel_output_format vaapi -init_hw_device vulkan=vulk -filter_hw_device vulk -i 1920x1080.264 -c:v libx264 -r:v 30 -profile:v high -preset veryfast -vf "hwmap,chromaber_vulkan=0:0,hwdownload,format=nv12" -map 0 -y vaapiouts.mkv

expected:
No green bar at bottom.
2021-01-22 04:30:42 +01:00
..
2016-02-18 11:55:00 +01:00
2018-09-14 21:36:21 +02:00
2014-08-05 01:54:47 +02:00
2016-05-04 18:16:21 +02:00
2020-04-23 08:05:15 +08:00
2020-04-23 08:05:15 +08:00
2014-07-12 22:33:27 +02:00
2017-01-26 10:25:20 +01:00
2018-09-12 19:15:09 +02:00
2018-09-12 19:15:09 +02:00
2015-10-11 18:03:10 -04:00
2017-03-01 11:23:19 -05:00
2016-01-13 20:00:19 -05:00
2017-06-02 21:00:35 -04:00
2020-05-26 06:47:31 +02:00
2014-08-05 21:05:52 +02:00
2016-01-28 19:49:48 -08:00
2020-05-23 15:51:44 +02:00
2020-05-23 15:51:44 +02:00
2017-11-05 22:13:16 +01:00
2021-01-01 15:25:48 +01:00
2016-10-21 23:58:47 +02:00