Re: [Development] [QtMultimedia] How to make to use a HW codecs by QML media player on Linux?

2016-05-24 Thread Denis Shienkov

> Gstreamer 1.0+ goes some way to addressing these issues

The Apalis T30 board has GPU from the NVidia. So, when I use 
'gst-inspect' I see some of 'nv' sinks.


So, as I understand, the easy ways to do it are:

1) I should try to use GStreamer 1.0 (instead of 0.10) "as is" with QtMM 
(rebuild QtMM with this GStreamer), at first stage.


2) I need try to change QtMM sources and try to set the specific 
vendor-video sinks there, at second stage... (in case the first stage 
does not work).


Is it?

BTW: As I remember, I saw some environment variable which allows to 
setup custom video sink... I need to see sources of QtMM... if I'm not 
mistaked..

maybe it will help...

> but even within the standard packages there still seems to be 
multiple APIs for codecs which produce EGL surfaces and none of them 
have been utilized in QtMultimedia yet


Could you please provide an examples of this API which is not adopted in 
QtMM?




BR,
Denis
///

/
25.05.2016 4:44, Andrew den Exter пишет:
The short answer is some amount of platform adaptation will be 
required to enable hardware acceleration on your board.  Looking at 
the page you linked to; that adaptation might be achieved by creating 
an implementation of QGstBufferPoolPlugin (gstreamer 0.10 only) which 
exposes EGL surfaces associated with the x-nv-yuv buffers produced by 
the accelerated codec.  Or you might also need to create your own 
video node by implementing QSGVideoNodeFactoryPlugin or something more 
invasive may be required, it really depends on how the vendor 
implemented their gstreamer plugins


The reason hardware acceleration doesn't just work is that hardware 
vendors have traditionally had to create extensions to gstreamer in 
order to implement their hardware accelerated plugins, and these 
extensions tend to require a vendor specific video sink to work.  If 
all you care about is rendering to the full dimensions of a native 
window then autovideosink will generally resolve to that vendor 
specific video sink and that's why the standard example command line 
examples tend to work.  But when it comes to something more 
complicated like compositing into an opengl scene or even as simple as 
rendering to a sub rect of a window then you're into the realm of 
vendor extensions and without a port to your specific hardware it 
probably won't work.  Gstreamer 1.0+ goes some way to addressing these 
issues, but even within the standard packages there still seems to be 
multiple APIs for codecs which produce EGL surfaces and none of them 
have been utilized in QtMultimedia yet.



Andrew


On Wed, May 25, 2016 at 12:40 AM, Denis Shienkov 
> wrote:


Hi all.

I have the Toradex (Apalis T30) embedded board:
https://www.toradex.com/computer-on-modules/apalis-arm-family/nvidia-tegra-3

which has:

http://developer.toradex.com/files/toradex-dev/uploads/media/Colibri/Linux/Images/Apalis_T30_LinuxImageV2.6Beta1_20160331.tar.bz2

Linux Image, with the GStreamer 0.10.

Also I have compiled Qt 5.6 and installed it to the board.

When I try to play any *.MP4 video file from the QML Video item:
http://doc.qt.io/qt-5/qml-qtmultimedia-video.html

I see, that my video has very-very lags, and I see (with htop
utility) that CPU loading is ~300% (
three cores running on ~100%).

But, when I try to play the video, using the 'nvgstplayer'
utility, I see that CPU loading is ~46% and all fine. Seems, the
QML player loads the SW codecs instead of HW codecs...

Is there are any way to say to QML player to use a HW codecs? Or,
maybe, I need to fix a sources of QtMM (where I need to change
it?) Or, maybe, is there are another way to do this?

Otherwise, is just a **HELL** and there is no sense in QML
QtMultimedia at all (But I need QML for anumations). And I do not
know, how to fix it (I'm not expert in GStreamer).

PS: I have tried the 'gst-launch' pipelines instead of
'nvgstplayer', as described here:
http://developer.toradex.com/knowledge-base/video-playback-%28linux%29
but it crashes with sigsegv

BR,
Denis







___
Development mailing list
Development@qt-project.org 
http://lists.qt-project.org/mailman/listinfo/development




___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] [QtMultimedia] How to make to use a HW codecs by QML media player on Linux?

2016-05-24 Thread Andrew den Exter
The short answer is some amount of platform adaptation will be required to
enable hardware acceleration on your board.  Looking at the page you linked
to; that adaptation might be achieved by creating an implementation
of QGstBufferPoolPlugin (gstreamer 0.10 only) which exposes EGL surfaces
associated with the x-nv-yuv buffers produced by the accelerated codec.  Or
you might also need to create your own video node by implementing
QSGVideoNodeFactoryPlugin or
something more invasive may be required, it really depends on how the
vendor implemented their gstreamer plugins

The reason hardware acceleration doesn't just work is that hardware vendors
have traditionally had to create extensions to gstreamer in order to
implement their hardware accelerated plugins, and these extensions tend to
require a vendor specific video sink to work.  If all you care about is
rendering to the full dimensions of a native window then autovideosink will
generally resolve to that vendor specific video sink and that's why the
standard example command line examples tend to work.  But when it comes to
something more complicated like compositing into an opengl scene or even as
simple as rendering to a sub rect of a window then you're into the realm of
vendor extensions and without a port to your specific hardware it probably
won't work.  Gstreamer 1.0+ goes some way to addressing these issues, but
even within the standard packages there still seems to be multiple APIs for
codecs which produce EGL surfaces and none of them have been utilized in
QtMultimedia yet.


Andrew


On Wed, May 25, 2016 at 12:40 AM, Denis Shienkov 
wrote:

> Hi all.
>
> I have the Toradex (Apalis T30) embedded board:
>
> https://www.toradex.com/computer-on-modules/apalis-arm-family/nvidia-tegra-3
>
> which has:
>
> http://developer.toradex.com/files/toradex-dev/uploads/media/Colibri/Linux/Images/Apalis_T30_LinuxImageV2.6Beta1_20160331.tar.bz2
>
> Linux Image, with the GStreamer 0.10.
>
> Also I have compiled Qt 5.6 and installed it to the board.
>
> When I try to play any *.MP4 video file from the QML Video item:
> http://doc.qt.io/qt-5/qml-qtmultimedia-video.html
>
> I see, that my video has very-very lags, and I see (with htop utility)
> that CPU loading is ~300% (
> three cores running on ~100%).
>
> But, when I try to play the video, using the 'nvgstplayer' utility, I see
> that CPU loading is ~46% and all fine. Seems, the QML player loads the SW
> codecs instead of HW codecs...
>
> Is there are any way to say to QML player to use a HW codecs? Or, maybe, I
> need to fix a sources of QtMM (where I need to change it?) Or, maybe, is
> there are another way to do this?
>
> Otherwise, is just a **HELL** and there is no sense in QML QtMultimedia at
> all (But I need QML for anumations). And I do not know, how to fix it (I'm
> not expert in GStreamer).
>
> PS: I have tried the 'gst-launch' pipelines instead of 'nvgstplayer', as
> described here:
> http://developer.toradex.com/knowledge-base/video-playback-%28linux%29
> but it crashes with sigsegv
>
> BR,
> Denis
>
>
>
>
>
>
>
> ___
> Development mailing list
> Development@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>
>
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Qt 5.7.0 change files

2016-05-24 Thread Thiago Macieira
Em terça-feira, 24 de maio de 2016, às 10:50:13 PDT, Jani Heikkinen escreveu:
> I and Antti have now done initial change files for every qt submodule (if
> not already available). Maintaitainers: Please take those over & modify
> files properly and add missing data.  We just ran
> 
> Create_changelog.pl ../ v5.6.0...HEAD

