Not able to open VLC over HDMI

*nix specific usage questions
fred44nl
Blank Cone
Blank Cone
Posts: 28
Joined: 10 Aug 2018 13:23

Not able to open VLC over HDMI

Postby fred44nl » 14 Sep 2018 14:10

I have VLC 3.0.3 running on Debian 9
when I connect to my machine with Remote Desktop, I can open VLC
but this does not happen, when I open VLC on a screen that is connected with HDMI
as far as I can see, everything works over HDMI, except VLC

when I put the command vlc in Terminal, there is a complaint about "no suitable interface module" and also "interface "globalhotkeys,none"

have already looked around on the net, but no solution.
how can I solve this ??

fred44nl
Blank Cone
Blank Cone
Posts: 28
Joined: 10 Aug 2018 13:23

Re: Not able to open VLC gui over X11

Postby fred44nl » 17 Sep 2018 18:10

after a long search, I found a possible solution:
As root, edit the existing file: /etc/X11/Xsession.d/98qtconfig

Code: Select all

# Add the following line to fix interface size problems with QT based apps like VLC export QT_AUTO_SCREEN_SCALE_FACTOR=0
but I don't have a 98qtconfig file.

another suggestion is to put the following line in terminal:

Code: Select all

env QT_AUTO_SCREEN_SCALE_FACTOR=0 vlc
this does open the GUI of vlc

how can I make this permanent, by editing the vlc.destop file ??

simvrh
New Cone
New Cone
Posts: 2
Joined: 29 Sep 2018 20:45

Re: Not able to open VLC over HDMI

Postby simvrh » 29 Sep 2018 21:33

I have a similar problem. VLC does not start on a PC connected to a TV (old, big) through VGA.

The proposed solution works for me (a big thanks to fred44nl!):

Code: Select all

env QT_AUTO_SCREEN_SCALE_FACTOR=0 vlc
I found a solution that works system-wide:

Code: Select all

# Write this code at the end of /etc/profile export QT_AUTO_SCREEN_SCALE_FACTOR=0
I am appending some more details about the issue in case someone else will search for it in the future.

Linux _ 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux
VLC media player 3.0.3 Vetinari (revision 3.0.3-1-0-gc2bb759264)

If I start vlc from the terminal, I get a lot of messages:

Code: Select all

...: Painter not active ...: Painter must be active to set rendering hints
And then:

Code: Select all

QWidget::setMinimumSize: (/QStatusBar) The largest allowed size is (16777215,16777215) QWidget::setMaximumSize: (/QStatusBar) The largest allowed size is (16777215,16777215) QWidget::setMinimumSize: (/MainInterface) The largest allowed size is (16777215,16777215) QWidget::setMinimumSize: (/MainInterface) The largest allowed size is (16777215,16777215) QWidget::setMinimumSize: (/MainInterface) The largest allowed size is (16777215,16777215)
Which is followed by a bunch of errors:

Code: Select all

QXcbConnection: XCB error: 2 (BadValue), sequence: 425, resource id: 0, major code: 1 (CreateWindow), minor code: 0 QXcbConnection: XCB error: 3 (BadWindow), sequence: 426, resource id: 16777221, major code: 2 (ChangeWindowAttributes), minor code: 0
Then it goes back to the "Painter not active" messages.

fred44nl
Blank Cone
Blank Cone
Posts: 28
Joined: 10 Aug 2018 13:23

Re: Not able to open VLC over HDMI

Postby fred44nl » 08 Oct 2018 10:41

