[FFmpeg-trac] #5899(undetermined:new): hevc_qsv does not work with MSS2017

FFmpeg trac at avcodec.org
Thu Oct 20 12:24:11 EEST 2016


#5899: hevc_qsv does not work with MSS2017
-------------------------------------+-------------------------------------
             Reporter:  milanc       |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:  qsv, mfx     |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 I tested last ffmpeg with MSS2017. All samples from MSS are working
 including h264->hevc conversion.
 But ffmpegg doesn't work with hevc_qsv. I think, is uses other plugin
 2fca99749fdb49aeb121a5b63ef568f7 than is needed?


 {{{
 CPU0: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (family: 0x6, model: 0x5e,
 stepping: 0x3)

 Media SDK Plugins available:
 (for more info see /opt/intel/mediasdk/plugins/plugins.cfg)
 --------------------------
     H264LA Encoder      = 588f1185d47b42968dea377bb5d0dcb4
     VP8 Decoder         = f622394d8d87452f878c51f2fc9b4131
     HEVC Decoder        = 33a61c0b4c27454ca8d85dde757c6f8e
     HEVC Encoder        = 6fadc791a0c2eb479ab6dcd5ea9da347
 }}}

 Summary of the bug:
 How to reproduce:
 {{{
 ffmpeg version N-82007-g1a9513b Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
   configuration: --prefix=./ffmpeg-build --pkg-config-flags=--static
 --bindir=/root/bin --enable-gpl --enable-nonfree --enable-libfdk-aac
 --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx
 --enable-nvenc --enable-libmfx --enable-version3 --enable-pthreads
 --enable-runtime-cpudetect --disable-ffserver --enable-libfreetype
 --enable-filter=drawtext
   libavutil      55. 32.100 / 55. 32.100
   libavcodec     57. 61.103 / 57. 61.103
   libavformat    57. 52.100 / 57. 52.100
   libavdevice    57.  0.102 / 57.  0.102
   libavfilter     6. 64.100 /  6. 64.100
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  2.100 /  2.  2.100
   libpostproc    54.  0.100 / 54.  0.100
 Splitting the commandline.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument 'debug'.
 Reading option '-y' ... matched as option 'y' (overwrite output files)
 with argument '1'.
 Reading option '-i' ... matched as input file with argument
 '/opt/intel/mediasdk/samples/streams/test_stream.264'.
 Reading option '-c:v' ... matched as option 'c' (codec name) with argument
 'hevc_qsv'.
 Reading option '-preset:v' ... matched as AVOption 'preset:v' with
 argument 'faster'.
 Reading option 'out.qsv.mp4' ... matched as output file.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option loglevel (set logging level) with argument debug.
 Applying option y (overwrite output files) with argument 1.
 Successfully parsed a group of options.
 Parsing a group of options: input file
 /opt/intel/mediasdk/samples/streams/test_stream.264.
 Successfully parsed a group of options.
 Opening an input file:
 /opt/intel/mediasdk/samples/streams/test_stream.264.
 [file @ 0x3be19e0] Setting default whitelist 'file,crypto'
 [h264 @ 0x3be10c0] Format h264 probed with size=2048 and score=51
 [h264 @ 0x3be10c0] Before avformat_find_stream_info() pos: 0 bytes
 read:32768 seeks:0 nb_streams:1
 [h264 @ 0x3be27e0] ct_type:0 pic_struct:0
 [h264 @ 0x3be27e0] nal_unit_type: 9, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 7, nal_ref_idc: 1
 [h264 @ 0x3be27e0] nal_unit_type: 8, nal_ref_idc: 1
 [h264 @ 0x3be27e0] nal_unit_type: 6, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 5, nal_ref_idc: 1
 [h264 @ 0x3be27e0] ct_type:0 pic_struct:0
 [h264 @ 0x3be27e0] Reinit context to 176x96, pix_fmt: yuv420p
 [h264 @ 0x3be27e0] ct_type:0 pic_struct:0
 [h264 @ 0x3be27e0] nal_unit_type: 9, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 6, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 1, nal_ref_idc: 1
 [h264 @ 0x3be27e0] ct_type:0 pic_struct:0
 [h264 @ 0x3be27e0] Increasing reorder buffer to 1
 [h264 @ 0x3be27e0] no picture
 [h264 @ 0x3be27e0] ct_type:0 pic_struct:0
 [h264 @ 0x3be27e0] nal_unit_type: 9, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 6, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 1, nal_ref_idc: 0
 [h264 @ 0x3be27e0] ct_type:0 pic_struct:0
     Last message repeated 1 times
 [h264 @ 0x3be27e0] nal_unit_type: 9, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 6, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 1, nal_ref_idc: 1
 [h264 @ 0x3be27e0] ct_type:0 pic_struct:0
     Last message repeated 1 times
 [h264 @ 0x3be27e0] nal_unit_type: 9, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 6, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 1, nal_ref_idc: 0
 [h264 @ 0x3be27e0] ct_type:0 pic_struct:0
     Last message repeated 1 times
 [h264 @ 0x3be27e0] nal_unit_type: 9, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 6, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 1, nal_ref_idc: 1
 [h264 @ 0x3be27e0] ct_type:0 pic_struct:0
     Last message repeated 1 times
 [h264 @ 0x3be27e0] nal_unit_type: 9, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 6, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 1, nal_ref_idc: 0
 [h264 @ 0x3be27e0] ct_type:0 pic_struct:0
     Last message repeated 1 times
 [h264 @ 0x3be27e0] nal_unit_type: 9, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 6, nal_ref_idc: 0
 [h264 @ 0x3be27e0] nal_unit_type: 1, nal_ref_idc: 1
 [h264 @ 0x3be27e0] ct_type:0 pic_struct:0
     Last message repeated 93 times
 [h264 @ 0x3be10c0] After avformat_find_stream_info() pos: 267554 bytes
 read:267554 seeks:0 frames:101
 Input #0, h264, from
 '/opt/intel/mediasdk/samples/streams/test_stream.264':
   Duration: N/A, bitrate: N/A
     Stream #0:0, 101, 1/1200000: Video: h264 (High), 1 reference frame,
 yuv420p(left), 176x96 [SAR 1:1 DAR 11:6], 0/1, 30 fps, 30 tbr, 1200k tbn,
 60 tbc
 Successfully opened the file.
 Parsing a group of options: output file out.qsv.mp4.
 Applying option c:v (codec name) with argument hevc_qsv.
 Successfully parsed a group of options.
 Opening an output file: out.qsv.mp4.
 [file @ 0x3c904c0] Setting default whitelist 'file,crypto'
 Successfully opened the file.
 detected 8 logical cores
 [graph 0 input from stream 0:0 @ 0x3c3eec0] Setting 'video_size' to value
 '176x96'
 [graph 0 input from stream 0:0 @ 0x3c3eec0] Setting 'pix_fmt' to value '0'
 [graph 0 input from stream 0:0 @ 0x3c3eec0] Setting 'time_base' to value
 '1/1200000'
 [graph 0 input from stream 0:0 @ 0x3c3eec0] Setting 'pixel_aspect' to
 value '1/1'
 [graph 0 input from stream 0:0 @ 0x3c3eec0] Setting 'sws_param' to value
 'flags=2'
 [graph 0 input from stream 0:0 @ 0x3c3eec0] Setting 'frame_rate' to value
 '60/2'
 [graph 0 input from stream 0:0 @ 0x3c3eec0] w:176 h:96 pixfmt:yuv420p
 tb:1/1200000 fr:60/2 sar:1/1 sws_param:flags=2
 [format @ 0x3c34060] compat: called with args=[nv12|qsv]
 [format @ 0x3c34060] Setting 'pix_fmts' to value 'nv12|qsv'
 [auto-inserted scaler 0 @ 0x3c1bb20] Setting 'flags' to value 'bicubic'
 [auto-inserted scaler 0 @ 0x3c1bb20] w:iw h:ih flags:'bicubic' interl:0
 [format @ 0x3c34060] auto-inserting filter 'auto-inserted scaler 0'
 between the filter 'Parsed_null_0' and the filter 'format'
 [AVFilterGraph @ 0x3be1780] query_formats: 4 queried, 2 merged, 1 already
 done, 0 delayed
 [auto-inserted scaler 0 @ 0x3c1bb20] w:176 h:96 fmt:yuv420p sar:1/1 ->
 w:176 h:96 fmt:nv12 sar:1/1 flags:0x4
 [h264 @ 0x3c1f920] nal_unit_type: 9, nal_ref_idc: 0
 [h264 @ 0x3c1f920] nal_unit_type: 7, nal_ref_idc: 1
 [h264 @ 0x3c1f920] nal_unit_type: 8, nal_ref_idc: 1
 [h264 @ 0x3c1f920] Ignoring NAL type 9 in extradata
 libva info: VA-API version 0.99.0
 libva info: va_getDriverName() returns 0
 libva info: User requested driver 'iHD'
 libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
 libva info: Found init function __vaDriverInit_0_32
 libva info: va_openDriver() returns 0
 [hevc_qsv @ 0x3c3f9e0] mfx initialization: /dev/dri/renderD128
 vaInitialize successful
 [hevc_qsv @ 0x3c3f9e0] Could not load the requested plugin:
 2fca99749fdb49aeb121a5b63ef568f7
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> hevc (hevc_qsv))
 Error while opening encoder for output stream #0:0 - maybe incorrect
 parameters such as bit_rate, rate, width or height
 [AVIOContext @ 0x3c1d500] Statistics: 0 seeks, 0 writeouts
 [AVIOContext @ 0x3be9d00] Statistics: 267554 bytes read, 0 seeks
 }}}

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


More information about the FFmpeg-trac mailing list