[Libav-user] HWACCEL for MPEG4 broken?

Ratin ratin3 at gmail.com
Wed Jul 22 21:36:28 CEST 2015


Hey Folks, I am trying to decode mpeg4 (avi container) with libavcodec,
integrating with libva. Saw this allocation related issue, even if the
image sizes are properly populated, the linesize remains zero and throws
the error messages as shown below. i made sure get buffer is called and
allocation succeeds in the GPU. Was wondering if anybody saw this issue
before.


Update: It seems that mpv does not use HWACCEL to decode MPEG4 either (it
goes thru reinit chain). Just dumps the raw bitstream to HWACCEL for
rendering.


Ratin


StreamInfo succeded
Input #0, avi, from 'file:///var/www/media/Blvd_640x480.avi':
  Duration: 00:09:10.53, start: 0.000000, bitrate: 1265 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID /
0x44495658), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 1259 kb/s, 30 fps, 30 tbr,
30 tbn, 30 tbc

Calling StreamInfo

StreamInfo succeded
libva info: VA-API version 0.38.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0

2015-07-20 17:22:02:659609 | [mpeg4 @ 0x7f8788497f50] Image too small,
temporary buffers cannot function
[mpeg4 @ 0x7f8788497f50] get_buffer() failed to allocate context scratch
buffers.
[mpeg4 @ 0x7f8788498820] Context scratch buffers could not be allocated due
to unknown size.
[mpeg4 @ 0x7f8788498820] Image too small, temporary buffers cannot function
[mpeg4 @ 0x7f8788498820] get_buffer() failed to allocate context scratch
buffers.
[mpeg4 @ 0x7f878849ba90] Context scratch buffers could not be allocated due
to unknown size.
[mpeg4 @ 0x7f878849ed00] Context scratch buffers could not be allocated due
to unknown size.
[mpeg4 @ 0x7f87884a1f70] Context scratch buffers could not be allocated due
to unknown size.
[mpeg4 @ 0x7f87884a1f70] Image too small, temporary buffers cannot function
[mpeg4 @ 0x7f87884a1f70] get_buffer() failed to allocate context scratch
buffers.
[mpeg4 @ 0x7f8788497f50] Context scratch buffers could not be allocated due
to unknown size.
[mpeg4 @ 0x7f8788498820] Context scratch buffers could not be allocated due
to unknown size.
[mpeg4 @ 0x7f8788498820] Image too small, temporary buffers cannot function
[mpeg4 @ 0x7f8788498820] get_buffer() failed to allocate context scratch
buffers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20150722/c32f5948/attachment.html>


More information about the Libav-user mailing list