-
Notifications
You must be signed in to change notification settings - Fork 126
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
avcenc produces run-to-run bit compare mismatches. #84
Comments
have you tried libyami https://github.com/01org/libyami and https://github.com/01org/libyami-utils for the same use cases? Those libraries offer also md5sum comparisons on intel-vaapi-driver |
I can see this issue with: Looking into mismatches of 2 consequent runs, I think that issue is with bit2bit mismatches in B-frames. Looks like frames either match exactly or mismatch, mismatches do not spread on next frames. First few mismatch frames are B. Hope this helps. |
thanks, we will take a look |
I think B-frame encoding is broken in current master, because my gstreamer-vaapi based test cases showing clear artifacts and macroblock decoding errors. And this is reproducible only for streams encoded with B frames. |
Could you provide the platform information, such as graphics PCI id? It will help us to narrow down the issue. |
I see issue at SKL Skull Canyon NUC6i7KYK, CPU i7-6770HQ, GPU dev id is 0x193b. |
B frame encode while enabling High profile is the usage scenario which can reproduce the issue. Till now it was only reproducible in SKL. But with today's git master(c0ea9ac), the issue is reproducible in KBL also, because we started using the same codepath(with new media kernel) of SKL in KBL too. |
With patch to disable dct 8x8 ( Commit 6ec853) still seeing the r2r issue. avcenc 176 144 176x144-25_1882_seq4.yuv 176x144-25_1882_seq4-1.264 --fb=500 --mode=2 7dd31a573bd61bca949b036b8391f515cbb9cee0 176x144-25_1882_seq4-1.264 |
Commit 6ec853 was intended for fixing a different issue, not the r2r mismatch. |
it is related to direct_spatial_mv_pred_flag. it should be 1. it is the avcenc issue or middleware issue |
@xhaihao would you please close it. the fix patch is in libva-utils |
Patch to enable direct_spatial_mv_pred_flag seems to fix r2r issues. With the encoded streams showing: sha1sum output: After patching with Pengfei’s commit 215c04. The encoded stream shows: sha1sum output: |
This issue can not be duplicated on skl platform with the latest libva-utils 1.8.3.pre1 |
@wangzj0601 this issue has been fixed, and it can't be reproduced now, can you help to close this issue? |
The issue had been fixed and verified on QA side, so closed it. |
Sporadically seeing sha1sum mismatches from run-to-run of avcenc (see below). Reproduced with Big Buck Bunny clip, as well as 176x144-25_1882_seq4.yuv. Pengfei has reproduced this issue.
Typical invocation:
avcenc 1920 1080 big_buck_bunny_1080p24_frames_11858_12100.yuv bbb_1080p24-cqp10-1.264 --qp=10 --mode=2
46668c54572db0e02024ed8f1663f892d4cbe966 bbb_1080p24-cqp10-1.264
0fe29c90b887403e52c66fc7d834b3802c82182e bbb_1080p24-cqp10-2.264
ef6b2e0ca63d1ca6f4e7d309671658e0b48d4c03 bbb_1080p24-cqp10-3.264
4758d7207c7365a579ca524ba60332b8e05d5386 bbb_1080p24-cqp10-4.264
cd83106cd2253e7897358ef2c495b9a6f80a57a5 bbb_1080p24-cqp10-5.264
ed064d19d758d23c64ac30bd6a20e4f541658adb bbb_1080p24-cqp20-1.264
ed064d19d758d23c64ac30bd6a20e4f541658adb bbb_1080p24-cqp20-2.264
ed064d19d758d23c64ac30bd6a20e4f541658adb bbb_1080p24-cqp20-3.264
ed064d19d758d23c64ac30bd6a20e4f541658adb bbb_1080p24-cqp20-4.264
ed064d19d758d23c64ac30bd6a20e4f541658adb bbb_1080p24-cqp20-5.264
c797c1b0bceee677ecdb6be740c7c6984f56414d bbb_1080p24-cqp25-1.264
c797c1b0bceee677ecdb6be740c7c6984f56414d bbb_1080p24-cqp25-2.264
c797c1b0bceee677ecdb6be740c7c6984f56414d bbb_1080p24-cqp25-3.264
c797c1b0bceee677ecdb6be740c7c6984f56414d bbb_1080p24-cqp25-4.264
c797c1b0bceee677ecdb6be740c7c6984f56414d bbb_1080p24-cqp25-5.264
d65807d292bbf4d1e29d8b3a828183515e276099 bbb_1080p24-cqp30-1.264
d65807d292bbf4d1e29d8b3a828183515e276099 bbb_1080p24-cqp30-2.264
663f722b754cb471cbb4d797bc068fe487d8fa48 bbb_1080p24-cqp30-3.264
d65807d292bbf4d1e29d8b3a828183515e276099 bbb_1080p24-cqp30-4.264
d65807d292bbf4d1e29d8b3a828183515e276099 bbb_1080p24-cqp30-5.264
3bb1f52ce294901d8fecb5133c624e914cf79c81 bbb_1080p24-cqp40-1.264
3bb1f52ce294901d8fecb5133c624e914cf79c81 bbb_1080p24-cqp40-2.264
3bb1f52ce294901d8fecb5133c624e914cf79c81 bbb_1080p24-cqp40-3.264
3bb1f52ce294901d8fecb5133c624e914cf79c81 bbb_1080p24-cqp40-4.264
3bb1f52ce294901d8fecb5133c624e914cf79c81 bbb_1080p24-cqp40-5.264
The text was updated successfully, but these errors were encountered: