New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ffmpeg-vaapi][VP8 encode] floating point exception #578
Comments
|
@eero-t Could you please share this bit stream for reproducing? Thanks |
|
None of the input video's I've tested, works. Here's one example: https://media.xiph.org/video/derf/webm/FourPeople_1280x720_60.webm Backtrace with media driver & FFmpeg git versions from yesterday: When looking at the relevant code in header and codechal_encode_vp8.cpp: And the values for the relevant variables at exception: There's an obvious division by zero. (And code exception handling for some reason converts that to a "floating point" exception?) |
1. Initialize BRC variales for avoiding wrong DSH allocation. 2. Set the right CQP enum number (RATECONTROL_CQP = 3). 3. Avoid division by zero in CQP mode. Fixes intel#578. Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
1. Initialize BRC variales for avoiding wrong DSH allocation. 2. Set the right CQP enum number (RATECONTROL_CQP = 3). 3. Avoid division by zero in CQP mode. Fixes intel#578. Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
|
Yes, it gets rid of the exception. However, fix to #409 is also needed, otherwise output file is empty. (Tested on KBL GT2.) |
|
Interesting, I have this issue with libva+vaapi driver at i7 8700k. |
1. Initialize BRC variales for avoiding wrong DSH allocation. 2. Set the right CQP enum number (RATECONTROL_CQP = 3). 3. Avoid division by zero in CQP mode. Fixes intel#578. Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
1. Initialize BRC variales for avoiding wrong DSH allocation. 2. Set the right CQP enum number (RATECONTROL_CQP = 3). 3. Avoid division by zero in CQP mode. Fixes #578. Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
Setup:
Use-case:
Result is floating point exception:
Same happens also with #409 use-case.
The text was updated successfully, but these errors were encountered: