clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
520 stars 29 forks source link

Unable to play videos with GNOME Videos (Totem) #658

Open zmdismai opened 5 years ago

zmdismai commented 5 years ago

Description We are not able to play videos with Totem. We tried to run videos, with different codec and/or bit depth: 1) H264 8-bits 2) H265 8-bits 3) H265 10-bits

To Reproduce Steps to reproduce the behavior:

  1. Boot up Live Desktop image
  2. Install Clear Linux
  3. Upon installation, download/get video files
  4. Right click on the video file icon > Open with Videos

Current behavior

1) H264 8-bits: Video plays but the playback is distorted (Refer Screenshot A)

journalctl -f: dbus-daemon[878]: [session uid=1000 pid=878] Successfully activated service 'org.gnome.Totem' totem[21807]: [registry] ../src/grl-registry.c:1461: Plugin 'grl-local-metadata' not available totem[21807]: Failed to load grl-local-metadata plugin: Plugin “grl-local-metadata” not available totem[21807]: [registry] ../src/grl-registry.c:1461: Plugin 'grl-bookmarks' not available totem[21807]: Failed to load grl-bookmarks plugin: Plugin “grl-bookmarks” not available totem[21807]: Missing plugin: gstreamer|1.0|totem|MPEG-4 AAC decoder|decoder-audio/mpeg, mpegversion=(int)4, level=(string)2, base-profile=(string)lc, profile=(string)lc (MPEG-4 AAC decoder) totem[21807]: Automatic missing codec installation not supported (helper script missing) totem[21807]: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node slider owner GtkScale)_

2) H265 8-bits: Does not play, showing plain black

journalctl -f: dbus-daemon[878]: [session uid=1000 pid=878] Successfully activated service 'org.gnome.Totem' totem[21856]: [registry] ../src/grl-registry.c:1461: Plugin 'grl-local-metadata' not available totem[21856]: Failed to load grl-local-metadata plugin: Plugin “grl-local-metadata” not available totem[21856]: [registry] ../src/grl-registry.c:1461: Plugin 'grl-bookmarks' not available totem[21856]: Failed to load grl-bookmarks plugin: Plugin “grl-bookmarks” not available totem[21856]: Missing plugin: gstreamer|1.0|totem|MPEG-4 AAC decoder|decoder-audio/mpeg, mpegversion=(int)4, level=(string)2, base-profile=(string)lc, profile=(string)lc (MPEG-4 AAC decoder) totem[21856]: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node slider owner GtkScale) totem[21856]: Automatic missing codec installation not supported (helper script missing)

3) H265 10-bits: Video plays but the playback is distorted (Refer Screenshot A)

journalctl -f: dbus-daemon[878]: [session uid=1000 pid=878] Successfully activated service 'org.gnome.Totem' totem[21904]: [registry] ../src/grl-registry.c:1461: Plugin 'grl-local-metadata' not available totem[21904]: Failed to load grl-local-metadata plugin: Plugin “grl-local-metadata” not available totem[21904]: [registry] ../src/grl-registry.c:1461: Plugin 'grl-bookmarks' not available totem[21904]: Failed to load grl-bookmarks plugin: Plugin “grl-bookmarks” not available totem[21904]: Missing plugin: gstreamer|1.0|totem|MPEG-4 AAC decoder|decoder-audio/mpeg, mpegversion=(int)4, level=(string)2, base-profile=(string)lc, profile=(string)lc (MPEG-4 AAC decoder) totem[21904]: Automatic missing codec installation not supported (helper script missing)

Expected behavior Video should play smoothly.

Environment:

Screenshots Screenshot A distortedvideoplayback

Additional context We are able to play the three videos with the following methods without issues:

  1. GNOME MPV (installed via Flatpak)
  2. gstreamer -> DISPLAY=:0 gst-launch-1.0 playbin uri=file://filename
ahkok commented 5 years ago

This is not a bug. Totem does not support the codecs needed to play these videos. It never has.

This is a planned feature, but currently not implemented. In other words: this will come later.