Do we plan on releasing v5.7.0 before v5.6.1 or not?

If so, then the above is fine. If we release v5.6.1 first, please use the 5.6.1 
branch on the left of ..

> + added some default data there so most probably those need some actions (at
> least +2) from you

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


[Development] QApplication::setWindowIconFromTheme()?

2016-05-24 Thread René J . V . Bertin
Hello,

I'm seeing lots of cross-platform code that does things like

qApp->setWindowIcon(QIcon::fromTheme(QStringLiteral("foo")))

which works fine on platforms where fromTheme() has actual icon themes in its 
search path. On platforms where the application icon is set statically (OS X, 
MS Windows) and where applications do not have icon theme seach paths by 
default, this will more often than not lead to a runtime disposal of the 
application icon. On OS X, such applications show up with a generic icon in the 
Dock and app switcher.

Would it be possible to discuss the addition of a convenience method as shown 
below?

void QApplication::setWindowIconFromTheme(QString )
{
setWindowIcon(QIcon::fromTheme(name, windowIcon()));
}

R
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


[Development] [QtMultimedia] How to make to use a HW codecs by QML media player on Linux?

2016-05-24 Thread Denis Shienkov
Hi all.

I have the Toradex (Apalis T30) embedded board:
https://www.toradex.com/computer-on-modules/apalis-arm-family/nvidia-tegra-3

which has:
http://developer.toradex.com/files/toradex-dev/uploads/media/Colibri/Linux/Images/Apalis_T30_LinuxImageV2.6Beta1_20160331.tar.bz2

Linux Image, with the GStreamer 0.10.

Also I have compiled Qt 5.6 and installed it to the board.

When I try to play any *.MP4 video file from the QML Video item:
http://doc.qt.io/qt-5/qml-qtmultimedia-video.html

I see, that my video has very-very lags, and I see (with htop utility) that
CPU loading is ~300% (
three cores running on ~100%).

But, when I try to play the video, using the 'nvgstplayer' utility, I see
that CPU loading is ~46% and all fine. Seems, the QML player loads the SW
codecs instead of HW codecs...

Is there are any way to say to QML player to use a HW codecs? Or, maybe, I
need to fix a sources of QtMM (where I need to change it?) Or, maybe, is
there are another way to do this?

Otherwise, is just a **HELL** and there is no sense in QML QtMultimedia at
all (But I need QML for anumations). And I do not know, how to fix it (I'm
not expert in GStreamer).

PS: I have tried the 'gst-launch' pipelines instead of 'nvgstplayer', as
described here:
http://developer.toradex.com/knowledge-base/video-playback-%28linux%29
but it crashes with sigsegv

BR,
Denis
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Qt 5.7.0 change files

2016-05-24 Thread Jani Heikkinen
There are WIP changes for those in codereview, in '5.7.0' branch

Br,
Jani

>>-Original Message-
>>From: Olivier Goffart [mailto:oliv...@woboq.com]
>>Sent: 24. toukokuuta 2016 15:40
>>To: development@qt-project.org
>>Cc: Jani Heikkinen 
>>Subject: Re: [Development] Qt 5.7.0 change files
>>
>>On Dienstag, 24. Mai 2016 10:50:13 CEST Jani Heikkinen wrote:
>>> I and Antti have now done initial change files for every qt submodule (if
>>> not already available). Maintaitainers: Please take those over & modify
>>> files properly and add missing data.
>>
>>Where can we find them? (so we can manually add missing entries)
>>
>>> We just ran
>>>
>>> Create_changelog.pl ../ v5.6.0...HEAD
>>
>>Does this includes all the changes that are meant for 5.6.x? Are they supposed
>>to be in the 5.7.0 ChangeLog?
>>
>>--
>>Olivier
>>
>>Woboq - Qt services and support - https://woboq.com -
>>https://code.woboq.org
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] Qt 5.7.0 change files

