Created attachment 144894 [details] [review] Proposed fix for mkv with vaapi Trying to encode using vaapi fails if the container is mkv. Changing the output format to .mp4 in the command works. How to reproduce: `ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i input.mp4 -vf 'hwupload' -vcodec h264_vaapi -bf 0 output.mkv` Output: `Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input Error initializing output stream 0:0 -- Conversion failed!` Expected: Works without error. Proposed: Patch attached.
After chatting with Mark Thompson, I realize that the patch is incorrect because it advertises packed header support which is not implemented in the driver. Proper packed header support should be implemented to fix this problem.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1420.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.