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

FFmpeg trac at avcodec.org
Mon Jan 16 13:00:01 EET 2017


#5899: hevc_qsv does not work with MSS2017
-------------------------------------+-------------------------------------
             Reporter:  milanc       |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  qsv          |               Resolution:  duplicate
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by mort1k):

 Confirm:

 {{{
 [root at localhost bin]# ./ffmpeg   -loglevel debug   -i
 http://x.x.x.x:8090/channel/928 -dts_delta_threshold 1000 -s 720x576 -g 13
 -keyint_min 13 -c:v mpeg2_qsv -b:v 4300k      -c:a mp2 -ac 2 -b:a 128k -ar
 48000   -af aresample=async=1000  -strict 1  -threads 0 -flush_packets 0
 -f mpegts
 "udp://239.255.5.2:1234?pkt_size=1316&reuse=1&buffer_size=131070&fifo_size=1000000&bitrate=3700000&overrun_nonfatal=1"
 ffmpeg version N-83096-g6596b34 Copyright (c) 2000-2017 the FFmpeg
 developers
   built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)
   configuration: --prefix=/root/ffmpeg_build --extra-
 cflags=-I/root/ffmpeg_build/include --extra-
 ldflags='-L/root/ffmpeg_build/lib -ldl' --bindir=/root/bin --pkg-config-
 flags=--static --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-
 libfreetype --enable-libmp3lame --enable-libx264 --enable-libmfx
   libavutil      55. 43.100 / 55. 43.100
   libavcodec     57. 72.100 / 57. 72.100
   libavformat    57. 62.100 / 57. 62.100
   libavdevice    57.  2.100 / 57.  2.100
   libavfilter     6. 69.100 /  6. 69.100
   libswscale      4.  3.101 /  4.  3.101
   libswresample   2.  4.100 /  2.  4.100
   libpostproc    54.  2.100 / 54.  2.100
 Splitting the commandline.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument 'debug'.
 Reading option '-i' ... matched as input url with argument
 'http://x.x.x.x:8080/channel/928'.
 Reading option '-dts_delta_threshold' ... matched as option
 'dts_delta_threshold' (timestamp discontinuity delta threshold) with
 argument '1000'.
 Reading option '-s' ... matched as option 's' (set frame size (WxH or
 abbreviation)) with argument '720x576'.
 Reading option '-g' ... matched as AVOption 'g' with argument '13'.
 Reading option '-keyint_min' ... matched as AVOption 'keyint_min' with
 argument '13'.
 Reading option '-c:v' ... matched as option 'c' (codec name) with argument
 'mpeg2_qsv'.
 Reading option '-b:v' ... matched as option 'b' (video bitrate (please use
 -b:v)) with argument '4300k'.
 Reading option '-c:a' ... matched as option 'c' (codec name) with argument
 'mp2'.
 Reading option '-ac' ... matched as option 'ac' (set number of audio
 channels) with argument '2'.
 Reading option '-b:a' ... matched as option 'b' (video bitrate (please use
 -b:v)) with argument '128k'.
 Reading option '-ar' ... matched as option 'ar' (set audio sampling rate
 (in Hz)) with argument '48000'.
 Reading option '-af' ... matched as option 'af' (set audio filters) with
 argument 'aresample=async=1000'.
 Reading option '-strict' ...Routing option strict to both codec and muxer
 layer
  matched as AVOption 'strict' with argument '1'.
 Reading option '-threads' ... matched as AVOption 'threads' with argument
 '0'.
 Reading option '-flush_packets' ... matched as AVOption 'flush_packets'
 with argument '0'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'mpegts'.
 Reading option
 'udp://239.255.5.2:1234?pkt_size=1316&reuse=1&buffer_size=131070&fifo_size=1000000&bitrate=3700000&overrun_nonfatal=1'
 ... matched as output url.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option loglevel (set logging level) with argument debug.
 Applying option dts_delta_threshold (timestamp discontinuity delta
 threshold) with argument 1000.
 Successfully parsed a group of options.
 Parsing a group of options: input url http://x.x.x.x:8080/channel/928.
 Successfully parsed a group of options.

 ......

 Parsing a group of options: output url
 udp://239.255.5.2:1234?pkt_size=1316&reuse=1&buffer_size=131070&fifo_size=1000000&bitrate=3700000&overrun_nonfatal=1.
 Applying option s (set frame size (WxH or abbreviation)) with argument
 720x576.
 Applying option c:v (codec name) with argument mpeg2_qsv.
 Applying option b:v (video bitrate (please use -b:v)) with argument 4300k.
 Applying option c:a (codec name) with argument mp2.
 Applying option ac (set number of audio channels) with argument 2.
 Applying option b:a (video bitrate (please use -b:v)) with argument 128k.
 Applying option ar (set audio sampling rate (in Hz)) with argument 48000.
 Applying option af (set audio filters) with argument aresample=async=1000.
 Applying option f (force format) with argument mpegts.
 Successfully parsed a group of options.
 Opening an output file:
 udp://239.255.5.2:1234?pkt_size=1316&reuse=1&buffer_size=131070&fifo_size=1000000&bitrate=3700000&overrun_nonfatal=1.
 [udp @ 0x3b08cc0] No default whitelist set
 Successfully opened the file.
 detected 4 logical cores
 [h264 @ 0x36e9e20] nal_unit_type: 9, nal_ref_idc: 0
 [h264 @ 0x36e9e20] nal_unit_type: 7, nal_ref_idc: 1
 [h264 @ 0x36e9e20] nal_unit_type: 8, nal_ref_idc: 1
 [h264 @ 0x36e9e20] Ignoring NAL type 9 in extradata
 [graph 0 input from stream 0:0 @ 0x3aa0c80] Setting 'video_size' to value
 '720x576'
 [graph 0 input from stream 0:0 @ 0x3aa0c80] Setting 'pix_fmt' to value '0'
 [graph 0 input from stream 0:0 @ 0x3aa0c80] Setting 'time_base' to value
 '1/90000'
 [graph 0 input from stream 0:0 @ 0x3aa0c80] Setting 'pixel_aspect' to
 value '16/11'
 [graph 0 input from stream 0:0 @ 0x3aa0c80] Setting 'sws_param' to value
 'flags=2'
 [graph 0 input from stream 0:0 @ 0x3aa0c80] Setting 'frame_rate' to value
 '25/1'
 [graph 0 input from stream 0:0 @ 0x3aa0c80] w:720 h:576 pixfmt:yuv420p
 tb:1/90000 fr:25/1 sar:16/11 sws_param:flags=2
 [scaler_out_0_0 @ 0x3805660] Setting 'w' to value '720'
 [scaler_out_0_0 @ 0x3805660] Setting 'h' to value '576'
 [scaler_out_0_0 @ 0x3805660] Setting 'flags' to value 'bicubic'
 [scaler_out_0_0 @ 0x3805660] w:720 h:576 flags:'bicubic' interl:0
 [format @ 0x3aa0720] compat: called with args=[nv12|qsv]
 [format @ 0x3aa0720] Setting 'pix_fmts' to value 'nv12|qsv'
 [AVFilterGraph @ 0x3745220] query_formats: 5 queried, 4 merged, 0 already
 done, 0 delayed
 [scaler_out_0_0 @ 0x3805660] w:720 h:576 fmt:yuv420p sar:16/11 -> w:720
 h:576 fmt:nv12 sar:16/11 flags:0x4
 [mpeg2_qsv @ 0x3b083a0] Initialized an internal MFX session using hardware
 accelerated implementation
 [mpeg2_qsv @ 0x3b083a0] Using the average variable bitrate (AVBR)
 ratecontrol method
 [mpeg2_qsv @ 0x3b083a0] Encoder will work with partial HW acceleration
 [mpeg2_qsv @ 0x3b083a0] Error retrieving encoding parameters.
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> mpeg2video (mpeg2_qsv))
   Stream #0:1 -> #0:1 (mp2 (native) -> mp2 (native))
 Error while opening encoder for output stream #0:0 - maybe incorrect
 parameters such as bit_rate, rate, width or height
 [AVIOContext @ 0x3804300] Statistics: 0 seeks, 0 writeouts
 [AVIOContext @ 0x36e2ee0] Statistics: 1632442 bytes read, 0 seeks

 }}}

 {{{
 --------------------------
 Hardware readiness checks:
 --------------------------
  [ OK ] Processor name: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
 --------------------------
 OS readiness checks:
 --------------------------
  [ OK ] GPU visible to OS
 --------------------------
 Intel(R) Media Server Studio Install:
 --------------------------
  [ OK ] user is root
  [ OK ] libva.so.1 found
  [ OK ] vainfo reports valid codec entry points
  [ OK ] /dev/dri/renderD128 connects to Intel i915

 --------------------------
 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
 --------------------------
 Component Smoke Tests:
 --------------------------
  [ OK ] Media SDK HW API level:1.19
  [ OK ] Media SDK SW API level:1.19
  [ OK ] OpenCL check:platform:Intel(R) OpenCL GPU OK CPU OK

 }}}

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


More information about the FFmpeg-trac mailing list