Note, not all codecs may be supported in the future, so not all the tested content may actually play.

ahkok commented 5 years ago

@chivakker

zmdismai commented 5 years ago

@ahkok @chivakker When you say Totem does not support the codecs needed, are you referring to Totem on Clear Linux or Totem in general?

I'm asking because I am able to play those videos on Ubuntu with no issues: $ totem --play

I appreciate your help!

jwang11 commented 5 years ago

You can try play videos by gstreamer + msdk in Clear. I think it is recommend approach (using hardware acceleration), commands like below

LIBVA_DRIVER_NAME=iHD gst-launch-1.0 filesrc location=1080P _1920x1080_2700xxx.h264 ! h264parse ! msdkh264dec ! msvpp ! glimagesink

Rgds jwang From: Zakiah Md Ismail [mailto:notifications@github.com] Sent: Friday, May 3, 2019 1:32 PM To: clearlinux/distribution distribution@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [clearlinux/distribution] Unable to play videos with GNOME Videos (Totem) (#658)

Description We are not able to play videos with Totem. We tried to run videos, with different codec and/or bit depth:

  1. H264 8-bits
  2. H265 8-bits
  3. H265 10-bits

To Reproduce Steps to reproduce the behavior:

  1. Boot up Live Desktop image
  2. Install Clear Linux
  3. Upon installation, download/get video files
  4. Right click on the video file icon > Open with Videos

Current behavior

1) H264 8-bits: Video plays but the playback is distorted (Refer Screenshot A)

journalctl -f: dbus-daemon[878]: [session uid=1000 pid=878] Successfully activated service 'org.gnome.Totem' totem[21807]: [registry] ../src/grl-registry.c:1461: Plugin 'grl-local-metadata' not available totem[21807]: Failed to load grl-local-metadata plugin: Plugin “grl-local-metadata” not available totem[21807]: [registry] ../src/grl-registry.c:1461: Plugin 'grl-bookmarks' not available totem[21807]: Failed to load grl-bookmarks plugin: Plugin “grl-bookmarks” not available totem[21807]: Missing plugin: gstreamer|1.0|totem|MPEG-4 AAC decoder|decoder-audio/mpeg, mpegversion=(int)4, level=(string)2, base-profile=(string)lc, profile=(string)lc (MPEG-4 AAC decoder) totem[21807]: Automatic missing codec installation not supported (helper script missing) totem[21807]: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node slider owner GtkScale)_

2) H265 8-bits: Does not play, showing plain black

journalctl -f: dbus-daemon[878]: [session uid=1000 pid=878] Successfully activated service 'org.gnome.Totem' totem[21856]: [registry] ../src/grl-registry.c:1461: Plugin 'grl-local-metadata' not available totem[21856]: Failed to load grl-local-metadata plugin: Plugin “grl-local-metadata” not available totem[21856]: [registry] ../src/grl-registry.c:1461: Plugin 'grl-bookmarks' not available totem[21856]: Failed to load grl-bookmarks plugin: Plugin “grl-bookmarks” not available totem[21856]: Missing plugin: gstreamer|1.0|totem|MPEG-4 AAC decoder|decoder-audio/mpeg, mpegversion=(int)4, level=(string)2, base-profile=(string)lc, profile=(string)lc (MPEG-4 AAC decoder) totem[21856]: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node slider owner GtkScale) totem[21856]: Automatic missing codec installation not supported (helper script missing)

3) H265 10-bits: Video plays but the playback is distorted (Refer Screenshot A)

journalctl -f: dbus-daemon[878]: [session uid=1000 pid=878] Successfully activated service 'org.gnome.Totem' totem[21904]: [registry] ../src/grl-registry.c:1461: Plugin 'grl-local-metadata' not available totem[21904]: Failed to load grl-local-metadata plugin: Plugin “grl-local-metadata” not available totem[21904]: [registry] ../src/grl-registry.c:1461: Plugin 'grl-bookmarks' not available totem[21904]: Failed to load grl-bookmarks plugin: Plugin “grl-bookmarks” not available totem[21904]: Missing plugin: gstreamer|1.0|totem|MPEG-4 AAC decoder|decoder-audio/mpeg, mpegversion=(int)4, level=(string)2, base-profile=(string)lc, profile=(string)lc (MPEG-4 AAC decoder) totem[21904]: Automatic missing codec installation not supported (helper script missing)

