Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
87 Views

qsv+ffmpeg Segmentation fault

i am using this edition
pwd
/************************************************************
/home/htxk/Downloads/MediaServerStudioEssentials2017/SDK2017Production16.5/CentOS
************************************************************/


./cat /proc/cpuinfo
/************************************************************
processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 94
model name      : Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
stepping        : 3
microcode       : 0x8a
cpu MHz         : 800.000
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 4
************************************************************/

 

after installing:
uname -r
/************************************************************
3.10.0-327.el7.x86_64
************************************************************/

cat /etc/redhat-release
/************************************************************
CentOS Linux release 7.2.1511 (Core) 
************************************************************/

ls /opt/intel/mediasdk/lib64/
/************************************************************
iHD_drv_video.so      libmfxhw64.so         libmfxsw64.so
libmfxhw64-p.so.1.19  libmfxsw64-p.so.1.19
************************************************************/

env |grep 'LIBVA'
/************************************************************
LIBVA_DRIVERS_PATH=/opt/intel/mediasdk/lib64
LIBVA_DRIVER_NAME=iHD
************************************************************/

vainfo
/************************************************************
error: can't connect to X server!
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>
************************************************************/


lsmod |grep 'i915'
/************************************************************
i915                 1321453  4 
i2c_algo_bit           13413  1 i915
drm_ukmd_kms_helper   141060  1 i915
drm_ukmd              369649  3 i915,drm_ukmd_kms_helper
drm_ukmd_compat       109279  1 i915
video                  24400  1 i915
i2c_core               40582  7 drm,i915,i2c_i801,i2c_hid,i2c_algo_bit,drm_ukmd,drm_ukmd_kms_helper
************************************************************/


ls -l /dev/dri/
/************************************************************
total 0
crw-rw----+ 1 root video 226,   0 Jan 16 01:21 card0
crw-------. 1 root video 226,  64 Jan 16 01:21 controlD64
crw-rw----+ 1 root video 226, 128 Jan 16 01:21 renderD128
************************************************************/

groups
/************************************************************
htxk video
************************************************************/

 


ffmpeg transcode test_out: Segmentation fault
/************************************************************
ffmpeg -y -i testmp4.mp4 -vcodec h264_qsv -acodec copy -b:v 8000k out.mp4
ffmpeg version 2.8.8 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --enable-nonfree --enable-ffmpeg --enable-libmfx
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'testmp4.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2015-05-06 01:12:21
    encoder         : FormatFactory : www.pcfreetime.com
  Duration: 00:00:11.01, start: 0.000000, bitrate: 2364 kb/s
    Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 968x544 [SAR 1:1 DAR 121:68], 2252 kb/s, 25 fps, 25 tbr, 25k tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2015-05-06 01:12:21
      handler_name    : video
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2015-05-06 01:12:21
      handler_name    : sound
Segmentation fault (core dumped)
************************************************************/


sample decode : ok
/************************************************************
 ./sample_decode h264 -i streams/test_stream.264 -o out.yuv -w 16 -h 16 -hw
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
Decoding Sample Version 7.0.16053497


Input video     AVC 
Output format   NV12 (using vpp)
Input:
  Resolution    176x96
  Crop X,Y,W,H  0,0,0,0
Output:
  Resolution    16x16
Frame rate      30.00
Memory type             system
MediaSDK impl           hw
MediaSDK version        1.19

Decoding started
Frame number:  101, fps: 1560.834, fread_fps: 0.000, fwrite_fps: 0.000
Decoding finished
************************************************************/

What am i missing?

can anybody help me?

best regards.

0 Kudos
10 Replies
Highlighted
Beginner
87 Views

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# /cat /proc/cpuinfo

processor    : 7
vendor_id    : GenuineIntel
cpu family    : 6
model        : 94
model name    : Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz
stepping    : 3
microcode    : 0x8a
cpu MHz        : 1082.656
cache size    : 6144 KB
physical id    : 0
siblings    : 8
core id        : 3
cpu cores    : 4
apicid        : 7
initial apicid    : 7
fpu        : yes
fpu_exception    : yes
cpuid level    : 22
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs        :
bogomips    : 5183.91
clflush size    : 64
cache_alignment    : 64
address sizes    : 39 bits physical, 48 bits virtual
power management:

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# uname -a
Linux mos 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# ls /opt/intel/mediasdk/lib64/
iHD_drv_video.so  libmfxhw64-p.so.1.19  libmfxhw64.so  libmfxsw64-p.so.1.19  libmfxsw64.so


root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# env |grep 'LIBVA'
LIBVA_DRIVERS_PATH=/opt/intel/mediasdk/lib64
LIBVA_DRIVER_NAME=iHD


