[FFmpeg-trac] #5859(ffmpeg:new): ffmpeg does not work with QSV/MSS2017

FFmpeg trac at avcodec.org
Tue Sep 27 22:42:33 EEST 2016


#5859: ffmpeg does not work with QSV/MSS2017
------------------------------------+----------------------------------
             Reporter:  milanc      |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  ffmpeg
              Version:  git-master  |               Resolution:
             Keywords:  qsv, mfx    |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+----------------------------------

Comment (by milanc):

 I solved it. My problem was in LD_LIBRARY_PATH and missing libva.a. Now,
 all tests, are ok, but ffmpeg fails with segmentation fault.


 {{{
 --------------------------
 Hardware readiness checks:
 --------------------------
  [ OK ] Processor name: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
 --------------------------
 OS readiness checks:
 --------------------------
  [ OK ] GPU visible to OS
 --------------------------
 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
 --------------------------
 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

 --------------------------
 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
 }}}

 {{{
 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
 vainfo: VA-API version: 0.99 (libva 1.67.0.pre1)
 vainfo: Driver version: 16.5.55964-ubit
 vainfo: Supported profile and entrypoints
       VAProfileH264ConstrainedBaseline: VAEntrypointVLD
       VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
       VAProfileH264ConstrainedBaseline: <unknown entrypoint>
       VAProfileH264ConstrainedBaseline: <unknown entrypoint>
       VAProfileH264Main               : VAEntrypointVLD
       VAProfileH264Main               : VAEntrypointEncSlice
       VAProfileH264Main               : <unknown entrypoint>
       VAProfileH264Main               : <unknown entrypoint>
       VAProfileH264High               : VAEntrypointVLD
       VAProfileH264High               : VAEntrypointEncSlice
       VAProfileH264High               : <unknown entrypoint>
       VAProfileH264High               : <unknown entrypoint>
       VAProfileMPEG2Simple            : VAEntrypointEncSlice
       VAProfileMPEG2Simple            : VAEntrypointVLD
       VAProfileMPEG2Main              : VAEntrypointEncSlice
       VAProfileMPEG2Main              : VAEntrypointVLD
       VAProfileVC1Advanced            : VAEntrypointVLD
       VAProfileVC1Main                : VAEntrypointVLD
       VAProfileVC1Simple              : VAEntrypointVLD
       VAProfileJPEGBaseline           : VAEntrypointVLD
       VAProfileJPEGBaseline           : VAEntrypointEncPicture
       VAProfileVP8Version0_3          : VAEntrypointEncSlice
       VAProfileVP8Version0_3          : VAEntrypointVLD
       VAProfileVP8Version0_3          : <unknown entrypoint>
       VAProfileHEVCMain               : VAEntrypointVLD
       VAProfileHEVCMain               : VAEntrypointEncSlice
       VAProfileVP9Profile0            : <unknown entrypoint>
       <unknown profile>               : VAEntrypointVideoProc
       VAProfileNone                   : VAEntrypointVideoProc
       VAProfileNone                   : <unknown entrypoint>
 }}}


 {{{
 ffmpeg version N-81780-g4a05d2e 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 --pkg-config-flags=--static
 --bindir=/root/bin --enable-gpl --enable-nonfree --enable-libfdk-aac
 --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-nvenc
 --enable-libmfx --enable-version3 --enable-pthreads --enable-runtime-
 cpudetect --disable-ffserver --enable-libfreetype --enable-filter=drawtext
   libavutil      55. 30.100 / 55. 30.100
   libavcodec     57. 58.100 / 57. 58.100
   libavformat    57. 51.100 / 57. 51.100
   libavdevice    57.  0.102 / 57.  0.102
   libavfilter     6. 63.100 /  6. 63.100
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  2.100 /  2.  2.100
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, hevc, from './test_out.h265.mp4':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: hevc (Main), yuv420p(tv), 176x96 [SAR 1:1 DAR
 11:6], 30 fps, 30 tbr, 1200k tbn, 30 tbc
 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
 Output #0, mp4, to 'ffmpeg_out.qsv.mp4':
   Metadata:
     encoder         : Lavf57.51.100
     Stream #0:0: Video: h264 (h264_qsv) ([33][0][0][0] / 0x0021), nv12,
 176x96 [SAR 1:1 DAR 11:6], q=2-31, 1000 kb/s, 30 fps, 15360 tbn, 30 tbc
     Metadata:
       encoder         : Lavc57.58.100 h264_qsv
     Side data:
       cpb: bitrate max/min/avg: 0/0/1000000 buffer size: 0 vbv_delay: -1
 Stream mapping:
   Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_qsv))
 Press [q] to stop, [?] for help
 ./h264_qsv_test.sh: line 11: 24803 Segmentation fault      (core dumped)
 ffmpeg -y -i ./test_out.h265.mp4 -c:v h264_qsv ffmpeg_out.qsv.mp4
 }}}

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


More information about the FFmpeg-trac mailing list