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

[Bug]: Videos do not play properly #749

Closed
CaptainMorgan12 opened this issue Jan 15, 2024 · 10 comments · Fixed by #1308
Closed

[Bug]: Videos do not play properly #749

CaptainMorgan12 opened this issue Jan 15, 2024 · 10 comments · Fixed by #1308
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@CaptainMorgan12
Copy link

Describe the bug

Environment: Debian 12, Tuba Flatpak install 0.6.1, GPU Vivante GC7000, etnaviv driver, gnome 3.38.5, ARM64, Librem 5 mobile.

Steps To Reproduce

  1. go to post with embedded video
  2. select play video once loading completes
  3. observe in e.g. 30sec video only 3-4 frames show

It does not play the video it just shows some downloaded frames based on slider position

Logs and/or Screenshots

Not sure how to output logs for tuba.
tuba

Instance Backend

Mastodon

Operating System

Debian 11

Package

Flatpak

Troubleshooting information

No response

Additional Context

No response

@CaptainMorgan12 CaptainMorgan12 added the bug Something isn't working label Jan 15, 2024
@GeopJr
Copy link
Owner

GeopJr commented Jan 15, 2024

Did this happen on 0.6.0?
Does it happen to all videos? If not, could you share a post with a video attachment that suffers from this issue?
Could you see if there are any non-websocket related logs?
Are flatpak runtimes up-to-date?

Nothing MediaViewer-related changed from Tuba's side on 0.6.0 -> 0.6.2. 0.5 -> 0.6 had a lot of changes but I don't think anything changed in the way video downloading and playing worked. I can't reproduce it on desktop, but give me a second to check if something changed on social.librem.one (edit: it didnt)

@CaptainMorgan12
Copy link
Author

CaptainMorgan12 commented Jan 15, 2024

https://social.librem.one/system/media_attachments/files/015/954/945/original/daf6f566ab682204.mp4?1705280019 It does take quite a while to load on my desktop, but eventually once loaded on my desktop plays fine same Tuba version. On a side note Tuba videos have played on my phone as well not sure which version before. I see if i can downgrade to 0.2.0, 0.6.0 and see what happens. Do you have the Commit IDs for either? tried the log, but can't find them.

@GeopJr GeopJr added the help wanted Extra attention is needed label Feb 1, 2024
@gnuntoo
Copy link

gnuntoo commented Feb 4, 2024

I am having this problem on my librem 5 as well. I do wonder if this issue would fix itself on the next version of pureOS.

I was not getting any log output from playing the videos. That could possibly mean they're not relevant to the issue, but I'm not sure.

I'm going to try to gather more information, such as what kinds of videos it's having issues with. I can say that from playing several videos on my librem 5 with tuba, most had the problem stated in the post, aside from gifs and one other supposedly not-gif.

@GeopJr
Copy link
Owner

GeopJr commented Feb 4, 2024

(sorry I just saw the edit)

I see if i can downgrade to 0.2.0, 0.6.0 and see what happens. Do you have the Commit IDs for either? tried the log, but can't find them.

You can find the tag names and the commits on https://github.com/GeopJr/Tuba/releases, on the left side under the date. I'd recommend testing the latest 0.5 rather than way older versions as it'll be easier to point it down

I do wonder if this issue would fix itself on the next version of pureOS.

Most likely not, if you are using the flatpak. I can't remember by heart but in a minor version bump I cleaned up the media viewer but that's pretty much it. Nothing really changed fundamentally on the way videos get loaded and passed to Gtk.Video. It might be a GTK related issue but unless someone makes a reproducer it might be difficult for them to pinpoint what the issue might be. (I do not have access to a linux mobile device so I can't really provide much help on this one)

@maltelau
Copy link

maltelau commented May 25, 2024

Edit: Unrelated, solved by installing missing gstreamer module.

I'm experiencing a similar issue (could be unrelated since I'm on laptop rather than mobile).

Video preview image shows fine in timelines etc, but when I click it, it shows a spinner for a second, then goes to the black screen shown below: the media viewer doesn't show the video. Play button is unresponsive. Right click -> "Save Media" works fine, as does viewing the video in firefox.

Skærmbillede fra 2024-05-25 17-36-25

Steps to reproduce

  1. Find a post on mastodon with an embedded video, for example https://todon.eu/@b9AcE/112502070070757575
  2. Click the video preview
    Expected: plays video
    Result: doesn't play video

System

wm: i3
my instance: mastodon v4.3.0-nightly.2024-05-18+glitch
os: Debian GNU/Linux sid main non-free non-free-firmware contrib
prefix: /usr
flatpak: false
tuba version: 0.6.3 (production)
gtk: 4.12.5 (4.12.5)
libadwaita: 1.5.0 (1.5.0)
libsoup: 3.4.4 (3.4.4)
libgtksourceview: 5.12.0 (5.11.1)

Logs

I get no terminal output other than a startup warning about gtk dark theme
(tuba:248979): Adwaita-WARNING **: 17:56:25.992: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.

@GeopJr
Copy link
Owner

GeopJr commented May 25, 2024

Could you hover over the icon in the middle of the window (⛔) and see if it shows any errors? (it will be on the tooltip, otherwise you can open the inspector, select it and see the tooltip-text property)

You are likely missing some codecs.

@maltelau
Copy link

Yes, hadn't noticed the tooltip. Loosely translated: GTK couldn't find a media module. Check your installation. Thanks for the quick response. Sorry for posting in what turns out to be an unrelated issue.

This doesn't bring me much closer to solving it though. On one side: the video opens fine in vlc/mpv/firefox. On the other side: There is no stdout/stderr output, nothing in journalctl, and no context in the tooltip so I don't know what codecs "are missing" or where to look for that information. I'm guessing there is a gstreamer* package out there somewhere that should be added as a dependency?

@GeopJr
Copy link
Owner

GeopJr commented May 25, 2024

I think the missing debian package is libgtk-4-media-gstreamer

Otherwise, these are the gstreamer packages I have installed on my debian sid vm, though you probably don't need most of them:

image

VLC, mpv and firefox work because they don't use gstreamer!

@maltelau
Copy link

👍 libgtk-4-media-gstreamer resolved it and should probably be added as a(n optional?) dependency. Thanks!

@GeopJr
Copy link
Owner

GeopJr commented Feb 5, 2025

Probably fixed by: #1308

@GeopJr GeopJr closed this as completed Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants