Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GStreamer; Unable to play #33

Open
NikEyX opened this issue Oct 17, 2021 · 13 comments
Open

GStreamer; Unable to play #33

NikEyX opened this issue Oct 17, 2021 · 13 comments

Comments

@NikEyX
Copy link

NikEyX commented Oct 17, 2021

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?

@3ximus
Copy link
Owner

3ximus commented Oct 18, 2021

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 ?

@NikEyX
Copy link
Author

NikEyX commented Oct 18, 2021

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!

@3ximus
Copy link
Owner

3ximus commented Oct 18, 2021

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

@NikEyX
Copy link
Author

NikEyX commented Oct 18, 2021 via email

@3ximus
Copy link
Owner

3ximus commented Oct 18, 2021

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

@3ximus
Copy link
Owner

3ximus commented Oct 19, 2021

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

@NikEyX
Copy link
Author

NikEyX commented Oct 23, 2021

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.

@3ximus
Copy link
Owner

3ximus commented Oct 23, 2021 via email

@phodina
Copy link

phodina commented Dec 25, 2021

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.

@3ximus
Copy link
Owner

3ximus commented Dec 26, 2021

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...

@phodina
Copy link

phodina commented Jan 5, 2022

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

@3ximus
Copy link
Owner

3ximus commented Jan 6, 2022

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

@Cruising0904
Copy link

Cruising0904 commented Aug 20, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants