Reply to topic

Video and HTML wallpaper types

Gannet
Registered Member
Posts
11
Karma
0

Re: Video and HTML wallpaper types

Wed Mar 07, 2018 10:51 pm
I meant 1.

I added to the end of the Main.qml:
Code: Select all
 Timer {
        interval: 1000; running: true
        onTriggered: {
            root.grabToImage(function(image) {
                image.saveToFile("/usr/share/sddm/themes/breeze-video/preview.png");
            });
        }
    }
without creating a 'previewtest' directory .
And in metadata.desktop also is:
Code: Select all
Screenshot=preview.png
Then:
Code: Select all
/usr/share/sddm/themes/breeze-video$ sudo chmod 666 preview.png
and it works - generating a preview after first greeter running! :o
Image

Thank you very much! Nice.

And the last thing, I just didn't understood: how to edit Main.qml to get gapless playback?
User avatar Rog131
Registered Member
Posts
828
Karma
10

Re: Video and HTML wallpaper types

Thu Mar 08, 2018 5:18 am
Gannet wrote:...And the last thing, I just didn't understood: how to edit Main.qml to get gapless playback?


A Qt bug - Add support for gap less playback: https://bugreports.qt.io/browse/QTBUG-49446

You could try to hide the gap by using two players - earlier: viewtopic.php?f=289&t=131783&start=15#p365313
Gannet
Registered Member
Posts
11
Karma
0

Re: Video and HTML wallpaper types

Thu Mar 08, 2018 1:41 pm
The thing is MediPlayer section in my Main.qml is differs with the one from your link.
Mine:
Code: Select all
MediaPlayer {
        id: mediaplayer
        autoPlay: true
        loops: MediaPlayer.Infinite
        source: config.background
    }

    VideoOutput {
        fillMode: VideoOutput.PreserveAspectCrop
        anchors.fill: parent
        source: mediaplayer
    }

From you link:
Code: Select all
Item {
    MediaPlayer {
        id: preview
        autoPlay: true
        muted: true
        onPositionChanged: { preview.pause() }
        source: wallpaper.configuration.Video
    }

    VideoOutput {
        anchors.fill: parent
        source: preview
    }


So do I need to replace mine with the one from your link or I just need to double the MediaPlayer section as in my Main.qml?

Thanks.
User avatar Rog131
Registered Member
Posts
828
Karma
10

Re: Video and HTML wallpaper types

Thu Mar 08, 2018 6:00 pm
Gannet wrote:
...So do I need to replace mine with the one from your link or I just need to double the MediaPlayer section as in my Main.qml?


You just need two players: The first is paused...

Code: Select all
onPositionChanged: { pause() }


- Position: http://doc.qt.io/qt-5/qml-qtmultimedia- ... ition-prop
- Pause: http://doc.qt.io/qt-5/qml-qtmultimedia- ... use-method

and the second is playing.

When the second player is playing you only see it.

Image

When the second player is reloading you will see the first player paused image.

Image

This works IF the reload time is short enough. Hmm - Maybe a bit better workaround(*) would be to use two players which are playing in turns.

(*) These are only workarounds - the fix need to be done in the Qt.

There is the QtAV: https://github.com/wang-bin/QtAV but issue tracker has: Seamless loop #321: https://github.com/wang-bin/QtAV/issues/321
User avatar Rog131
Registered Member
Posts
828
Karma
10

Re: Video and HTML wallpaper types

Wed Mar 14, 2018 3:48 pm
'Hmm - Maybe a bit better workaround would be to use two players which are playing in turns.'

Implemented in SDDM Theme Breeze Slider 2: https://store.kde.org/p/1222217/

.../breeze-slider2/Video/DoublePlayer.qml

Preview clip: From Breeze Slider 2 SDDM theme to Breeze Custom Lock.mp4 - https://youtu.be/rCDBdGe8va0

Image
Full image:https://imgur.com/zNVecy3

Clip is using:
- Breeze Slider 2 SDDM theme: https://store.kde.org/p/1222217/
- ImageSplash: https://store.kde.org/p/1173958/
- Video wallpaper: https://store.kde.org/p/1213488/
- Breeze Custom Lock Screen: https://store.kde.org/p/1216681/
HepoH
Registered Member
Posts
1
Karma
0

Re: Video and HTML wallpaper types

Thu Jul 05, 2018 7:24 am
Hello everybody.
Is there a way to render wallpapers with gpu instead of cpu? If rendering is done by an external player, I would prefer to choose mpc-qt, which can render video by gpu.
Is there a way to auto-change the playlists? I tried to create 2 playlists and rename the one I want to play to the name specified in the settings, but it seems I still need something to restart. I want to play one playlist on a daytime and another one on a nighttime.
User avatar Rog131
Registered Member
Posts
828
Karma
10

Re: Video and HTML wallpaper types

Thu Jul 05, 2018 4:51 pm
HepoH wrote:Hello everybody.
Is there a way to render wallpapers with gpu instead of cpu? If rendering is done by an external player, I would prefer to choose mpc-qt, which can render video by gpu.


You could try with a script wallpaper. A recent example from the KDE Forums: viewtopic.php?f=309&t=150998

HepoH wrote:Is there a way to auto-change the playlists? I tried to create 2 playlists and rename the one I want to play to the name specified in the settings, but it seems I still need something to restart. I want to play one playlist on a daytime and another one on a nighttime.


If you are referencing https://store.kde.org/p/1213489/ and it's playlist then you could:

1) The Plasma desktop is reading the settings (playlist) when the plasmashell is starting or when the user is changing the playlist from the ui. So the drill is: Rename the playlist - Stop the plasmashell (kquitapp5 plasmashell) -Restart the plasmashell (plasmashell &).

