Video nasty (1, 2, 3, 4....15)

The topic is an allusion to an episode of The Young Ones :

Anyway - been noticing some ugly glitching in both MPV and VLC when watching downloaded content on my Linux (Ubuntu 22.04 on AMD CPU and AMD GPU) desktop - sort of ugly yellow / green glitchy pixelization in the top left corner that sometimes takes over all the way into the centre of the video content.

The same video “content” when played inside a web-browser - e.g. on AppleTV on a Linux (the same Linux) doesn’t happen.

I put it down to something shonky with the content (i.e. the downloaded video file) - BUT I WAS WRONG!

video nastiness on Linux (in MPV) :

The SAME video, at the SAME time in MPV on MacOS :

So I reckon it’s something to do with my GPU, my drivers or something…

Notice also - mpv runs SO MUCH BETTER on MacOS than Linux…

It’s almost like MPV was made for MacOS - it’s just some kinda front end for ffmpeg - so it’s more UNIX than anything Apple related…

I love the way, on MacOS MPV doesn’t use up valuable screen real estate with at titlebar during playback…


If I make any progress getting Fedora 37 on my Thinkpad over the weekend - I’m going to see if this happens there too…

Because the browser has a better codec
Same goes for Apple… their codecs will always win

1 Like

You idiot (me) - go home - you’re drunk!

I assumed 'cause it was happening in VLC and MPV on Linux, but not in MPV on MacOS - it was 100% a Linux issue (it still kinda/sorta semi points at Linux) : I just tried playing the same content (it’s a 2016 documentary about Yellowstone national park) in Celluloid and NO glitchy artifacts!

WTF?

Celluloid bills itself as “A GTK front end for MPV”!

So - maybe Celluloid will be my fallback (it doesn’t happen in ALL videos) if it happens in MPV? It is odd because surely Celluloid, and “mpv” (direct) would surely be using the same codecs anyway…

image


One of the reasons I’m doing this - is - even though I have access to Apple TV and Amazon Prime - they’re SHIT in a web-browser on a computer - 'cause even when you nudge the mouse just a tiny bit - “or hover” - the player PLONKS video controls in the MIDDLE over the TOP of the content! And Amazon is even worse it pops up shitty ad thingie overlays on the left ON TOP OF THE CONTENT I’m watching…

This doesn’t happen in Stan, Netflix, or “free” Australian services like SBS On Demand or ABC iView…

So - I download them! The SHONKINESS of the vendor’s “product” is a disincentive NOT to pirate content!

1 Like

CRAP!

Fedora 37 on this Thinkpad E495 : BOTH “mpv” and “Celluloid” crash on mp4 files!

So I can’t compare to Ubuntu 22.04… So much for that…

Then I think - maybe ffpmeg’s not installed - so I try to install it with dnf - no go, doesn’t know what it even is… piece of crap… then I try to see if there’s a binary for ffmpeg in Fedora 37 - and - sure enough, it’s there. installed but f–k knows what package name it came from - oh well…

I’m not going to spend a huge amount of time trying to figure out why mpv and celluloid both crash… Don’t plan on using this thing to watch videos…


Hmmm - out of the box Fedora is pretty crappy - like during the installer it asked if I want to install rpmfusion - and I said yes, BUT THE ONLY bits of rpmfusion it installed were NVidia drivers and Steam! There’s a whole bunch of other stuff I need to install via yet MORE RPMFusion repos just to get H265 playback support…

Like - all this work, to get to the point that Ubuntu does “out of the box” without having to fuck around? Some people might like fucking around with shit like this - not me - I just want the fastest point I can get to to have a decent modern UX and applications :

  1. chromium based web browser (probably all 3 of Chrome, Brave3 and Edge)
  2. GPU acceleration
  3. bash or zsh shell and a terminal with an SSH client
  4. steam gaming
  5. watching videos and playing music…

That’s all I want, or all I need… This is why I like, and use, MacOS…

Further research on what I need JUST so I can watch a fucking video file :

Get all of RPMFusion by downloading an RPM file :
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-37.noarch.rpm

Then this bullshit :
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm && sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin && sudo dnf groupupdate sound-and-video
(that’s one single FUCKING command!)

And guess what? That doesn’t fucking work anyway, so I tried it with --skip-broken and that’s fucked too :

sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm && sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin && sudo dnf groupupdate sound-and-video --skip-broken
Last metadata expiration check: 0:11:06 ago on Sun 20 Nov 2022 20:35:39.
rpmfusion-free-release-37.noarch.rpm                                                                    5.8 kB/s |  11 kB     00:01    
rpmfusion-nonfree-release-37.noarch.rpm                                                                 6.6 kB/s |  11 kB     00:01    
Package rpmfusion-free-release-37-1.noarch is already installed.
Package rpmfusion-nonfree-release-37-1.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Last metadata expiration check: 0:11:11 ago on Sun 20 Nov 2022 20:35:39.
No match for group package "PackageKit-gstreamer-plugin"
No match for group package "gstreamer1-libav"
Error: 
 Problem 1: problem with installed package ffmpeg-free-5.1.2-1.fc37.x86_64
  - package ffmpeg-5.1.2-3.fc37.x86_64 conflicts with ffmpeg-free provided by ffmpeg-free-5.1.2-1.fc37.x86_64
  - conflicting requests
 Problem 2: problem with installed package firefox-106.0.4-1.fc37.x86_64
  - conflicting requests
  - package ffmpeg-libs-5.1.2-3.fc37.i686 conflicts with libavcodec-free provided by libavcodec-free-5.1.2-1.fc37.x86_64
  - package ffmpeg-libs-5.1.2-3.fc37.x86_64 conflicts with libavcodec-free provided by libavcodec-free-5.1.2-1.fc37.x86_64
  - problem with installed package libavcodec-free-5.1.2-1.fc37.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
