Page 1 of 1

libvlc 3.0.3 disable hardware decoding

Posted: 03 Aug 2018 20:07
by thecaptain0220
I am working with an application using QmlVlc. I recently upgraded to libvlc 3.0.3. The issue I am having is that it seems to always try to use hardware encoding now. I have tried --avcodec-hw=none with no success. Is there any way for me to disable the hardware decoding?

Log output
https://pastebin.com/q9V15E7h

Re: libvlc 3.0.3 disable hardware decoding

Posted: 04 Aug 2018 07:11
by Rémi Denis-Courmont
You can force software decoding using the video rendering callbacks, but don't complain it's slow.

Re: libvlc 3.0.3 disable hardware decoding

Posted: 06 Aug 2018 20:39
by thecaptain0220
Are you referencing libvlc_video_format_cb or libvlc_video_display_cb or something else? I dont see how this can be done.

I am having the same issue as this user. https://forum.videolan.org/viewtopic.php?t=138198

When I use VLC 2.X libvlc_video_format_cb is called once with I420 passed in for the chroma. When I use VLC 3.X it calls libvlc_video_format_cb 3 times. First with DX11, then DXA9, then finally I420. After the final call everything works fine, but the time it takes to do this causes a delay. I have tried --vmem-chroma with no change. Is there any way I can get it to use I420 initially?

Re: libvlc 3.0.3 disable hardware decoding

Posted: 06 Aug 2018 21:01
by Rémi Denis-Courmont
Not without patching.