2) or you could use the symlinks in the playlist and change the symlink target files on the fly.

3) or you could edit the Video playlist plugin Qml code to do the change.
linuxfluesterer
Registered Member
Posts
7
Karma
0

Re: Video and HTML wallpaper types

Mon Jul 23, 2018 4:56 pm
Hallo guys.
Some time ago I started this topic https://forum.kde.org/viewtopic.php?f=67&t=151301
At this time I used Sabayon OS and due to the great help, I succeeded.
Now, I'm switching to Gentoo OS, the mother of Sabayon. Here I have
- an Intel core i7 7700t with 2.9 GHertz
- 8 GBytes of DDR4-Ram
- a 240 GByte SSD with now 210 GBytes free
- an emerged Gentoo
- a Plasma, version 5.13.3

And I want to repeat the VideoWallpapers success on Sabayon before (I still have this pc) on my new system.
But here, after following each step in the thread above, when I pull a video into the new window, created by qt,
the preview screen is black and the length of the video I chose, is 00:00 - 00:00.
I installed several gst-plugins, such as gst-plugins-base, gst-plugins-good, gst-plugins-bad, gst-plugins-ugly, gst-plugins-libav and finally, gst-plugins-meta.
Some are of version 0.10.31-r2 some are of version 1.14.1.
When I start a testing for a login Video wallpaper with a konsole command, I receive the following error:
Code: Select all
/usr/lib/libexec/kscreenlocker_greet --testing
OpenGL vendor string:                   Intel Open Source Technology Center
OpenGL renderer string:                 Mesa DRI Intel(R) HD Graphics 630 (Kaby Lake GT2)
OpenGL version string:                  3.0 Mesa 17.3.9
OpenGL shading language version string: 1.30
Driver:                                 Intel
GPU class:                              Unknown
OpenGL version:                         3.0
GLSL version:                           1.30
Mesa version:                           17.3.9
Linux kernel version:                   4.17.8
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
Locked at 1532297309
UdevQt: unable to create udev monitor connection
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
Could not create AF_NETLINK socket (Die Operation ist nicht erlaubt)
Could not create AF_NETLINK socket (Die Operation ist nicht erlaubt)
Could not create AF_NETLINK socket (Die Operation ist nicht erlaubt)
Could not create AF_NETLINK socket (Die Operation ist nicht erlaubt)
Could not create AF_NETLINK socket (Die Operation ist nicht erlaubt)
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"


