[FFmpeg-trac] #5848(undetermined:new): when using h264_qsv gives an access violation on avcodec

FFmpeg trac at avcodec.org
Fri Sep 16 15:32:47 EEST 2016

#5848: when using h264_qsv gives an access violation on avcodec
             Reporter:  etomm        |                     Type:  defect
               Status:  new          |                 Priority:  critical
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:  h264_qsv,    |               Blocked By:
  avcodec                            |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
 It is impossible to use the h264_qsv encoder/decoder because it crashes
 with an Access Violation exception.

 How to reproduce:
 I downloaded the mp4 hd video from here as a test:

 Using this command line it crashes instead of beginning the

 ffmpeg.exe -fflags +genpts -c:v h264_qsv  -i file:"input.mp4" -map 0:0
 -map 0:1 -map -0:s -codec:v:0 h264_qsv -force_key_frames
 "expr:gte(t,n_forced*5)" -vf
 "scale=trunc(min(max(iw\,ih*dar)\,720)/2)*2:trunc(ow/dar/2)*2" -copyts
 -avoid_negative_ts disabled -start_at_zero -preset 7 -look_ahead 0 -b:v
 874413 -maxrate 874413 -bufsize 1748826 -vsync -1 -profile:v high -level
 4.1 -map_metadata -1 -threads 0 -codec:a:0 copy -y

 I am using Zeranoe builds. The last working build is the one built on

 All the version fails the same way x86, x64, shared and static.

 The machine is a Xen7 Windows Server 2012 R2 machine with the Intel
 Skylake HD 530 passed through.

 Just to underline. It works with the April 9th build, and I know the QSV
 is working because Handbrakes works. So it is not a matter of Passthrough.

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

More information about the FFmpeg-trac mailing list