aerial-sddm-theme icon indicating copy to clipboard operation
aerial-sddm-theme copied to clipboard

GStreamer; Unable to play

Open NikEyX opened this issue 2 years ago • 13 comments

Hi, I have a problem with the theme. Not sure what changed, but it doesn't seem to play the videos anymore on my Arch installation. Looking at journalctl it seemed that this is a resolve error, probably due to the fact that the internet is not connected yet when sddm runs:

Oct 17 13:08:28 local sddm-greeter[886]: Error: "Could not resolve server name."
Oct 17 13:08:28 local sddm-greeter[886]: Error: "Could not resolve server name."
Oct 17 13:08:28 local sddm-greeter[886]: Error: "Could not resolve server name."
Oct 17 13:08:28 local sddm-greeter[886]: GStreamer; Unable to pause - "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/b5-2.mov"
Oct 17 13:08:28 local sddm-greeter[886]: GStreamer; Unable to pause - "http://sylvan.apple.com/Aerials/2x/Videos/DB_D008_C010_2K_SDR_HEVC.mov"
....

So instead I downloaded all the videos and am trying to play them offline, but this now fails in a different way:

Oct 17 12:47:04 local sddm-greeter[885]: GStreamer; Unable to play - "file:///home/xxx/videos/aerial-videos/DB_D008_C010_2K_SDR_HEVC.mov"
Oct 17 12:47:04 local sddm-greeter[885]: GStreamer; Unable to pause - "file:///home/xxx/videos/aerial-videos/DB_D008_C010_2K_SDR_HEVC.mov"
Oct 17 12:47:04 local sddm-greeter[885]: Error: "Could not open file \"/home/xxx/videos/aerial-videos/DB_D001_C001_2K_SDR_HEVC.mov\" for reading."
Oct 17 12:47:04 local sddm-greeter[885]: GStreamer; Unable to pause - "file:///home/xxx/videos/aerial-videos/GL_G004_C010_2K_SDR_HEVC.mov"
Oct 17 12:47:04 local sddm-greeter[885]: Error: "Could not open file \"/home/xxx/videos/aerial-videos/b4-1.mov\" for reading."
Oct 17 12:47:04 local sddm-greeter[885]: GStreamer; Unable to pause - "file:///home/xxx/videos/aerial-videos/b7-2.mov"
...

...Which is odd, because the file paths are correct and clicking them opens the media player and plays the video. Running sddm-greeter --test-mode --theme /usr/share/sddm/themes/aerial-sddm-theme/ also works flawlessly and shows the videos. So this only happens at startup, not while testing. This makes it hard to debug because I have to restart my PC every time.

Do you have any idea what could cause this?

NikEyX avatar Oct 17 '21 17:10 NikEyX

Hi there, I haven't used this in a while but it doesn't work for me either on Kubuntu... I have no clue what might be causing this since it works in testing mode. When did it stopped working for you ? Could you retrace it back to some package update or something ?

3ximus avatar Oct 18 '21 14:10 3ximus

It stopped working about 11 months ago - but cannot tell you the exact date. A shame this doesn't work anymore, it was such a good greeter!

NikEyX avatar Oct 18 '21 16:10 NikEyX

Hum, sddm did get an update about 11 months ago https://github.com/sddm/sddm/releases Could be related to that... I might test it later if rolling back to a previous sddm version fixes the issue. If you do that too please let me know how it goes for you

3ximus avatar Oct 18 '21 17:10 3ximus

I downgraded to 0.18.0 of SDDM and rebooted - that didn't fix it. It's probably some change in QT or a bigger encompassing package. Too tedious to downgrade every single one of them. Really a shame.

On Mon, Oct 18, 2021 at 1:04 PM Fabio @.***> wrote:

Hum, sddm did get an update about 11 months ago https://github.com/sddm/sddm/releases Could be related to that... I might test it later if rolling back to a previous sddm version fixes the issue. If you do that to please let me know how it goes for you

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/3ximus/aerial-sddm-theme/issues/33#issuecomment-945979287, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRE4CSYRWLSIHOWUQPX4QLUHRHRZANCNFSM5GFBA7DQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

NikEyX avatar Oct 18 '21 20:10 NikEyX

Oh well... That sucks. Yeah idk if I have the patience to see what can be done... Thanks for checking anyway Cheers

3ximus avatar Oct 18 '21 21:10 3ximus

There are still people starring this repo though, so it must be working for them...

3ximus avatar Oct 19 '21 13:10 3ximus

ok I fixed it on my end by copying all the videos manually into the theme folder (I made a new sub-folder called videos) and created a new playlist that would reference these videos. Now it works. It doesn't work if the videos are on a different drive. My guess is that's either sudo related, or load-order dependent (my original drive might not be mounted / available at the point in time when sddm is trying to load the video).

Note that this still doesn't fix the outright "loading from web" - that's still broken, so this is just a temp fix.

NikEyX avatar Oct 23 '21 00:10 NikEyX

Ok thanks for letting me know 👍

On Fri, 22 Oct 2021 at 20:22, NikEyX @.***> wrote:

