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.
3069 Discussions

Intel Transcoder failed : Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate

syamsudin__arie
Beginner
1,108 Views

I want to reduce bandwidth usage by using Intel Transcoding.

I was given a tutorial or steps by ezserver support:

http://www.ezhometech.com/document/intel_ffmpeg.txt

After I search on google, it turned out that MediaServerStudioEssentials2018R1.tar.gz only supports Intel Generation 6.7 and 8.

https://software.intel.com/en-us/articles/intel-media-sdk-release-notes
https://software.intel.com/en-us/articles/driver-support-matrix-for-media-sdk-and-opencl

Now I have used intel generation 7 but it still failed.

I use CentOS 7.4.

This is the error result :

[root@iptv ezserver_ai]# ./ffmpeg -y -i http://maxptv.ddns.net:25461/movie/MA020/0706/1054.mp4 -vcodec h264_qsv -acodec copy -b:v 8000K out.mp4
ffmpeg version 3.2.12 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-16)
  configuration: --enable-libmfx --enable-nonfree
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://maxptv.ddns.net:25461/movie/MA020/0706/1054.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : BAIXE OUTROS FILMES NO COMANDOTORRENTS.COM
    encoder         : Lavf57.82.100
  Duration: 01:35:50.82, start: 0.000000, bitrate: 1439 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x534 [SAR 801:800 DAR 12:5], 1049 kb/s, SAR 1:1 DAR 640:267, 24 fps, 24 tbr, 16k tbn, 48 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(por): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 384 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Side data:
      audio service type: main
libva info: VA-API version 1.0.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_1_0
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
libva error: /opt/intel/mediasdk/lib64/iHD_drv_video.so init failed
libva info: va_openDriver() returns 18
[h264_qsv @ 0x2489f40] mfx init: /dev/dri/renderD128 vaInitialize failed
[h264_qsv @ 0x2489f40] mfx init: /dev/dri/renderD129 fd open failed
[h264_qsv @ 0x2489f40] mfx init: /dev/dri/renderD130 fd open failed
libva info: VA-API version 1.0.0
open lib: No such file or directory
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_1_0
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
libva error: /opt/intel/mediasdk/lib64/iHD_drv_video.so init failed
libva info: va_openDriver() returns 18
[h264_qsv @ 0x2489f40] mfx init: /dev/dri/card0 vaInitialize failed
[h264_qsv @ 0x2489f40] mfx init: /dev/dri/card1 fd open failed
[h264_qsv @ 0x2489f40] mfx init: /dev/dri/card2 fd open failed
[h264_qsv @ 0x2489f40] Selected ratecontrol mode is not supported by the QSV runtime. Choose a different mode.
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
  Stream #0:1 -> #0:1 (copy)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height


Why? please help as soon as possible.

Please help me.

0 Kudos
1 Reply
syamsudin__arie
Beginner
1,108 Views

Dear Sir,

 

Please tell me what requirements are needed to use Intel Transcoding?

I followed this but there was still an error.

https://www.intel.com/content/dam/www/public/us/en/documents/white-papers/quicksync-video-ffmpeg-install-valid.pdf

Please help me...

 

Regards,

0 Kudos
Reply