-
Notifications
You must be signed in to change notification settings - Fork 32
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
Stuttering video on playback when using HDR2SDR #58
Comments
I managed to correct the metadata by overwriting these values in the StaxRip gui after I had imported the HDR input file. I had to change the values "colormatrix", "colorprimary" and "transfer" to BT.709 from their imported HDR values and also blank out the "master display", "max cll", "max fall", "chromaloc" and "aud" values from the imported HDR values. Now the output file metadata looks like a standard SDR file when viewed with MediaInfo. However, the playback is still stuttering.
|
I can also confirm that video playback stutters in version 5.03, when using HDR2SDR and software decoding (--avsw). Hardware decoding (--avhw), does not appear to have stutter issues. However, hardware decoding introduces another issue (#57 (comment)) |
OpenCLに渡したフレームをOpenCLの処理が終わったことを確認する前に参照を解放してしまい、処理が完了する前にフレームが再使用され上書きされてしまっていた。
Thank you for letting me know the issue. Video stuttering was caused when using readers except --avhw and with OpenCL based filters (such as HDR2SDR), QSVEnc 5.04 shall fix this problem. |
Thanks for fixing this so quickly. Tested v5.04 and file now plays back smoothly! I very rarely use the HDR2SDR function, but do you have any idea why I receive the warning "avqsv: Failed to get header for hardware decoder, switching to software decoder..." ref (#54)? As far as I can tell this only happens when the input file is encoded as HDR. Maybe I need to download/update some drivers on my PC?? I think it only happens on Ice Lake, as the log from #57 does not show this warning when using --avhw decoding with Tiger Lake GPU. Do you have a PC with Ice Lake GPU, as the sample HDR file I made a link to at the top of this thread Thanks again for your efforts - they are very much appreciated! |
I'm thinking it's a driver issue/bug with Intel. I found some other posts on the web about people using Plex to transcode 10-bit HEVC HDR and saying that hardware decoding is not working, but hardware encoding does work. I'll try to post it on the intel site and see if they know anything about it. |
Just checked intel media site and these 2 open issues do seem related and suggest it is still work in progress:- I'm not 100% sure it's the same thing, but it does look like there could still be issues with hardware decoding of 10-bit HEVC HDR. |
Good question. However, I can confirm that I do not see this error on Tiger Lake. So even if it is a driver issue, it does not appear to affect Tiger Lake CPUs. |
I have a ? I compared fixed function CQP encoding quality with hybrid quality at about the same bitrate. Obviously FF encoding is much faster. With Ice Lake, if I compare snapshots of the same frame with FF and hybrid encodes, the only (small) differences I see in quality is with facial detail - skin texture, wrinkles etc. The FF encodes tend to lose some of those facial textures, whereas hybrid encodes are very good with minimal loss when compared with the source. I probably would not notice a difference during playback. Is that the same with TGL, that FF encode compared to hybrid can fall a little short when retaining facial textures? I must admit, that everywhere else (apart from the fine facial details), the quality between the 2 is very close. I was wondering if this had been improved with TGL FF encoding. Thx. If it was very close, then I'd be tempted to update to TGL and just use FF (esp as you can use bframes and bpyramid with TGL FF). If possible I would love to see a single frame comparison showing a facial closeup. |
I have never used Fixed Function, so I just did a quick test... Using the same CQP value (all other encoding options the same), Fixed Function results in a very slight increase in bitrate compared to Hybrid (11.5 Mbit FF vs 11.3 MBit Hybrid). Yet Fixed Function has a very slight softness to the image (probably less detail) compared to Hybrid. Probably similar to what you are experiencing with Ice Lake. I'm guessing that the motion and image analysis is better in hybrid. And yes, I noticed that B Frames and B Pyramid seemed to be working with Fixed Function. I'm very happy with the speed of hybrid though. The faster GPU of the i7-1165G7 Tiger Lake (96 EUs) approaches almost a 50% encoding speed increase at times, compared to my old i5 Kaby Lake. Not sure how the speed compares to Ice Lake though. |
Thanks for that. I suppose if fixed function were as good as hybrid, then what is the point of hybrid. I'll stick with ICL for now. To get the same (or similar) bitrate with FF CQP on ICL I have to increase the CQP settings by 2 (because of no bframe or bpyramid support on FF with ICL). So, if CQP hybrid is 32 with 16 bframes etc, I will set FF CQP to 34. |
Trying out the HDR2SDR function. I'm using the latest QSVEnc v5.03 and I have Ice Lake GPU (i7-1065G7). When playing back video, it is stuttering, jittery - the colours look great, not washed out at all. If I remove the "hdr2sdr=reinhard" colorspace option, the video plays back correctly retaining the HDR metadata. I have attached the QSV log below and attach a link to the output sample and a sample of the HDR input file from my MEGA account.
I also get the warning "avqsv: Failed to get header for hardware decoder, switching to software decoder..." - this only happens when the input file is HDR. I had previously opened an issue about this (#54) and I closed it.
Thanks for a great bit of software! The only alternative to this is HDR to SDR with FFMPEG and that is a lot slower.
Sample output: (15.2Mb)
https://mega.nz/file/qgoEzDpL#wgDeu5tpkU7aJyDx_V4fEkUD0ske0ojm9jPyIKcE2ak
Also, a sample of the input HDR file if you want to try it out yourself: (46.5Mb)
https://mega.nz/file/OggUADKZ#6l5VMnDlIJ5X_7GvFrVcF7deyUI6VUKpUIxrJa5czmo
(I had to copy and paste the text of these links to a new browser tab to get there)
I notice that the metadata on the output file still shows the HDR metadata instead of SDR metadata? I'll look into this - first time trying HDR2SDR. (EDIT: I figured that bit out in my next comment below).
The text was updated successfully, but these errors were encountered: