Mpv-0.36 how to setup

no idea, can not use --hwdec but --hwdec-codecs.
memory error (core dump)
but with --hwdec-codecs playing not any v4l2 showed, must S/W?

Make sure you have the right versions installed.

[ray@jellyfin ~]$ pacman -Ss mpv | grep installed
extra/mpv 1:0.36.0-1 [installed: 1:0.36.0-2]
 
[ray@jellyfin ~]$ pacman -Qm | grep ffmpeg
ffmpeg-rpi 4.4.4-2
 
[ray@jellyfin ~]$ pacman -Ss ffmpeg | grep installed
extra/ffmpeg 2:6.0-8 [installed]

Hi @Darksky,

Downloaded mpv_ffmpeg-rpi.tar. Tried to extract it using ā€œDolphinā€" but it refuses to extract/create ā€œmpv-1:036.0-2-aarch64.pkg.tar.zstā€.

ffmpeg-rpi-4.4.4-2-aarch64.pkg.tar.xz extracted successfully though.

image

Appreciate some guidance how to install/extract packages to be installed Manjaro-Arm-KDE?

tar -xvf mpv_ffmpeg-rpi.tar

@Darksky,

Thanks. Do I have to install ā€œffmpeg-rpi-4.4.4-2-aarch64.pkg.tar.xzā€ first then install ā€œmpv-1:0.36.0-2-aarch64.pkg.tar.zstā€? Missing ā€œlibplacebo.so=296-64ā€? Could it be this is specific to RPI image and not compatible with the GT King Pro image?

[jfl@jfl-mnjro ~]$ sudo pacman -U /home/jfl/Downloads/mpv_ffmpeg-rpi/mpv-1:0.36.0-2-aarch64.pkg.tar.zst /home/jfl/Downloads/mpv_ffmpeg-rpi/ffmpeg-rpi-4.4.4-2-aarch64.pkg.tar.xz
loading packages...
resolving dependencies...
warning: cannot resolve "libplacebo.so=296-64", a dependency of "mpv"
:: The following package cannot be upgraded due to unresolvable dependencies:
      mpv

:: Do you want to skip the above package for this upgrade? [y/N] y
looking for conflicting packages...

Packages (1) ffmpeg-rpi-4.4.4-2

Total Installed Size:  20.68 MiB

:: Proceed with installation? [Y/n] n
[jfl@jfl-mnjro ~]$

Oops. I have libplacebo-git 6.292.0.59.ged22079e-1 installed during all of my experimenting. I will have to downgrade and recompile everything.

[ray@jellyfin ~]$ ls /usr/lib/libplacebo.so*
/usr/lib/libplacebo.so  /usr/lib/libplacebo.so.296

[ray@jellyfin ~]$ sudo pacman -Qm libplacebo 
libplacebo-git 6.292.0.59.ged22079e-1

@JFL @Rip2 Here is the recompiled mpv with the libplacebo in our repo.

It has:
ffmpeg-rpi-4.4.4-2-aarch64.pkg.tar.xz mpv-1:0.36.0-3-aarch64.pkg.tar.zst
Install the ffmpeg-rpi-4.4.4-2-aarch64.pkg.tar.xz package first. You have to remove any other ffmpeg 4.4 if installed.

https://drive.google.com/file/d/1NC8GEnRKfiWTYkeY3LDApA_7gTiEpOuJ/view?usp=sharing

It tested good here:

[ray@jellyfin Heart.of.Stone.2023]$ mpv --hwdec=v4l2m2m Heart.of.Stone.2023.mkv 
 (+) Video --vid=1 (*) 'Heart.of.Stone.2023' (h264 1280x580 24.000fps)
 (+) Audio --aid=1 --alang=eng (*) 'Heart.of.Stone.2023' (aac 2ch 48000Hz)
      Subs --sid=1 --slang=eng (*) 'Heart.of.Stone.2023' 
      Subs --sid=2 --slang=eng 'English [SDH]'
File tags:
 Comment: Heart.of.Stone.2023
 Title: Heart.of.Stone.2023
Using hardware decoding (v4l2m2m).
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu] 1280x580 => 1280x581 drm_prime[yuv420p]
AV: 00:00:03 / 02:05:39 (0%) A-V:  0.000
1 Like

havenā€™t libplacebo-git installed, tried every ffmprg-xxx but none of them work?

As I said above the new packages was compiled with the libplacebo in the repo. No clue why you can not get the latest above to work. Works perfectly here.

your google drive access deny ?

Should be fixed now. Download / unpack and install the 2 packages.

No clue what you were using if you had not downloaded the last packages.

https://drive.google.com/file/d/1NC8GEnRKfiWTYkeY3LDApA_7gTiEpOuJ/view?usp=sharing

ok, first time seen v4l2m2m work CPU 10% up/down, thanks.
now, back to firefox-116.

You have to uninstall ffmpeg v6 before starting up firefox116 so it will use ffmpeg-rpi4 4.4.

can not remove ffmpeg6, --nodeps not work?

Donā€™t seem to be able to remove ffmpeg-m2m. The funny part is it indicated Chromium is dependent on ffmpeg-m2m ā€“ from what I understand is because ffmpeg-m2m is installed instead of ffmpeg-6.0-8, Chromium will NOT launch (missing libavcodec60, etcā€¦)

[jfl@jfl-mnjro ~]$ sudo pacman -R ffmpeg-m2m mpv-hwdec
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing ffmpeg-m2m breaks dependency 'ffmpeg' required by chromium
:: removing ffmpeg-m2m breaks dependency 'ffmpeg' required by firefox
:: removing ffmpeg-m2m breaks dependency 'ffmpeg' required by kfilemetadata
:: removing ffmpeg-m2m breaks dependency 'ffmpeg-m2m' required by kodi-aml
:: removing ffmpeg-m2m breaks dependency 'ffmpeg' required by kpipewire
:: removing ffmpeg-m2m breaks dependency 'ffmpeg' required by qt5-webengine
[jfl@jfl-mnjro ~]$

-Rd --nodeps ffmpeg-xxx.

Yes there is a lot of breakage going on trying to test HW with mpv and firefox. I believe ffmpeg-m2m and ffmpeg-rpi are pretty much the same but ffmpeg-m2m is not packaged to co-exist with ffmpeg6 and a lot of programs need ffmpeg6.

ā€“hwdec=hecv_v4l2m2m not work, S/W only :rofl:

And neither does vp9

does dtoverlay=rpivid-v4l2 only run in X?
got /dev/video19 but ā€˜drmModeSetplane failed: Permission deniedā€™.
ffplay has -vcodec hevc_v4l2m2m.