[x@fenrir ~]$ sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm && sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin && sudo dnf groupupdate sound-and-video --skip-broken
Last metadata expiration check: 0:19:37 ago on Sun 20 Nov 2022 20:35:39.
rpmfusion-free-release-37.noarch.rpm                                                                    5.1 kB/s |  11 kB     00:02    
rpmfusion-nonfree-release-37.noarch.rpm                                                                 6.6 kB/s |  11 kB     00:01    
Package rpmfusion-free-release-37-1.noarch is already installed.
Package rpmfusion-nonfree-release-37-1.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Last metadata expiration check: 0:19:43 ago on Sun 20 Nov 2022 20:35:39.
No match for group package "PackageKit-gstreamer-plugin"
No match for group package "gstreamer1-libav"
Error: 
 Problem 1: problem with installed package ffmpeg-free-5.1.2-1.fc37.x86_64
  - package ffmpeg-5.1.2-3.fc37.x86_64 conflicts with ffmpeg-free provided by ffmpeg-free-5.1.2-1.fc37.x86_64
  - conflicting requests
 Problem 2: problem with installed package firefox-106.0.4-1.fc37.x86_64
  - conflicting requests
  - package ffmpeg-libs-5.1.2-3.fc37.i686 conflicts with libavcodec-free provided by libavcodec-free-5.1.2-1.fc37.x86_64
  - package ffmpeg-libs-5.1.2-3.fc37.x86_64 conflicts with libavcodec-free provided by libavcodec-free-5.1.2-1.fc37.x86_64
  - problem with installed package libavcodec-free-5.1.2-1.fc37.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)

And no - I don’t want any help sorting this shit - I reckon I’ll go Ubuntu 22.10 instead!

At least I can compare Apples to Pears (comparing Ubuntu to Fedora is more like Apples to Oranges) i.e. see if those ugly artifacts happen on Ubuntu 22.10…

1 Like

There really is no Linux that can do all of that perfectly. Video stuff is the biggest weakness in Linux. Ubuntu is at least making an effort.

The jury’s back in…

No Glitch in mpv on Ubuntu 22.10 on Thinkpad E495 (MPV - AND - Celluloid both CRASHED on Fedora 37).

BOTH are using the opensource AMD drivers

  1. Ryzen 7 desktop machine on 22.04 with 32 GB DDR4 (high speed) RAM using a dedicated AMD Radeon PCIe GPU - a “not cheap” gaming level GPU - with 8 GB of DDR5 VideoRAM
  2. Ryzen 5 laptop (thinkpad) on 22.10 with 16 GB of DDR (lower speed 2133) RAM using an AMD APU / GPU with shared VideoRAM.

Glitch doesn’t happen on the lower spec’d Thinkpad, but does happen on the higher spec’d desktop tower machine…

Note also : NEITHER of my Linux machines are using Wayland, because that PIECE of CRAP Synergy (which I NEED as I have upto 5 computers on my desk!) won’t run on Wayland…

I didn’t have to do ANYTHING special to get stuff installed on Ubuntu 22.10 - unlike the contortions that Fedora make their users undertake just to get some certain shit installed… WTF?

Thanks Canonical!

Famous last words : NO MORE DISTROHOPPING pour moi!

So much for the idea of trying Fedora 37 on either of my Pi4 boards! Bugger that for a joke!

BTW - I’m now a HUGE fan of mpv - my favourite Video player - lovely and small and minimal - no frills… Also easy to launch from the shell, or a shell script (like connecting to TVHeadend I have on a Pi3) - I love the way it ALWAYS maintains the aspect ration of the video, e.g. if I drag / resize the mpv window from the left window border, it also adusts the vertical size… I can single click ANYWHERE on the window (e.g. on the content being played) and move it around (e.g. from one screen to another)… But if / when I hit that ugly glitchy artifacts in playback, I just fire up celluloid (I’d still rather use mpv!).

Shellscript to watch my TVHeadend free to air TV :

#!/usr/bin/env bash
# watch TV @ telesto
# updated to run from MacOS too : 
OS=$(uname -s)
case $OS in
	Linux)
		# /usr/bin/vlc http://telesto.local:9981/playlist/channels &
		/usr/bin/mpv http://telesto.local:9981/playlist/channels &
	;;
	Darwin)
		# MacOS
		/opt/homebrew/bin/mpv http://telesto.local:9981/playlist/channels &
		# /Applications/VLC.app/Contents/MacOS/VLC http://telesto.local:9981/playlist/channels &
	;;
	*)
		# sumthin else
		echo "don't that shit here, here, not run, that shit..."
	;;
esac
1 Like

Use Kodi. It plays every video.