Expected behavior Video should play smoothly.

Environment:

· Clear Linux OS version: [cat /usr/lib/os-release] NAME="Clear Linux OS" VERSION=1 ID=clear-linux-os ID_LIKE=clear-linux-os VERSION_ID=29160 PRETTY_NAME="Clear Linux OS" ANSI_COLOR="1;35" HOME_URL="https://clearlinux.org" SUPPORT_URL="https://clearlinux.org" BUG_REPORT_URL="mailto:dev@lists.clearlinux.orgmailto:dev@lists.clearlinux.org" PRIVACY_POLICY_URL="http://www.intel.com/privacy"

· Bundles: [e.g. sudo swupd bundle-list] NetworkManager acpica-unix2 alsa-utils ansible baobab bc binutils bison bootloader c-basic cheese cloc clr-network-troubleshooter containers-basic cpio cronie cryptography curl darktable desktop desktop-apps desktop-assets desktop-autostart desktop-gnomelibs desktop-kde-libs desktop-locales dev-utils devpkg-base devpkg-llvm diffutils dnf docutils dpdk education-preschool eog ethtool evince evolution file file-roller findutils firefox flatpak flex fonts-basic fuse games gdb geany gedit gimp git gjs glibc-locale glmark2 gnome-base-libs gnome-calculator gnome-characters gnome-color-manager gnome-disk-utility gnome-font-viewer gnome-logs gnome-music gnome-photos gnome-screenshot gnome-system-monitor gnome-todo gnome-weather graphviz gstreamer gvim gzip hardware-printing hardware-uefi hexchat htop icdiff inotify-tools iperf ipmitool iproute2 iptables kbd kde-frameworks5 kernel-install kernel-native less lib-imageformat lib-opengl lib-openssl lib-samba libX11client libglib libstdcpp libva-utils linux-firmware linux-firmware-extras linux-firmware-wifi linux-tools llvm make man-pages meld minetest minetestserver minicom nasm nautilus net-tools network-basic openblas openldap openssh-server openssl openvswitch os-core os-core-legacy os-core-update os-core-webproxy os-utils-gui p11-kit package-utils parallel patch perl-basic polkit powertop procps-ng pulseaudio pygobject python2-basic python3-basic qemu-guest-additions qt-basic qt-core seahorse software-defined-cockpit strace sudo sysadmin-basic syslinux telemetrics texinfo thermal_daemon thunderbird tigervnc tmux totem tzdata unzip v4l-utils valgrind vim virt-viewer vlc vnc-server webkitgtk wget which wpa_supplicant x11-server x11vnc xemacs xfce4-desktop xz znc zstd

Screenshots Screenshot A [distortedvideoplayback]https://user-images.githubusercontent.com/39295394/57120559-c07a3300-6d61-11e9-8b96-90a72db8534a.png

Additional context We are able to play the three videos with the following methods without issues:

  1. GNOME MPV (installed via Flatpak)
  2. gstreamer -> DISPLAY=:0 gst-launch-1.0 playbin uri=file://filename

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/clearlinux/distribution/issues/658, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAI2AVP2B32KN32AVFXXB23PTPE4DANCNFSM4HKRJY6Q.

chivakker commented 5 years ago

@zmdismai From the logs you're sharing, your clips have audio that won't play. That's what we refer to when saying codecs are not supported.

OTOH, if you want to play video, an option is to check which codecs are supported, gst-inspect vaapi and gst-inspect msdk will provide a list of supported codecs through hardware acceleration

totem's video-sink is cluttersink which will use xvimagesink, we need to use glimagesink instead, that will be addressed in cluttersink.