2016-05-24 Thread Olivier Goffart
On Dienstag, 24. Mai 2016 10:50:13 CEST Jani Heikkinen wrote:
> I and Antti have now done initial change files for every qt submodule (if
> not already available). Maintaitainers: Please take those over & modify
> files properly and add missing data.  

Where can we find them? (so we can manually add missing entries)

> We just ran
> 
> Create_changelog.pl ../ v5.6.0...HEAD

Does this includes all the changes that are meant for 5.6.x? Are they supposed 
to be in the 5.7.0 ChangeLog?

-- 
Olivier

Woboq - Qt services and support - https://woboq.com - https://code.woboq.org
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


[Development] Qt 5.7.0 change files

2016-05-24 Thread Jani Heikkinen
I and Antti have now done initial change files for every qt submodule (if not 
already available). Maintaitainers: Please take those over & modify files 
properly and add missing data.  We just ran

Create_changelog.pl ../ v5.6.0...HEAD

+ added some default data there so most probably those need some actions (at 
least +2) from you



br,

Jani


Jani Heikkinen
Release Manager

The Qt Company
Elektroniikkatie 13
90590 Oulu Finland
jani.heikki...@qt.io
+358 50 4873735
http://qt.io


[http://s3-eu-west-1.amazonaws.com/qt-files/logos/qt_logo_with_text_green_rgb_400x141.png]
[http://s3-eu-west-1.amazonaws.com/qt-files/logos/SoMe/qt_facebook.png]
 [http://s3-eu-west-1.amazonaws.com/qt-files/logos/SoMe/qt_twitter.png] 
   
[http://s3-eu-west-1.amazonaws.com/qt-files/logos/SoMe/qt_linkedin.png] 
  
[http://s3-eu-west-1.amazonaws.com/qt-files/logos/SoMe/qt_googleplus.png] 
   
[http://s3-eu-west-1.amazonaws.com/qt-files/logos/SoMe/qt_youtube.png] 


___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development


Re: [Development] [Releasing] HEADS UP: Qt 5.7.0 branching ongoing

2016-05-24 Thread Tuukka Turunen


> -Original Message-
> From: Development [mailto:development-
> bounces+tuukka.turunen=qt...@qt-project.org] On Behalf Of Oswald
> Buddenhagen
> Sent: maanantaina 23. toukokuuta 2016 13.15
> To: development@qt-project.org
> Subject: Re: [Development] [Releasing] HEADS UP: Qt 5.7.0 branching
> ongoing
> 
> On Sat, May 21, 2016 at 01:41:55PM +0200, Ralf Nolden wrote:
> > I don't want to raise more workload, however, I would like to have
> >
> > https://codereview.qt-project.org/#/c/159318/
> >
> > merged into 5.6.1 and 5.7.0 if at all possible.
> >
> nope. we don't cherry-pick except in exceptional cases.
> 

Now that we have branched, it is important to target the changes one desires to 
have in Qt 5.7.0 into the 5.7.0 branch (together with the release team). 
Changes merged into 5.7 branch will be part of 5.7.1 (and Qt 5.8.0 eventually). 
Similarly, anything needed in Qt 5.6.1 release has to go into the 5.6.1 branch 
(together with the release team, and getting very late now to make any 
changes). Things merged now into 5.6 will be released in Qt 5.6.2, 5.7.1 and 
5.8.0 as we are always merging bug fixes upwards.

And remember that we are close to the release, no nice-to-have fixes can go in 
- otherwise we have too high risk of something unexpected happening and miss 
the planned release time.

Yours,

Tuukka


> > Without the patch, no BSD system is actually able to execute any Qt
> > binaries
> >
> that's too bad, but no bsd system is officially part of the supported 
> platforms
> (unless you count apple as bsd ...), so any issues related to it cannot be
> release critical by definition.
> 
> ___
> Development mailing list
> Development@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
___
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development