gravity-addiction / rpi-mpv

rpi scripts for compiling mpv on rpi
MIT License
7 stars 1 forks source link

ffmpeg fails to install #1

Open danboid opened 4 years ago

danboid commented 4 years ago

I have ran rpi-mpv on my rpi4 8GB several times now and I could not get it to successfully install ffmpeg. I get this error:

dpkg: warning: downgrading ffmpeg from 7:4.1.6-1~deb10u1+rpt1 to 4.0.2-1
(Reading database ... 221442 files and directories currently installed.)
Preparing to unpack .../ffmpeg_4.0.2-1_armhf.deb ...
Unpacking ffmpeg (4.0.2-1) over (7:4.1.6-1~deb10u1+rpt1) ...
dpkg: error processing archive /home/pi/Vidware_Build/libass/ffmpeg_4.0.2-1_armhf.deb (--install):
 trying to overwrite '/usr/include/ass/ass.h', which is also in package libass 0.14.0-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /home/pi/Vidware_Build/libass/ffmpeg_4.0.2-1_armhf.deb

The workaround is to wait until the script has finished then run:

sudo apt remove libass libass-dev
sudo dpkg -i  /home/pi/Vidware_Build/libass/ffmpeg_4.0.2-1_armhf.deb

To manually install the custom (older) ffmpeg package.

gravity-addiction commented 4 years ago

you can manually install the latest ffmpeg with this mpv. I need to update the script to use ffmpeg 4.3.1 .. I've been running it for several months and it's working great. I believe it used all the same configure switches and all I did was change the version number to 4.3.1 in the ffmpeg file names of the script. don't forget to update the /etc/apt/preferences .. Either rerun the entire script or copy out the ffmpeg and mpv compile and install portions to rerun