[FFmpeg-trac] #7030(avcodec:new): qsv in ffmpeg

FFmpeg trac at avcodec.org
Tue Feb 20 18:53:14 EET 2018


#7030: qsv in ffmpeg
------------------------------------+-------------------------------------
             Reporter:  palich2000  |                     Type:  defect
               Status:  new         |                 Priority:  important
            Component:  avcodec     |                  Version:  3.4
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+-------------------------------------
 Testing was conducted on the same equipment on the same video stream.
 configuration: --prefix=/home/palich/ffmpeg-test/ --extra-
 cflags='-I/home/palich/ffmpeg-test//include -Ofast -march=native' --extra-
 ldflags='-L/home/palich/ffmpeg-test//lib -ldl' --enable-avresample
 --enable-static --enable-shared --enable-nonfree --enable-gpl --enable-
 version3 --enable-libx264 --enable-libfdk-aac --enable-libmp3lame
 --enable-librtmp --enable-gnutls --enable-libfreetype --enable-filters
 --enable-postproc --enable-runtime-cpudetect --enable-decklink --enable-
 libmfx


 '''ffmpeg version 3.2.10'''

 ffmpeg -i rtmp://...
 -c:v h264_qsv -b:v 1000k -g 50 -r 25
 -strict experimental -acodec aac -ab 64k -ar 44100
 -f flv rtmp://127.0.0.1/virtual/1

 %CPU LOAD (top) 29,7
 %GPU LOAD (metrics_monitor)
 '''RENDER usage: 15.15''',    VIDEO usage: 6.06,      VIDEO_E usage: 0.00
 GT Freq: 350.00

 == This works well. ==

 '''ffmpeg version 3.4.2'''
 add -init_hw_device qsv:hw

 ffmpeg -v info -i rtmp://....
 -init_hw_device qsv:hw -c:v h264_qsv -b:v 1000k
 -strict experimental -acodec aac -ab 64k -ar 44100
 -f flv rtmp://127.0.0.1/virtual/1

 %CPU LOAD (top) 36.0
 %GPU LOAD (metrics_monitor)
 '''RENDER usage: 14.14''',    VIDEO usage: 5.05,      VIDEO_E usage: 0.00
 GT Freq: 350.00

 == This works well. ==

 ''' ffmpeg version 3.3.6 '''

 ffmpeg -v info -i rtmp://....
 -init_hw_device qsv:hw -c:v h264_qsv -b:v 1000k
 -strict experimental -acodec aac -ab 64k -ar 44100
 -f flv rtmp://127.0.0.1/virtual/1

 Unrecognized option 'init_hw_device'.

 Without this option, QSV is not initialized.
 And gives an error. Selected ratecontrol mode is not supported by the QSV
 runtime. Choose a different mode.

 '''ffmpeg version N-90085-gacdea9e'''

 ffmpeg -v info -i rtmp://....
 -init_hw_device qsv:hw -c:v h264_qsv -b:v 1000k
 -strict experimental -acodec aac -ab 64k -ar 44100
 -f flv rtmp://127.0.0.1/virtual/1

 Selected ratecontrol mode is not supported by the QSV runtime. Choose a
 different mode.


 == '''How to make QSV work in these versions ? (3.3.6 and
 N-90085-gacdea9e)''' ==




 {{{
 ./sys_analyzer_linux.py
 --------------------------
 Hardware readiness checks:
 --------------------------
  [ OK ] Processor name: Intel(R) Xeon(R) CPU E3-1275 v5 @ 3.60GHz
 --------------------------
 OS readiness checks:
 --------------------------
  [ OK ] GPU visible to OS
 --------------------------
 Media Server Studio Install:
 --------------------------
  [ OK ] user in video group
  [ OK ] libva.so.1 found
  [ OK ] vainfo reports valid codec entry points
  [ OK ] /dev/dri/renderD128 connects to Intel i915
 --------------------------
 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/7030>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list