MediaSDK icon indicating copy to clipboard operation
MediaSDK copied to clipboard

The limitation about a frame size of vp9 streams is 1M when sample_multi_transcode is used to decode.

Open dylanintel opened this issue 5 years ago • 8 comments

When using the sample_multi_transcode to decode the vp9 streams. The MaxLength (max frame size) is 1M. The code is as follow.

m_Bitstream.Extend(1024 * 1024); in SetReader of the file pipeline_transcode.cpp.

When using the sample_decode, the MaxLength is 8M.

dylanintel avatar Sep 18 '20 07:09 dylanintel

This is not a limitation, but a value that allocates by default. If it`s not enough, additional space will be allocated during the processing.

AntonGrishin avatar Sep 21 '20 10:09 AntonGrishin

But in actually, when I run a case, additional space isn't allocated during the processing. Here will occur MFX_ERR_NOT_ENOUGH_BUFFER and may be a bug.

dylanintel avatar Sep 22 '20 01:09 dylanintel

Can you please provide the correct reproducer? logs, cmd, environment, etc

AntonGrishin avatar Sep 23 '20 07:09 AntonGrishin

test : ./sample_multi_transcode -i::vp9 in.vp9 -o::raw out_vp9.yuv if the size of one frame is bigger than 1M in a vp9 stream, there occur the error. log: [ERROR], sts=MFX_ERR_NOT_ENOUGH_BUFFER(-5), Transcode, Decode<One|Last>Frame failed. I checked it and found the question in before comments.

dylanintel avatar Sep 24 '20 02:09 dylanintel

Hi @vvbuzove can you take a look?

daleksan avatar Jun 09 '21 22:06 daleksan

This looks like a decoder issue.

vvbuzove avatar Jul 16 '21 20:07 vvbuzove

Hi Yan, can you take a look in the issue?

daleksan avatar Jul 16 '21 21:07 daleksan

Hi, approach is aligned in smt and sample_encode: https://github.com/Intel-Media-SDK/MediaSDK/pull/2815/files

sbalandi avatar Dec 09 '21 17:12 sbalandi