libvlc 3.0.3 disable hardware decoding

This forum is about all development around libVLC.
thecaptain0220
New Cone
New Cone
Posts: 9
Joined: 05 Dec 2014 16:09

libvlc 3.0.3 disable hardware decoding

Postby thecaptain0220 » 03 Aug 2018 20:07

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: libvlc 3.0.3 disable hardware decoding

Postby Rémi Denis-Courmont » 04 Aug 2018 07:11

You can force software decoding using the video rendering callbacks, but don't complain it's slow.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

thecaptain0220
New Cone
New Cone
Posts: 9
Joined: 05 Dec 2014 16:09

Re: libvlc 3.0.3 disable hardware decoding

Postby thecaptain0220 » 06 Aug 2018 20:39

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: libvlc 3.0.3 disable hardware decoding

Postby Rémi Denis-Courmont » 06 Aug 2018 21:01

Not without patching.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 30 guests