Ubuntu 16.04

User avatar
sbenejam
Posts: 122
Joined: Sun Apr 12, 2015 6:28 pm
Real Name: Santiago Benejam Torres
Contact:

Re: Ubuntu 16.04

Post by sbenejam » Sat Jun 04, 2016 6:18 am

Results of my first attempt.
Qt5.7 compile fine without errors.
QLC+ compiled fine without errors.
QLC+ plays audio fine.
QLC+ video play shows a black screen audio plays and seems to hang, it stops playing some format.

I don't understand nothing. Maybe I'm missing some libraries. I'll try same steps in other computer soon.
;-(

User avatar
mcallegari
Posts: 1935
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Re: Ubuntu 16.04

Post by mcallegari » Sat Jun 04, 2016 3:01 pm

You are right. I get a black screen as well :(

There must be something in the QLC+ code too then, which has to be changed for Qt 5.7.
What a mess.

User avatar
mcallegari
Posts: 1935
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Re: Ubuntu 16.04

Post by mcallegari » Sat Jun 04, 2016 3:32 pm

Found it. Indeed a bug in Qt 5.7.0 that was not there in 5.6.0.

In ui/src/videoprovider.cpp, move the 5 lines block at line 181 to line 80.
This is the block:

Code: Select all

    if (m_videoWidget == NULL)
    {
        m_videoWidget = new QVideoWidget;
        m_videoWidget->setStyleSheet("background-color:black;");
        m_videoPlayer->setVideoOutput(m_videoWidget);
    }
I already created a Qt issue report: https://bugreports.qt.io/browse/QTBUG-53835

User avatar
sbenejam
Posts: 122
Joined: Sun Apr 12, 2015 6:28 pm
Real Name: Santiago Benejam Torres
Contact:

Re: Ubuntu 16.04

Post by sbenejam » Sat Jun 04, 2016 5:25 pm

Hey Massimo,
With this modification now works as expected.
;-)

User avatar
mcallegari
Posts: 1935
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Re: Ubuntu 16.04

Post by mcallegari » Sun Jun 19, 2016 8:02 am

Qt 5.7.0 has been released and it still links gstreamer 0.10.

They just don't care.... :(

User avatar
sbenejam
Posts: 122
Joined: Sun Apr 12, 2015 6:28 pm
Real Name: Santiago Benejam Torres
Contact:

Re: Ubuntu 16.04

Post by sbenejam » Mon Apr 24, 2017 5:27 pm

mcallegari wrote:
Sun Jun 19, 2016 8:02 am
Qt 5.7.0 has been released and it still links gstreamer 0.10.

They just don't care.... :(
I tested on a Xubuntu 17.04 recently installed, qt5 (5.7.1) has gst-1.0 support enabled, gst-0.1 has no packages at all.
The modification of videoprovider.cpp is still needed to play video. I not tested audio playing yet.

User avatar
mcallegari
Posts: 1935
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

Re: Ubuntu 16.04

Post by mcallegari » Tue Apr 25, 2017 12:05 pm

Thanks for reporting Santiago.

[EDIT] I've just pushed a change to detect at runtime where the video surface must be initialized. Should work with all Qt5 versions. :fingers_crossed:

User avatar
sbenejam
Posts: 122
Joined: Sun Apr 12, 2015 6:28 pm
Real Name: Santiago Benejam Torres
Contact:

Re: Ubuntu 16.04

Post by sbenejam » Tue Apr 25, 2017 6:28 pm

mcallegari wrote:
Tue Apr 25, 2017 12:05 pm
Thanks for reporting Santiago.

[EDIT] I've just pushed a change to detect at runtime where the video surface must be initialized. Should work with all Qt5 versions. :fingers_crossed:
I would test it tonight on a Xubuntu 16.04 lts on my laptop with qt5 5.8.0, maybe tomorrow I'll try it on a Xubuntu 17.04 installation with distribution default qt5 package. A couple of weeks ago I helped my niece in a small theater show. It was the first that used video playback with QLC + in production and I had no problem.

Good job Massimo. ;-)

{EDIT}: Tested on Xubuntu 16.04 with qt5 5.8.0 release from Qt. Audio an video plays as expected. Tomorrow I'll test on Xubuntu 17.04 with default qt5 version.
{EDIT}: Tested on Xubuntu 17.04 with default qt5 version on distro. Compiled fine, video playing worked as expected.

Post Reply