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

Are multiple concurrent instances of sample_encode_drm supported?

We are trying to run several sample_encode_drm at the same time to encode multiple streams. However, the second instance fails in libva initialization. Are multiple concurrent instances of sample_encode_drm supported on linux?

Thanks,
Misha

0 Kudos
4 Replies
Highlighted
3 Views

Yes, multiple concurrent instances of all Media SDK pipelines should be supported.  However, I am also seeing a bug with the current release limiting to 1 instance.  I'll investigate and get back to you.

0 Kudos
Highlighted
3 Views

Are you able to encode multiple instances as root?  This helped on the system where I am investigating. It isn't a full solution, but it could be an important clue.  

0 Kudos
Highlighted
3 Views

Hi Jeffrey,
Thanks for fast reply. Definetely being the root changes things! But we still were not able to find a proper way to run it...

Running as root:

sudo /opt/intel/mediasdk/samples/_bin/x64/sample_encode_drm h264 -hw
-nv12 -vaapi -w 1920 -h 1080 -i /epiphan/shutterstock_v2844682_x5.nv12
-o shutterstock_v2844682_x5.h264 -u quality

libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
Intel(R) Media SDK Encoding Sample Version 4.0.1602354.61523

Input file format NV12
Output video AVC
Source picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Destination picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Frame rate 30.00
Bit rate(Kbps) 5009
Target usage quality
Memory type d3d
Media SDK impl hw
Media SDK version 1.6

Processing started
Intel(R) Media SDK Encoding Sample Version 4.0.1602354.61523

Input file format NV12
Output video AVC
Source picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Destination picture:
Resolution 1920x1088
Crop X,Y,W,H 0,0,1920,1080
Frame rate 30.00
Bit rate(Kbps) 5009
Target usage quality
Memory type d3d
Media SDK impl hw
Media SDK version 1.6


Return on error: error code -17,
/msdk/validation/linux_val/validation/ww29.5_Linux-HSW_vc54_Ubuntu_12.04/samples/sample_encode/src/pipeline_encode.cpp
1242


ERROR: Hardware device was lost or returned an unexpected error. Recovering...

No error when running as a normal user (in group video)

Regards,
Misha.

0 Kudos
Highlighted
3 Views

Media SDK for Linux Servers is very sensitive to installation. While I have not seen this particular behavior before, strange behavior like this can often be traced back to not having a supported configuration set up.  Please check your configuration agains the procedure here: http://software.intel.com/en-us/forums/topic/472852

This may not help the problem of multiple sessions needing root, but carefully following this procedure may help with the error you've most recently described.

A more complete installation guide is being included in a future release.

Thanks!

0 Kudos