<div dir="ltr"><div>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.<br><br><br></div><div>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.<br></div><div><br></div> <br><div><div>Ratin<br><br><br>StreamInfo succeded<br>Input #0, avi, from 'file:///var/www/media/Blvd_640x480.avi':<br>  Duration: 00:09:10.53, start: 0.000000, bitrate: 1265 kb/s<br>    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<br><br>Calling StreamInfo<br><br>StreamInfo succeded<br>libva info: VA-API version 0.38.0<br>libva info: va_getDriverName() returns 0<br>libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so<br>libva info: Found init function __vaDriverInit_0_38<br>libva info: va_openDriver() returns 0<br><br>2015-07-20 17:22:02:659609 | [mpeg4 @ 0x7f8788497f50] Image too small, temporary buffers cannot function<br>[mpeg4 @ 0x7f8788497f50] get_buffer() failed to allocate context scratch buffers.<br>[mpeg4 @ 0x7f8788498820] Context scratch buffers could not be allocated due to unknown size.<br>[mpeg4 @ 0x7f8788498820] Image too small, temporary buffers cannot function<br>[mpeg4 @ 0x7f8788498820] get_buffer() failed to allocate context scratch buffers.<br>[mpeg4 @ 0x7f878849ba90] Context scratch buffers could not be allocated due to unknown size.<br>[mpeg4 @ 0x7f878849ed00] Context scratch buffers could not be allocated due to unknown size.<br>[mpeg4 @ 0x7f87884a1f70] Context scratch buffers could not be allocated due to unknown size.<br>[mpeg4 @ 0x7f87884a1f70] Image too small, temporary buffers cannot function<br>[mpeg4 @ 0x7f87884a1f70] get_buffer() failed to allocate context scratch buffers.<br>[mpeg4 @ 0x7f8788497f50] Context scratch buffers could not be allocated due to unknown size.<br>[mpeg4 @ 0x7f8788498820] Context scratch buffers could not be allocated due to unknown size.<br>[mpeg4 @ 0x7f8788498820] Image too small, temporary buffers cannot function<br>[mpeg4 @ 0x7f8788498820] get_buffer() failed to allocate context scratch buffers.<br><br><br></div></div></div>