GithubHelp home page GithubHelp logo

luisbocanegra / plasma-smart-video-wallpaper-reborn Goto Github PK

View Code? Open in Web Editor NEW
25.0 2.0 1.0 3.76 MB

Smart Video Wallpaper for KDE Plasma 6

Home Page: https://store.kde.org/p/2139746

License: GNU General Public License v2.0

QML 95.12% CMake 3.71% Shell 1.18%
blur kde kde-plasma linux-desktop live-wallpaper lockscreen plasma plasma6 video-wallpaper

plasma-smart-video-wallpaper-reborn's Issues

Per-Video Settings

I have an idea for the video list, it would be good if the videos that I add have some basic settings, in this case, loop/repeat and a loop count, there are videos that are short and when using multiple videos they do not last long, it would be great to add loop counts before switching, another way could be to set a total run time, like run each video for 2 minutes(can be adjusted) before switching then using a crossfade(would like to see this regardless of this feature) effect to smooth the transition between current and next video, another option would be to make a randomizer, it should take the list order, randomize then play it at the randomized order.

Contributing Guide

Hey this applet you made is awesome. Could you add some documentation on how to contribute? I have a similar project I have been using that is a webpage equivalent of this and I think you have a good codebase but I also really like some of the small features my current solution has and was wondering about the best way to try and incorporate code or suggestions into the project. Maybe adding a short CONTRIBUTING.md or something like that would be good, or maybe you don't mind me sharing javascript code in an issues thread. Please let me know.

hardware video acceleration for discrete graphics failed

Hi.
I'm using a PC with integrated gpu and discrete gpu (Intel UHD 770 and AMD radeon rx 6950XT), and monitor connected via discrete gpu.
I've installed the intel-media-driver and libva-mesa-driver.
I verivied them via ffmpeg cli with -vaapi_device and both of them worked (encode without error and I can obtain the progress using 'enc' or 'video' resource in amdgpu_top and intel_gpu_top)

If I keeps everything as default, the video-wallpaper plugin uses iGPU as vaapi device, and it works perfect in x11. But once I switch to wayland backend, the video decoding corruption. Looks like moving blurred screen. (Intel_cpu_top shows the plasmashell is using video)

If I set environment variables LIBVA_DRIVER_NAME=radeonsi , the video play normally in both x11 and wayland. but I see 0% in amdgpu_top.

Videos Won't Unpause

If a pause condition is triggered (e.g. window is maximised on that screen), then when the condition is no longer true, the video in question doesn't resume playback. This includes setting the condition to 'never' afterwards and clicking apply--only restarting entirely or resetting the wallpaper to some other option then back to a smart video will cause it to play normally.

sysinfo.txt

As noted, have something of the same unpausing issue running the test scripts, don't know if the debug trace will contain anything about that:
testout.txt

Black Screen on Reboot

Odd, boot-related issue here. On rebooting, both wallpapers (I have two monitors) will be black, but if I change them to some other wallpaper type and then set it back to smart wallpaper, they'll work normally--is there potentially some configuration or startup option missing?

This is after changing to gstreamer as ffmpeg as a backend seemed to be even worse about this, sometimes never starting at all regardless of how things are toggled.

sysinfo.txt

Or is it that some other dependency is oddly missing? Trying to run the test file with qml6 simply returns command not found, and replacing it with plain qml prompts a suggestion to install qt5-qtdeclarative-devel, which seems odd.

KDE crash

I can't enable the video itself because my shell will freeze and crash with a black screen completely. I deleted my video file to be able to boot again. In this logs, I switched to plain color and back (but with no video selected). I use gstreamer.

journalctl: https://pastes.dev/t4bVZsvxOK
dmesg (was too long): https://pastes.dev/MrQzajhEz5

System info:

Operating System: openSUSE Tumbleweed 20240321
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.1-1-default (64-bit)
Graphics Platform: X11
Processors: 8 ร— AMD Ryzen 5 2400G with Radeon Vega Graphics
Memory: 29.3 GiB of RAM
Graphics Processor: AMD Radeon Vega 11 Graphics
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B450M H

My video file: https://www.upload.ee/files/16434350/train-station-rainy-day-moewalls-com.mp4.html

Enable Hardware Acceleration.

The instructions for enabling hardware acceleration are unclear/insufficient. I've gone through the linked Arch Wiki, and I believe I have everything installed. Nvidia 2070 Super. (Also Fuck Nvidia) From my research enabling hardware acceleration isn't just something you do on an OS level like your instructions make it out to be (but i'm also retarded though, so maybe it is). The following instructions to enable hardware acceleration in FFMPEG and Gstreamer seemed to make sense at first, but after digging on how to do that, it appears that you don't just enable hardware acceleration in FFMPEG, but instead specify for the program to use it when you're encoding a video, for example. Honestly i'm not very familiar with FFMPEG and always use a gui wrapper. I was hoping you could make it more clear what specific underlying program is running the video, and what specific changes your end users would need to make to enable it to run on the GPU.

For me specifically i'm running Nvidia proprietary drivers on the latest Endeavour OS. (That's basically Arch, btw)

As it stands my CPU runs around 20% from KDE when video wallpaper is on.

Ps. This reimplimentation of smart video wallpaper is fucking phenomenal. the video start stop on window maximize is instant! infinitely smoother than the original that would sometimes take up to 5 seconds to restart the video. You must have done some serious code optimization. This plugin is better than the original, and smartER video wallpaper. I was very upset when I saw it wasn't ported to plasma 6 when Endeavour updated. So, seriously man... thank you. I like the interface a lot more too, and it seems simpler to use as a whole and more powerful, as well. multi video support is badass!

So again, Thanks. Seriously.

Video black screen on desktop

2024-03-17.15-54-14.mp4

This is what I get from journalctl -f:

plasmashell[3069178]: vaExportSurfaceHandle failed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.