Media (Intel® 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
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

More input data expected. intel MSS

varun_r_1
Beginner
767 Views

Hi All,

I'm getting following error and not able run the sample decode application.

[vrapelly@localhost _build]$ ./simple_decode -hw test_stream.yuv t.jpg
libva info: VA-API version 0.35.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

 More input data expected. src/simple_decode.cpp 102

[vrapelly@localhost _build]$ uname -a
Linux localhost.localdomain 3.10.0-229.1.2.39163.MSSr4.el7.centos.x86_64 #1 SMP Wed Feb 17 12:51:22 IST 2016 x86_64 x86_64 x86_64 GNU/Linux

[vrapelly@localhost _build]$ cat /etc/*-release
CentOS Linux release 7.1.1503 (Core)
NAME="CentOS Linux"

Using following version of Media SDK: MediaServerStudioEssentials2015R6/mediasdk-tutorials-0.0.3

[vrapelly@localhost _build]$ ./simple_session
libva info: VA-API version 0.35.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

Implementation: HARDWARE          API Version: 1.16
[vrapelly@localhost _build]$

Please let me know, is there anything wrong in the execution part..

 

0 Kudos
3 Replies
Jiandong_Z_Intel
Employee
767 Views

Hi There,

Does MSDK sample_decode_drm work for you ?

Can you send the output of following command line   for understand your system ?

$ ls -l  /dev/dri

$ lspci –nn | grep -i  vga

 

Thanks,

Zachary

0 Kudos
Varun_R_2
Beginner
767 Views

Hi Zachary,

Following are the details:

[root@localhost _build]# ls -l  /dev/dri

total 0
crw-rw----+ 1 root video 226,   0 Feb 18 09:56 card0
crw-------. 1 root video 226,  64 Feb 18 09:54 controlD64
crw-rw----. 1 root video 226, 128 Feb 18 09:54 renderD128

[root@localhost _build]#  lspci | grep -i  vga

00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09)

[root@localhost MediaSamples_Linux_bins_6.0.16043175.175]#  ./sample_encode_drm mpeg2 -i content/test_stream_176x96.yuv -o o.mpeg2 -w 1000 -h 1000

libva info: VA-API version 0.35.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
Encoding Sample Version 6.0.16043175.175

Input file format    YUV420
Output video        MPG2
Source picture:
    Resolution    1008x1008
    Crop X,Y,W,H    0,0,1000,1000
Destination picture:
    Resolution    1008x1008
    Crop X,Y,W,H    0,0,1000,1000
Frame rate    30.00
Bit rate(Kbps)    21701
Target usage    balanced
Memory type    system
Media SDK impl        hw
Media SDK version    1.16

Processing started
Frame number: 1
Processing finished

[root@localhost MediaSamples_Linux_bins_6.0.16043175.175]# ./sample_decode_drm h264 -i content/test_stream.264 -o try.yuv
libva info: VA-API version 0.35.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 6.0.16043175.175


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

Decoding started
Frame number:  101, fps: 262.220, fread_fps: 0.000, fwrite_fps: 3990.045
Decoding finished

Today I tried again, and was able to run it. Please find the attached log for more details.

After running both decoder app (./simple_decode out_qsv.h264 raw ) and encoder app(./simple_encode -g 1280x720 -b 1000 -f 30/1 out_qsv.h264 op.mp4), i combined both audio and video file (output of encoder) using ffmepg (ffmpeg -i op.mp4 -i output.aac try.mp4 ).  

When i played try.mp4, only audio track was coming, no video present (some blurred image was coming). Please let me know, is it the right way to verify the things or not? Please suggest me how to verify the outputs media SDK application.

 

0 Kudos
Jiandong_Z_Intel
Employee
767 Views

Hi ,

The output of MSDK sample_encode is bare H264 stream, not mp4. can you check the parameter of ffmpeg when do the audio and video combination.

if you want verify the output of sample_encode, just playback the output. like use VLC or MSDK sample_decode with parameter -r.

Thanks,

Zachary

 

 

0 Kudos
Reply