elementary / videos

Video player and library app designed for elementary OS
https://elementary.io
GNU General Public License v3.0
59 stars 18 forks source link

No video (only audio) on video playback #320

Closed TomiOhl closed 10 months ago

TomiOhl commented 1 year ago

What Happened?

On version 2.9.1-3.0.0 (daily/main/stable branches):

On version 2.9.0:

The issue looks pretty much the same as #281 looked like. The org.freedesktop.Platform.openh264 package is installed though. Installing org.freedesktop.Platform.ffmpeg-full manually doesn't help. All platform packages are installed from the same source to the user: image

Steps to Reproduce

Tried to play different video formats

Expected Behavior

Smooth playback

OS Version

7.x (Horus)

Software Version

Latest release (I have run all updates)

Log Output

Gtk-Message: 01:27:18.468: Failed to load module "canberra-gtk-module"
Gtk-Message: 01:27:18.470: Failed to load module "canberra-gtk-module"

(io.elementary.videos:2): Gtk-WARNING **: 01:27:20.418: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node actionbar, owner GtkActionBar)

(io.elementary.videos:2): GLib-GObject-WARNING **: 01:27:20.815: invalid unclassed pointer in cast to 'GstAudioRingBuffer'

Hardware Info

HW1: Intel Core I5-8250U with Intel UHD Graphics 620 (Kabylake GT2) HW2: AMD Ryzen 7 PRO 6850U with AMD Radeon 680M

TomiOhl commented 1 year ago

Same after updating to OS 7 (it's like this even on the installation media in live mode)

TomiOhl commented 1 year ago

Bumping this: same with videos 2.9.0 even on a freshly installed system on ThinkPad T16 AMD. After updating to version 2.9.1, there's no video at all, only sound.

TomiOhl commented 12 months ago

Additional info: the fourth line from the log doesn't appear in v2.9.1. But those logs don't seem to be related anyways. There is no video, only sound with all three tested formats.

TomiOhl commented 12 months ago

Note that manually installing org.freedesktop.Platform.ffmpeg-full doesn't help. Tried to install it to both user and the system, as well as reinstalled videos (all three branches - daily, main, stable) both as user and system.

hexerus commented 12 months ago

Same issue.

Flatpak: io.elementary.videos Version: 2.9.1 Branch: daily Mesa and Mesa (extra) version 22.08 installed as flatpaks. Intel VAAPI 22.08 installed as flatpak. ubuntu-restricted-extras installed from apt.

Can only hear sound on mp4 (h264 or h265). Cannot see video.

Celluloid works just fine (flatpak).

System: i7-12700 GPU: Intel (0x8086) Mesa Intel(R) UHD Graphics 770 (ADL-S GT1) (0x4680)

TomiOhl commented 12 months ago

I'm using mpv (flatpak) which also works just fine without pulling in any additional platform dependencies. Here is what I have installed (besides Elementary Platform 7.2 and random apps): image

(updated the OP too with the additional infos since opening the issue)

hexerus commented 12 months ago

Yeah.. anything decent that either comes bundled with its own codecs, installs the missing codecs as dependencies on its own OR notifies the user about those missing codecs (free/proprietary) required to play the file would work as expected. Like VLC, mpv (and its various frontends) etc.

TomiOhl commented 10 months ago

Same issue with 3.0.0

lenemter commented 10 months ago

@TomiOhl What video are you trying to play? I just downloaded a random video from YouTube and Videos managed to play it.

Marukesu commented 10 months ago

Also tried two MP4 samples (h264/h265) here, both worked fine.

for reference i have the ffmpeg-full extension installed system-wide, as it seems that OP has it in the user installation. @TomiOhl could you open videos and then run flatpak enter io.elementary.videos cat /.flatpak-info | grep -E "org\.freedesktop\.Platform\.(ffmpeg-full|openh264)" and confirm that there's matches?

TomiOhl commented 10 months ago

Since then I've tried reinstalling the extension to the system (no luck): image

Running the given command yields results: image

TomiOhl commented 10 months ago

@TomiOhl What video are you trying to play? I just downloaded a random video from YouTube and Videos managed to play it.

Basically any video I try, but here's a sample: https://github.com/elementary/videos/assets/6696659/e510f86b-8360-466f-8b91-d0b26ec1ec39

I have to stress that I have the same issue even when booting the os from a live usb.

Some related info from more users: https://www.reddit.com/r/elementaryos/comments/152h6au/are_any_special_actions_needed_to_be_able_to_use/

TomiOhl commented 10 months ago

Note: Videos (?) even seems to install another version of openh264, the user installation from flathub reappeared: image

TomiOhl commented 10 months ago

Breaking: either one of these solved the issue, videos play fine now! Ngl I'm scared to change anything now, would be better to experiment on a live usb, but I have formatted mine so leaving this task for later

Update:

TomiOhl commented 10 months ago

So openh264 from branch 2.2.0 is indeed what does the trick. Tried uninstalling it on my other laptop. No video after it, but immediately got a notification from AppCenter for an update that installed it back. Video playback works fine again after that, although a bit choppy, but that's probably unrelated as I don't have this issue on my other laptop. Not sure what changed, why did this issue get randomly fixed for me on two devices at the same time after 8 months, but I guess it's time to close the issue 🎉