root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# vainfo
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>

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# lsmod |grep 'i915'
i915_bpo             1302528  4
intel_ips              20480  1 i915_bpo
i2c_algo_bit           16384  1 i915_bpo
drm_kms_helper        155648  1 i915_bpo
drm                   364544  5 i915_bpo,drm_kms_helper
video                  40960  1 i915_bpo

 

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# ls -l /dev/dri/
总用量 0
crw-rw----+ 1 root video 226,   0 1月  18 18:18 card0
crw-rw----  1 root video 226,  64 1月  18 18:18 controlD64
crw-rw----+ 1 root video 226, 128 1月  18 18:18 renderD128


root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# groups
root video

 

 

 

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# ./sample_multi_transcode -i::h264 ../content/test_stream.264 -o::h264 test_out.h264 -hw
Multi Transcoding Sample Version 7.0.16053497

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
Pipeline surfaces number (DecPool): 20

Return on error: error code -3,    /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_multi_transcode/src/pipeline_transcode.cpp    2924


Return on error: error code -3,    /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_multi_transcode/src/sample_multi_transcode.cpp    307

 

 

root@mos:~/mscore_src/extern/src/ffmpeg# /usr/local/bin/ffmpeg -hwaccel qsv -c:v h264_qsv -vsync 0 -i udp://224.2.2.2:9000 -look_ahead 0 -pix_fmt nv12 -c:v h264_qsv -c:a copy  -b:v 2M -preset veryfast -f mpegts udp://127.0.0.1:10000

Input #0, mpegts, from 'udp://224.2.2.2:9000':
  Duration: N/A, start: 60850.147611, bitrate: N/A
  Program 1
    Stream #0:0[0x1010]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 720x576 [SAR 16:11 DAR 20:11], 25 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1011]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 127 kb/s
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
Segmentation fault (core dumped)

 

root@mos:/opt/intel/mediasdk/tools/metrics_monitor/sample# ls
build.sh  cttmetrics_sample.cpp  metrics_monitor  run.sh
root@mos:/opt/intel/mediasdk/tools/metrics_monitor/sample# ./run.sh
ERROR: Failed to initialize metrics monitor, error code -10

 

I meet the same problem,can anyone help ?

0 Kudos
Highlighted
Beginner
87 Views

su g. wrote:

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# /cat /proc/cpuinfo

processor    : 7
vendor_id    : GenuineIntel
cpu family    : 6
model        : 94
model name    : Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz
stepping    : 3
microcode    : 0x8a
cpu MHz        : 1082.656
cache size    : 6144 KB
physical id    : 0
siblings    : 8
core id        : 3
cpu cores    : 4
apicid        : 7
initial apicid    : 7
fpu        : yes
fpu_exception    : yes
cpuid level    : 22
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs        :
bogomips    : 5183.91
clflush size    : 64
cache_alignment    : 64
address sizes    : 39 bits physical, 48 bits virtual
power management:

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# uname -a
Linux mos 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# ls /opt/intel/mediasdk/lib64/
iHD_drv_video.so  libmfxhw64-p.so.1.19  libmfxhw64.so  libmfxsw64-p.so.1.19  libmfxsw64.so

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# env |grep 'LIBVA'
LIBVA_DRIVERS_PATH=/opt/intel/mediasdk/lib64
LIBVA_DRIVER_NAME=iHD

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# vainfo
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>

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# lsmod |grep 'i915'
i915_bpo             1302528  4
intel_ips              20480  1 i915_bpo
i2c_algo_bit           16384  1 i915_bpo
drm_kms_helper        155648  1 i915_bpo
drm                   364544  5 i915_bpo,drm_kms_helper
video                  40960  1 i915_bpo

 

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# ls -l /dev/dri/
总用量 0
crw-rw----+ 1 root video 226,   0 1月  18 18:18 card0
crw-rw----  1 root video 226,  64 1月  18 18:18 controlD64
crw-rw----+ 1 root video 226, 128 1月  18 18:18 renderD128

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# groups
root video

 

 

 

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# ./sample_multi_transcode -i::h264 ../content/test_stream.264 -o::h264 test_out.h264 -hw
Multi Transcoding Sample Version 7.0.16053497

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
Pipeline surfaces number (DecPool): 20

Return on error: error code -3,    /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_multi_transcode/src/pipeline_transcode.cpp    2924

Return on error: error code -3,    /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_multi_transcode/src/sample_multi_transcode.cpp    307

 

 

root@mos:~/mscore_src/extern/src/ffmpeg# /usr/local/bin/ffmpeg -hwaccel qsv -c:v h264_qsv -vsync 0 -i udp://224.2.2.2:9000 -look_ahead 0 -pix_fmt nv12 -c:v h264_qsv -c:a copy  -b:v 2M -preset veryfast -f mpegts udp://127.0.0.1:10000

Input #0, mpegts, from 'udp://224.2.2.2:9000':
  Duration: N/A, start: 60850.147611, bitrate: N/A
  Program 1
    Stream #0:0[0x1010]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 720x576 [SAR 16:11 DAR 20:11], 25 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1011]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 127 kb/s
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
Segmentation fault (core dumped)

 

root@mos:/opt/intel/mediasdk/tools/metrics_monitor/sample# ls
build.sh  cttmetrics_sample.cpp  metrics_monitor  run.sh
root@mos:/opt/intel/mediasdk/tools/metrics_monitor/sample# ./run.sh
ERROR: Failed to initialize metrics monitor, error code -10

 

I meet the same problem,can anyone help ?

it seems i successfully installed . maybe, the ./sample_multi_transcode instruction showing 

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

indicates the successful installing. maybe you enter wrong parameters.

now , i can normally use the ffmpeg instruction using h264_qsv codec.

you should write libmfx.pc like this other than amend the config.mak:

 

prefix=/opt/intel/mediasdk

exec_prefix=${prefix}

libdir=${exec_prefix}/lib/lin_x64

includedir=${exec_prefix}/include

 

Name: libmfx

 

Description: Intel Media SDK dispatcher.

Version: 2015r6

Libs: -L${libdir} -lmfx -lva -lstdc++ -ldl -lva-drm -ldrm

Cflags: -I${includedir} -I/usr/include/libdrm

 

 

if any processing, please let me know. 

 

 

 

0 Kudos
Highlighted
Beginner
87 Views

zhao qi wrote:

Quote:

su g. wrote:

 

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# /cat /proc/cpuinfo

processor    : 7
vendor_id    : GenuineIntel
cpu family    : 6
model        : 94
model name    : Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz
stepping    : 3
microcode    : 0x8a
cpu MHz        : 1082.656
cache size    : 6144 KB
physical id    : 0
siblings    : 8
core id        : 3
cpu cores    : 4
apicid        : 7
initial apicid    : 7
fpu        : yes
fpu_exception    : yes
cpuid level    : 22
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs        :
bogomips    : 5183.91
clflush size    : 64
cache_alignment    : 64
address sizes    : 39 bits physical, 48 bits virtual
power management:

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# uname -a
Linux mos 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# ls /opt/intel/mediasdk/lib64/
iHD_drv_video.so  libmfxhw64-p.so.1.19  libmfxhw64.so  libmfxsw64-p.so.1.19  libmfxsw64.so

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# env |grep 'LIBVA'
LIBVA_DRIVERS_PATH=/opt/intel/mediasdk/lib64
LIBVA_DRIVER_NAME=iHD

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# vainfo
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>

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# lsmod |grep 'i915'
i915_bpo             1302528  4
intel_ips              20480  1 i915_bpo
i2c_algo_bit           16384  1 i915_bpo
drm_kms_helper        155648  1 i915_bpo
drm                   364544  5 i915_bpo,drm_kms_helper
video                  40960  1 i915_bpo

 

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# ls -l /dev/dri/
总用量 0
crw-rw----+ 1 root video 226,   0 1月  18 18:18 card0
crw-rw----  1 root video 226,  64 1月  18 18:18 controlD64
crw-rw----+ 1 root video 226, 128 1月  18 18:18 renderD128

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# groups
root video

 

 

 

root@mos:~/mscore_src/extern/src/intel/MediaSamples_Linux_2017/samples/_bin/x64# ./sample_multi_transcode -i::h264 ../content/test_stream.264 -o::h264 test_out.h264 -hw
Multi Transcoding Sample Version 7.0.16053497

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
Pipeline surfaces number (DecPool): 20

Return on error: error code -3,    /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_multi_transcode/src/pipeline_transcode.cpp    2924

Return on error: error code -3,    /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_multi_transcode/src/sample_multi_transcode.cpp    307

 

 

root@mos:~/mscore_src/extern/src/ffmpeg# /usr/local/bin/ffmpeg -hwaccel qsv -c:v h264_qsv -vsync 0 -i udp://224.2.2.2:9000 -look_ahead 0 -pix_fmt nv12 -c:v h264_qsv -c:a copy  -b:v 2M -preset veryfast -f mpegts udp://127.0.0.1:10000

Input #0, mpegts, from 'udp://224.2.2.2:9000':
  Duration: N/A, start: 60850.147611, bitrate: N/A
  Program 1
    Stream #0:0[0x1010]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 720x576 [SAR 16:11 DAR 20:11], 25 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1011]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 127 kb/s
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
Segmentation fault (core dumped)

 

root@mos:/opt/intel/mediasdk/tools/metrics_monitor/sample# ls
build.sh  cttmetrics_sample.cpp  metrics_monitor  run.sh
root@mos:/opt/intel/mediasdk/tools/metrics_monitor/sample# ./run.sh
ERROR: Failed to initialize metrics monitor, error code -10

 

