GeopJr / Tuba

Browse the Fediverse
https://tuba.geopjr.dev/
GNU General Public License v3.0
503 stars 55 forks source link

[Bug]: Video does not preview in media tab when posting. #973

Open eobet opened 3 weeks ago

eobet commented 3 weeks ago

Describe the bug

When adding video to the media tab, you just see a grey rectangle. You can post, and the video will play in the post, but not in the preview.

It's interesting to observe that VLC actually fails to play the video as well with the error message displayed below, but whatever built in video player that's in vanilla Gnome these days is able to play it. (The video is a raw output straight from Blender.)

Steps To Reproduce

  1. Not sure if Mastodon re-encodes it, but you can try the video from here: https://oldbytes.space/@eobet/112568134625001023
  2. Attach H264 video in an MP4 container to a post and observe the lack of preview in the media tab.

Logs and/or Screenshots

image

Instance Backend

glitch-soc

Operating System

Nobara (Fedora 39 w Gnome/Wayland)

Package

Flatpak

Troubleshooting information

os: GNOME 46 (Flatpak runtime) prefix: /app flatpak: true version: 0.7.2 (production) gtk: 4.14.4 (4.14.1) libadwaita: 1.5.1 (1.5.0) libsoup: 3.4.4 (3.4.4) libgtksourceview: 5.12.0 (5.12.0)

Additional Context

No response

GeopJr commented 3 weeks ago

When you click on a video in the composer's media tab, it will ask your distro to open it in the default app - that's because Tuba's media viewer won't be intractable while the composer is open.

I'm having a bit of trouble understanding what the issue is exactly, is it:

For the first one, I'll see what I can do about it but it'd probably require adding a thumbnailer since videos don't have embeded thumbnails

For the second one, you are probably missing the needed codecs for VLC, while the GNOME video app you tested was probably from flatpak, which includes the codecs. Long story short, in case you aren't aware of it already, some codecs require a paid license to be shipped. Fedora and OpenSUSE, as far as I remember, don't include them by default. I don't know about Nobara.