Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK

VP8 decode problem

yuxiao_z_
Beginner
687 Views

Hi,

I used sample_decode to decode test_stream_vp8.ivf but failed with Segmentation fault (core dumped). Can you tell me what to do?

The command is: ./sample_decode vp8 -hw -vaapi  -i test_stream_vp8.ivf -o out.yuv -p f622394d8d87452f878c51f2fc9b4131

uname -r  shows:  3.10.0-229.1.2.47109.MSSr1.el7.centos.x86_64

 

 

0 Kudos
7 Replies
Surbhi_M_Intel
Employee
687 Views

Hi, 

Sorry for the late response. Is your system 4th or 5th generation Intel core system? If so, check plugins.cfg file at /opt/intel/media/plugins for VP8 decoder. If Vp8 decoder isn't mentioned then add below to cfg file and run the cmd line. It should work. 

[VP8_Decoder_f622394d8d87452f878c51f2fc9b4131]
GUID = f622394d8d87452f878c51f2fc9b4131
PluginVersion = 1
APIVersion = 273
Path = /opt/intel/mediasdk/plugins/libmfx_vp8d_hw64.so
Type = 1
CodecID = VP8
Default = 0

 

If you still see an issue, please let us know. 

Thanks,
Surbhi

0 Kudos
yuxiao_z_
Beginner
687 Views

Hi, Surbhi

Thank you for your response.

We used Intel E3 v3 system. I checked plugin.cfg file, and it already contained the information of VP8 decoder. A file named libmfx_vp8d_hw64.so is in /opt/intel/mediasdk/plugins.

the sample_decode still doesn't work with the cmd line I mentioned above.

Best Wishes,

Yuxiao

0 Kudos
Surbhi_M_Intel
Employee
687 Views

Hi Yuxiao, 

Can you tell about your system details - CPU, OS, Media Server Studio version?
output of cmd - vainfo and uname -r

Are you able to run h264 decode?

-Surbhi

0 Kudos
yuxiao_z_
Beginner
687 Views

Hi, Surbhi,

CPU: Intel Xeon E3-1276 v3;

OS: CentOS 7

MSS Version: 16.4.4-47109.el7.x86_64

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.4.4.47109-ubit
vainfo: Supported profile and entrypoints
      VAProfileH264Baseline           :	VAEntrypointEncSlice
      VAProfileH264Baseline           :	<unknown entrypoint>
      VAProfileH264Baseline           :	<unknown entrypoint>
      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               :	VAEntrypointEncSlice
      VAProfileVP9Profile0            :	VAEntrypointEncSlice
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile0            :	<unknown entrypoint>
      <unknown profile>               :	VAEntrypointVideoProc
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileNone                   :	<unknown entrypoint>

uname -r:

3.10.0-229.1.2.47109.MSSr1.el7.centos.x86_64

There is no problem with h264 decoding.

Best Regards,

Yuxiao

0 Kudos
Surbhi_M_Intel
Employee
687 Views

Yuxiao - Everything looks normal, please send us the error output of the sample run. So far I am not able to reproduce the locally here. 

 

0 Kudos
yuxiao_z_
Beginner
687 Views

Hi, Surbhi,

Output is shown as below. The Chinese words is segmentation fault (core dumped) in English.

[root@localhost release]# ./sample_decode vp8 -hw -vaapi  -i test_stream_vp8.ivf -o out.yuv -p f622394d8d87452f878c51f2fc9b4131
plugin_loader.h :170 [INFO] Plugin was loaded from GUID: { 0xf6, 0x22, 0x39, 0x4d, 0x8d, 0x87, 0x45, 0x2f, 0x87, 0x8c, 0x51, 0xf2, 0xfc, 0x9b, 0x41, 0x31 } (Unknown plugin)
pretending that stream is 30fps one
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 0.0.000.0000


Input video    VP8 
Output format    NV12
Input:
  Resolution    176x96
  Crop X,Y,W,H    0,0,176,96
Output:
  Resolution    176x96
Frame rate    30.00
Memory type        d3d
MediaSDK impl        hw
MediaSDK version    1.17

Decoding started
段错误(吐核)

 

0 Kudos
Surbhi_M_Intel
Employee
687 Views

Are you using pre compiled binaries? Seems like the error in the cleaning up the resources or closing the file. 

-Surbhi
 

 

0 Kudos
Reply