Request/Help: H265
Opened this issue · 8 comments
Hello @mmozeiko,
The recorded file using h265 (Main_420_8) codec has noise while using the latest version and the earlier version (prior to convert buffer) works as expected. PFA of mock-ups for the same. Can you please advice how to address it?
Thanks,
Muthu
You mean it worked before and is not working afterwards? Which commit did it work with?
Does it work if you disable GPU encoder?
Hello @mmozeiko,
Thank you very much for your time and help, it is really appreciated.
It works fine till commit #f1050973884. https://github.com/mmozeiko/wcap/tree/f105973884e70fda99c8d1e0864d9cf60213e47b
Disabling gpu encoding fails with below error.
Thanks,
Muthu
Hmm, I see. Two more questions:
- what GPU do you have?
- does latest versions work fine when recording with codec set to H264? What about HEVC 10-bit?
Do you have VS installed? If yes, can you run latest source built in debug mode and check debugger output window for any error messages? To build exe in debug mode, run build.cmd debug
- I have two gpus, Intel(R) HD Graphics 630 (igpu) and Radeon RX Vega M GH Graphics (xgpu). Commit #f1050973884 works fine with amd gpu.
- Yes, h264 works fine in latest code. HEVC 10-bit runs into "Cannot configure video encoder input!" error. please find the details below. H264 is highlighted in green and H265 in red. Also, ran the code in debug mode and it didn't throw any error or fail at a code location.
please find the logs of output windows for your reference.
h265-latest.txt
h265-f1050973884 .txt
Thanks,
Muthu
Hello @mmozeiko,
Commenting out the below line from the latest code, seems to have fixed the noise problem of h265.
HR(IMFMediaType_SetUINT64(Type, &MF_MT_FRAME_RATE, MFT64(Config->FramerateNum, Config->FramerateDen))); (wcap_encoder.c, 337).
Thanks,
Muthu
Hello @mmozeiko,
This issue has re-surfaced again. This happens (latest codebase) with Radeon RX Vega M GH Graphics (xgpu, amd) and the integrated gpu works fine. Can you please advise me what could i look into?
Thanks,
Muthu
Hello @mmozeiko,
I have raised the below issue at AMF and there are few recommendations provided by them as well.
GPUOpen-LibrariesAndSDKs/AMF#434
Thanks,
Muthu
Sorry, I'm currently traveling. I'll look into this in couple of weeks when I'm back from vacation.