[FFmpeg-trac] #8042(undetermined:new): AMD screen record + h/w vaapi encode to mkv fails

FFmpeg trac at avcodec.org
Sat Jul 27 18:23:26 EEST 2019

#8042: AMD screen record + h/w vaapi encode to mkv fails
             Reporter:  soreau       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:  radeonsi     |               Blocked By:
  amd mkv                            |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
 Summary of the bug:
 Trying to encode using vaapi fails if the container is mkv. With wf-
 recorder avformat_write_header() fails with "Invalid data found when
 processing input". This is a link to a email with an ffmpeg command to
 reproduce: https://lists.ffmpeg.org/pipermail/ffmpeg-
 user/2018-March/039090.html 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
 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!
 ffmpeg version: git
 built on: x86_64 linux

Ticket URL: <https://trac.ffmpeg.org/ticket/8042>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list