still trying to solve this :(
there are suggestions, to go back to version 2.2.7
but is that really necessary ??
what it comes down to, is that when I try to open VLC from the desktop, the program does not show.
it does, when I use RDP bit that is not showing rdp0: which has the hdmi-output.

fred44nl
Blank Cone
Blank Cone
Posts: 28
Joined: 10 Aug 2018 13:23

Re: Not able to open VLC over HDMI

Postby fred44nl » 09 Nov 2018 14:33

one month later :(
problem still exists.
any help would be appreciated.

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: Not able to open VLC over HDMI

Postby unidan » 11 Nov 2018 15:39

Hi,

what do you mean ? The workaround above doesn't work for you ?

The issue came from your DE or Qt support for HDpi, but not VLC.

fred44nl
Blank Cone
Blank Cone
Posts: 28
Joined: 10 Aug 2018 13:23

Re: Not able to open VLC over HDMI

Postby fred44nl » 14 Nov 2018 13:22

Hi,

what do you mean ? The workaround above doesn't work for you ?

The issue came from your DE or Qt support for HDpi, but not VLC.
the mentioned work-around does not help me.
this is what happens, i.e. the video does open, but does not start:
fred44nl@Debian:~$ env QT_AUTO_SCREEN_SCALE_FACTOR=0 vlc "Video's"/*.mkv X11
VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332)
[00005590708ec1a0] main libvlc: Vlc draait met de standaardinterface. Gebruik 'cvlc' om vlc zonder interface te gebruiken.
[00005590709ad740] main audio output error: too low audio sample frequency (0)
[00007f3560ce09c0] main decoder error: failed to create audio output
[00005590709ad740] vlcpulse audio output error: digital pass-through stream connection failure: Niet ondersteund
[00005590709ad740] main audio output error: module not functional
[00007f3560ce09c0] main decoder error: failed to create audio output
[00007f353c007b90] main filter error: Failed to create video converter
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
[00007f3560c06360] avcodec decoder: Using OpenGL/VAAPI backend for VDPAU for hardware decoding
[00007f353c02c090] main filter error: Failed to create video converter
[00007f353c020500] blend blend error: no matching alpha blending routine (chroma: YUVA -> VDV0)
[00007f353c020500] main blend error: blending YUVA to VDV0 failed
[00007f353c020500] blend blend error: no matching alpha blending routine (chroma: YUVA -> VDV0)

fred44nl
Blank Cone
Blank Cone
Posts: 28
Joined: 10 Aug 2018 13:23

Re: Not able to open VLC over HDMI

Postby fred44nl » 14 Nov 2018 16:25

got it working, with a few audio complaints.
got the GUI open and made several changes.
had to turn off the hardware transcoding.
this is how it looks now:
fred44nl@Debian:~$ env QT_AUTO_SCREEN_SCALE_FACTOR=0 vlc
VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332)
[00005623191dc1a0] main libvlc: Vlc draait met de standaardinterface. Gebruik 'cvlc' om vlc zonder interface te gebruiken.
[000056231926efe0] main playlist: playlist is empty
libdvdnav: Using dvdnav version 5.0.3
libdvdread: Encrypted DVD support unavailable.
************************************************
** **
** No css library available. See **
** /usr/share/doc/libdvdread4/README.css **
** for more information. **
** **
************************************************
libdvdread: Couldn't find device name.
libdvdread:DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFilePath:findDVDFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[000056231929d750] main audio output error: too low audio sample frequency (0)
[00007f1b00ccd3e0] main decoder error: failed to create audio output
[000056231929d750] vlcpulse audio output error: digital pass-through stream connection failure: Niet ondersteund
[000056231929d750] main audio output error: module not functional
[00007f1b00ccd3e0] main decoder error: failed to create audio output
[00007f1ac8007df0] main filter error: Failed to create video converter
QObject::~QObject: Timers cannot be stopped from another thread
fred44nl@Debian:~$

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: Not able to open VLC over HDMI

Postby unidan » 16 Nov 2018 18:05

Hi, does it work with --avcodec-hw=vaapi ?

fred44nl
Blank Cone
Blank Cone
Posts: 28
Joined: 10 Aug 2018 13:23

Re: Not able to open VLC over HDMI

Postby fred44nl » 16 Nov 2018 18:10

Hi, does it work with --avcodec-hw=vaapi ?
did not try that start-option.
will do that some time later

that main thing is, that you cannot open the VLC GUI from the desktop.
it has to be done from Terminal.

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: Not able to open VLC over HDMI

Postby unidan » 16 Nov 2018 18:14

If it fixes your issue, you will be able to freeze it into ~/.config/vlc/vlcrc.

Keep me updated on your issue. ;)

fred44nl
Blank Cone
Blank Cone
Posts: 28
Joined: 10 Aug 2018 13:23

Re: Not able to open VLC over HDMI

Postby fred44nl » 18 Nov 2018 14:28

Keep me updated on your issue. ;)
the option "--avcodec-hw=vaapi" doesn't do any good.
this is what comes in Terminal, not just a few lines, but it goes on and on
VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332)
[00005564437f11a0] main libvlc: Vlc draait met de standaardinterface. Gebruik 'cvlc' om vlc zonder interface te gebruiken.
[00005564438d24b0] [http] lua interface: Lua HTTP interface
[00007f0914000980] main input error: unsafe option "recursive" has been ignored for security reasons
[00007f08e00009e0] main input error: unsafe option "recursive" has been ignored for security reasons
[00005564438a0b60] main audio output error: too low audio sample frequency (0)
[00007f08d81312a0] main decoder error: failed to create audio output
[00005564438a0b60] vlcpulse audio output error: digital pass-through stream connection failure: Niet ondersteund
[00005564438a0b60] main audio output error: module not functional
[00007f08d81312a0] main decoder error: failed to create audio output
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
[00007f08d80812f0] avcodec decoder: Using Intel i965 driver for Intel(R) Broxton - 1.7.3 for hardware decoding
[00007f08b80292b0] blend blend error: no matching alpha blending routine (chroma: YUVA -> VAOP)
[00007f08b80292b0] main blend error: blending YUVA to VAOP failed
[00007f08b80292b0] blend blend error: no matching alpha blending routine (chroma: YUVA -> VAOP)
[00007f08b80292b0] main blend error: blending YUVA to VAOP failed
[00007f08b80292b0] blend blend error: no matching alpha blending routine (chroma: YUVA -> VAOP)
[00007f08b80292b0] main blend error: blending YUVA to VAOP failed
[00007f08b80292b0] blend blend error: no matching alpha blending routine (chroma: YUVA -> VAOP)
[00007f08b80292b0] main blend error: blending YUVA to VAOP failed
[00007f08b80292b0] blend blend error: no matching alpha blending routine (chroma: YUVA -> VAOP)
[00007f08b80292b0] main blend error: blending YUVA to VAOP failed
note: when I turn on hardware-decoding in the settings of VLC, it is not possible to play anything.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 5 guests