I meet the same problem,can anyone help ?

 

 

it seems i successfully installed . maybe, the ./sample_multi_transcode instruction showing 

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

indicates the successful installing. maybe you enter wrong parameters.

now , i can normally use the ffmpeg instruction using h264_qsv codec.

you should write libmfx.pc like this other than amend the config.mak:

 

prefix=/opt/intel/mediasdk

exec_prefix=${prefix}

libdir=${exec_prefix}/lib/lin_x64

includedir=${exec_prefix}/include

 

Name: libmfx

 

Description: Intel Media SDK dispatcher.

Version: 2015r6

Libs: -L${libdir} -lmfx -lva -lstdc++ -ldl -lva-drm -ldrm

Cflags: -I${includedir} -I/usr/include/libdrm

 

 

if any processing, please let me know. 

 

 

 

 

 

I already add the libmfx.pc at the path,and it is vaild;

I cannot run ./metrics_monitor also

And I change the os to ubuntu 14.04, the wrong isnot  avoided?

I donot know  how to do?

0 Kudos
Highlighted
Beginner
87 Views

the output 

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

 

indicates you have successfully installed. try this command as root, it works on my computer

MediaServerStudioEssentials2017/SDK2017Production16.5/CentOS

cpu family      : 6
model           : 94
model name      : Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz

CentOS Linux release 7.2.1511 (Core) 

 

 

 

 ffmpeg -y -i VID_20161224_172717.mp4 -vcodec h264_qsv -acodec copy -s 856x480 out10.flv

 ./sample_decode h264 -i ../content/test_stream.264 -hw -h 16 -h 16 -o out.yuv

./sample_decode h264 -i ../content/test_stream.264 -hw -h 16 -h 16 -o out.yuv
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
Decoding Sample Version 7.0.16053497


Input video     AVC 
Output format   NV12
Input:
  Resolution    176x96
  Crop X,Y,W,H  0,0,0,0
Output:
  Resolution    176x96
Frame rate      30.00
Memory type             system
MediaSDK impl           hw
MediaSDK version        1.19

Decoding started
Frame number:  101, fps: 975.902, fread_fps: 0.000, fwrite_fps: 0.00009
Decoding finished

0 Kudos
Highlighted
Beginner
87 Views

I have check all the install step !

Is the cpu support qsv?( Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz)

The sample  cannot run on my pc,I will change my os to CentOS Linux release 7.2.1511

My wechat is :Prodigals

0 Kudos
Highlighted
Beginner
87 Views

MediaServerStudioEssentials2016 dont support intel 6th family cpu as mentioned in the tutorial paper . Changing os is a advisable solution. the compatibility brings strange problem.

0 Kudos
Highlighted
Beginner
87 Views

I use MediaServerStudioEssentials2017,It support support intel 6th family cpu!!

I have contact the intel sales,they tell me it  need path to support ffmpeg qsv!!! Hope can resolve my problem!

 

 

 

 

0 Kudos
Highlighted
Beginner
87 Views

need patch

0 Kudos
Highlighted
Beginner
87 Views

I am successed at centos 7.2,I will test the ffmpeg+qvs later!

0 Kudos
Highlighted
Beginner
87 Views

I test with the command:

ffmpeg -hwaccel qsv -c:v h264_qsv -i http://192.168.1.64:8010/ch3.ts ; -pix_fmt nv12 -c:v h264_qsv -c:a copy -b:v 2M  -f mpegts udp://127.0.0.1:10000

result:decode error

 

 

I test with the command:

ffmpeg -hwaccel  -i http://192.168.1.64:8010/ch3.ts ; -pix_fmt nv12 -c:v h264_qsv -c:a copy -b:v 2M  -f mpegts udp://127.0.0.1:10000

result:It is success,but video and audio not sync,and the cpu uarg 30% with:

RENDER usage: 2.00,    VIDEO usage: 0.00,    VIDEO_E usage: 0.00    VIDEO2 usage: 0.00    GT Freq: 350.00

Input #0, mpegts, from 'http://192.168.1.64:8010/ch3.ts':
  Duration: N/A, start: 56643.097678, bitrate: N/A
  Program 1
    Stream #0:0[0x1030]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 720x576 [SAR 16:11 DAR 20:11], 25 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1031]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 127 kb/s
[h264_qsv @ 0x263c8e0] Encoder will work with partial HW acceleration
Output #0, mpegts, to 'udp://127.0.0.1:10000':
  Metadata:
    encoder         : Lavf57.58.101
    Stream #0:0: Video: h264 (h264_qsv), nv12, 720x576 [SAR 16:11 DAR 20:11], q=2-31, 2000 kb/s, 25 fps, 90k tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.66.108 h264_qsv
    Side data:
      cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 127 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
  Stream #0:1 -> #0:1 (copy)

 

 

0 Kudos