So, what can I do, pls? Do I need all plugins in the same version, or is there any package missing (I haven't emerged yet) on Gentoo?

Thank you very much in advance.

-Linuxfluesterer (I love KDE...)
User avatar Rog131
Registered Member
Posts
828
Karma
10

Re: Video and HTML wallpaper types

Tue Jul 24, 2018 3:59 pm
linuxfluesterer wrote:Hallo guys.
Some time ago I started this topic https://forum.kde.org/viewtopic.php?f=67&t=151301
At this time I used Sabayon OS and due to the great help, I succeeded.
Now, I'm switching to Gentoo OS, the mother of Sabayon. Here I have
- an Intel core i7 7700t with 2.9 GHertz
- 8 GBytes of DDR4-Ram
- a 240 GByte SSD with now 210 GBytes free
- an emerged Gentoo
- a Plasma, version 5.13.3

And I want to repeat the VideoWallpapers success on Sabayon before (I still have this pc) on my new system.
But here, after following each step in the thread above, when I pull a video into the new window, created by qt,
the preview screen is black and the length of the video I chose, is 00:00 - 00:00.
I installed several gst-plugins, such as gst-plugins-base, gst-plugins-good, gst-plugins-bad, gst-plugins-ugly, gst-plugins-libav and finally, gst-plugins-meta.
Some are of version 0.10.31-r2 some are of version 1.14.1.
When I start a testing for a login Video wallpaper with a konsole command, I receive the following error:
Code: Select all
/usr/lib/libexec/kscreenlocker_greet --testing
OpenGL vendor string:                   Intel Open Source Technology Center
OpenGL renderer string:                 Mesa DRI Intel(R) HD Graphics 630 (Kaby Lake GT2)
OpenGL version string:                  3.0 Mesa 17.3.9
OpenGL shading language version string: 1.30
Driver:                                 Intel
GPU class:                              Unknown
OpenGL version:                         3.0
GLSL version:                           1.30
Mesa version:                           17.3.9
Linux kernel version:                   4.17.8
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
Locked at 1532297309
UdevQt: unable to create udev monitor connection
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
Could not create AF_NETLINK socket (Die Operation ist nicht erlaubt)
Could not create AF_NETLINK socket (Die Operation ist nicht erlaubt)
Could not create AF_NETLINK socket (Die Operation ist nicht erlaubt)
Could not create AF_NETLINK socket (Die Operation ist nicht erlaubt)
Could not create AF_NETLINK socket (Die Operation ist nicht erlaubt)
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"


So, what can I do, pls? Do I need all plugins in the same version, or is there any package missing (I haven't emerged yet) on Gentoo?

Thank you very much in advance.

-Linuxfluesterer (I love KDE...)



It would be a good idea to have same version of the plugins. There should be the 1.14.1:
- https://packages.gentoo.org/packages/media-plugins/gst-plugins-meta
- https://packages.gentoo.org/packages/media-libs/gst-plugins-base
- https://packages.gentoo.org/packages/media-plugins/gst-plugins-libav
- https://packages.gentoo.org/packages/media-libs/gst-plugins-good
- https://packages.gentoo.org/packages/media-libs/gst-plugins-bad
- https://packages.gentoo.org/packages/media-libs/gst-plugins-ugly

When searching with the: "gentoo no service found for - "org.qt-project.qt.mediaplayer"" - https://forums.gentoo.org/viewtopic-t-1 ... art-0.html
Yczo:

Solved!

reinstalling qmultimedia with gstreamer flag and installing the media-plugins/gst-plugins-libav plugin



More of the GStreamer: https://gstreamer.freedesktop.org
- Installing GStreamer: https://gstreamer.freedesktop.org/docum ... index.html
- List of Elements and Plugins: https://gstreamer.freedesktop.org/docum ... ugins.html
linuxfluesterer
Registered Member
Posts
7
Karma
0

Re: Video and HTML wallpaper types

Tue Jul 24, 2018 6:59 pm
Rog131 wrote:
reinstalling qmultimedia with gstreamer flag and installing the media-plugins/gst-plugins-libav plugin


Thank you very much. Emerging =qtmultimedia-5.with USE flag "gstreamer"
Code: Select all
USE="gstreamer" emerge -a =qtmultimedia-5.11.1

did the trick. I had to reboot, then I chose 'Video Wallpaper' as background type and just saw a still frame of 'big buck bunny'.
Great help!
The gst-plugins I knew already from earlier post and installed them all (and more) already on Gentoo. But I was / I am not sure, how the different versions may effect.

-Linuxfluesterer (I love KDE...)
User avatar MirceaKitsune
Registered Member
Posts
271
Karma
0
OS

Re: Video and HTML wallpaper types

Fri Jul 26, 2019 2:36 pm
Figured I should bump this thread and let folks know: I created my own video wallpaper plugin, inspired by Genjix's script though I pretty much rewrote the whole thing. It uses the builtin Qt MediaPlayer object. I added a few extra settings and improvements, it should be as simple and efficient as it gets.

https://www.pling.com/p/1316120

My recommendation would be for the Plasma team to include this as a part of KDE, making any necessary modifications and improvements; It's a very clean and simple piece of qml, while the feature is something many people would like... it makes sense to include it with the desktop in my opinion.

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], DeathTBO, Google [Bot], hbalk, msdobrescu, rwayland, Samiur, sarar, Sogou [Bot]