ok I fixed it on my end by copying all the videos manually into the theme folder (I made a new sub-folder called videos) and created a new playlist that would reference these videos. Now it works. It doesn't work if the videos are on a different drive. My guess is that's either sudo related, or load-order dependent (my original drive might not be mounted / available at the point in time when sddm is trying to load the video).

Note that this still doesn't fix the outright "loading from web" - that's still broken, so this is just a temp fix.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/3ximus/aerial-sddm-theme/issues/33#issuecomment-950025229, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFJRBFM3SYA4GHX5VSZRPLUIH53VANCNFSM5GFBA7DQ .

3ximus avatar Oct 23 '21 19:10 3ximus

Hi, I've encountered same issue when porting this package into Guix.

In the console I do see same issue:

sddm-greeter --test-mode --theme /gnu/store/mh04r6fh0i57vf0zpsdn4i8284qd473k-aerial-sddm-theme-0.1-pre-1.218199a/share/sddm/themes/aerial/
[16:41:15.085] (II) GREETER: High-DPI autoscaling not Enabled
[16:41:15.087] (WW) GREETER: Could not find the Qt platform plugin "wayland" in ""
[16:41:15.095] (II) GREETER: Reading from "/run/current-system/profile/share/wayland-sessions/sway.desktop"
[16:41:15.095] (II) GREETER: Reading from "/run/current-system/profile/share/xsessions/i3-with-shmlog.desktop"
[16:41:15.095] (II) GREETER: Reading from "/run/current-system/profile/share/xsessions/i3.desktop"
[16:41:15.096] (II) GREETER: Loading theme configuration from "/gnu/store/mh04r6fh0i57vf0zpsdn4i8284qd473k-aerial-sddm-theme-0.1-pre-1.218199a/share/sddm/themes/aerial//theme.conf"
[16:41:15.101] (EE) GREETER: Socket error:  "QLocalSocket::connectToServer: Invalid name"
[16:41:15.101] (WW) GREETER: QFont::fromString: Invalid description '(empty)'
[16:41:15.114] (II) GREETER: Loading file:///gnu/store/mh04r6fh0i57vf0zpsdn4i8284qd473k-aerial-sddm-theme-0.1-pre-1.218199a/share/sddm/themes/aerial//Main.qml...
[16:41:15.322] (WW) GREETER: file:///gnu/store/mh04r6fh0i57vf0zpsdn4i8284qd473k-aerial-sddm-theme-0.1-pre-1.218199a/share/sddm/themes/aerial//Main.qml:439:17: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[16:41:15.383] (WW) GREETER: file:///gnu/store/mh04r6fh0i57vf0zpsdn4i8284qd473k-aerial-sddm-theme-0.1-pre-1.218199a/share/sddm/themes/aerial//Main.qml:22:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[16:41:15.424] (WW) GREETER: GStreamer; Unable to pause - "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/b2-1.mov"
[16:41:15.424] (WW) GREETER: GStreamer; Unable to play - "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/b2-1.mov"
[16:41:15.424] (WW) GREETER: GStreamer; Unable to play - "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/b2-1.mov"
[16:41:15.487] (WW) GREETER: GStreamer; Unable to pause - "http://sylvan.apple.com/Aerials/2x/Videos/comp_A114_C001_0305OT_v10_SDR_FINAL_22062018_SDR_2K_HEVC.mov"
[16:41:15.488] (WW) GREETER: GStreamer; Unable to play - "http://sylvan.apple.com/Aerials/2x/Videos/comp_A114_C001_0305OT_v10_SDR_FINAL_22062018_SDR_2K_HEVC.mov"
[16:41:15.491] (WW) GREETER: GStreamer; Unable to pause - "http://sylvan.apple.com/Aerials/2x/Videos/GL_G002_C002_2K_SDR_HEVC.mov"
[16:41:15.491] (WW) GREETER: GStreamer; Unable to play - "http://sylvan.apple.com/Aerials/2x/Videos/GL_G002_C002_2K_SDR_HEVC.mov"
[16:41:15.493] (II) GREETER: Adding view for "XWAYLAND0" QRect(0,0 1366x768)
[16:41:15.555] (WW) GREETER: GStreamer; Unable to pause - "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/b7-2.mov"
[16:41:15.555] (WW) GREETER: GStreamer; Unable to play - "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/b7-2.mov"
[16:41:15.555] (WW) GREETER: Error: "No URI handler implemented for \"http\"."
[16:41:15.576] (WW) GREETER: GStreamer; Unable to pause - "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/b5-2.mov"
[16:41:15.576] (WW) GREETER: GStreamer; Unable to play - "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/b5-2.mov"
[16:41:15.576] (WW) GREETER: Error: "No URI handler implemented for \"http\"."
[16:41:15.579] (WW) GREETER: GStreamer; Unable to pause - "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/b4-1.mov"
[16:41:15.579] (WW) GREETER: GStreamer; Unable to play - "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/b4-1.mov"
[16:41:15.580] (WW) GREETER: Error: "No URI handler implemented for \"http\"."
[16:41:15.592] (WW) GREETER: GStreamer; Unable to pause - "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/b4-3.mov"
[16:41:15.592] (WW) GREETER: GStreamer; Unable to play - "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/b4-3.mov"
[16:41:15.592] (WW) GREETER: Error: "No URI handler implemented for \"http\"."
[16:41:15.607] (WW) GREETER: GStreamer; Unable to pause - "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/b5-2.mov"
[16:41:15.608] (WW) GREETER: GStreamer; Unable to play - "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/b5-2.mov"
[16:41:15.608] (WW) GREETER: Error: "No URI handler implemented for \"http\"."
[16:41:15.611] (WW) GREETER: GStreamer; Unable to pause - "http://a1.v2.phobos.apple.com.edgesuite.net/us/r1000/000/Features/atv/AutumnResources/videos/b8-3.mov"

In strace output I noticed some qml files are missing Qt.qml (line 5420) and Date.qml (line 6357).

When I attempted to use the patch below I got the "TV color strips" instead of the background image. Though that is caused probably by the videotestsrc.

diff --git a/Main.qml b/Main.qml
index 58b6458..6891eec 100644
--- a/Main.qml
+++ b/Main.qml
@@ -53,6 +53,7 @@ Rectangle {
     MediaPlayer {
         id: mediaplayer1
         autoPlay: true; muted: true
+        source: "gst-pipeline: videotestsrc ! qtvideosink"
         playlist: Playlist {
             id: playlist1
             playbackMode: Playlist.Random
@@ -100,6 +101,7 @@ Rectangle {
     MediaPlayer {
         id: mediaplayer2
         autoPlay: true; muted: true
+        source: "gst-pipeline: videotestsrc ! qtvideosink"
         playlist: Playlist {
             id: playlist2; playbackMode: Playlist.Random
             //onLoaded: { mediaplayer2.play() }

FIY: On line 6366 the playlist is accessed, but I haven't found in the rest of the strace og why gstreamer does not play the video.

phodina avatar Dec 25 '21 16:12 phodina

Yeah, I haven't got a clue about this. I've tried it today and it seems to be working. I really don't know what might be the issue...

3ximus avatar Dec 26 '21 19:12 3ximus

@3ximus which distro and sddm version do you use?

phodina avatar Jan 05 '22 06:01 phodina

I have Ubuntu with Plasma (Kubuntu) and sddm version 0.19 from Ubuntu package manager

3ximus avatar Jan 06 '22 18:01 3ximus

Hi sddmers, I also unable to launch the theme. it looks like the post having same problem so I added it.

 sddm-greeter --test-mode --theme /usr/share/sddm/themes/aerial-sddm-th
eme/
[19:35:49.322] (II) GREETER: High-DPI autoscaling not Enabled
[19:35:49.332] (II) GREETER: Reading from "/usr/share/wayland-sessions/sway.desktop"
[19:35:49.332] (II) GREETER: Reading from "/usr/share/wayland-sessions/wayfire.desktop"
[19:35:49.334] (II) GREETER: Loading theme configuration from "/usr/share/sddm/themes/aerial-sddm-theme//theme.conf"
[19:35:49.337] (EE) GREETER: Socket error:  "QLocalSocket::connectToServer: Invalid name"
[19:35:49.337] (WW) GREETER: QFont::fromString: Invalid description '(empty)'
[19:35:49.364] (II) GREETER: Loading file:///usr/share/sddm/themes/aerial-sddm-theme//Main.qml...
[19:35:49.857] (WW) GREETER: file:///usr/share/sddm/themes/aerial-sddm-theme//Main.qml:439:17: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[19:35:49.867] (WW) GREETER: file:///usr/share/sddm/themes/aerial-sddm-theme//Main.qml:22:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[19:35:52.286] (II) GREETER: Adding view for "DP-1" QRect(0,0 1920x1080)
[19:35:52.293] (WW) GREETER: Wayland does not support QWindow::requestActivate()
[19:35:52.294] (II) GREETER: Loading file:///usr/share/sddm/themes/aerial-sddm-theme//Main.qml...
[19:35:52.300] (WW) GREETER: file:///usr/share/sddm/themes/aerial-sddm-theme//Main.qml:439:17: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[19:35:52.301] (WW) GREETER: file:///usr/share/sddm/themes/aerial-sddm-theme//Main.qml:22:5: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[19:35:52.307] (II) GREETER: Adding view for "HDMI-A-1" QRect(1920,0 1920x1080)
[19:35:52.352] (WW) GREETER: file:///usr/lib/qt/qml/SddmComponents/PasswordBox.qml:64:5: QML Image: Binding loop detected for property "sourceSize.width"
[19:35:52.368] (WW) GREETER: file:///usr/lib/qt/qml/SddmComponents/PasswordBox.qml:64:5: QML Image: Binding loop detected for property "sourceSize.width"
fish: Job 1, 'sddm-greeter --test-mode --them…' terminated by signal SIGSEGV (Address boundary error)

Is this error?? the window showing video though, not launching at startup. Sddm just showing default one. I am using wayfire wayland. How everyone makes this working?

Cruising0904 avatar Aug 20 '22 10:08 Cruising0904