MediaSDK
MediaSDK copied to clipboard
The limitation about a frame size of vp9 streams is 1M when sample_multi_transcode is used to decode.
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.
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.
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.
Can you please provide the correct reproducer? logs, cmd, environment, etc
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.
Hi @vvbuzove can you take a look?
This looks like a decoder issue.
Hi Yan, can you take a look in the issue?
Hi, approach is aligned in smt and sample_encode: https://github.com/Intel-Media-SDK/MediaSDK/pull/2815/files