Skip to content

Instantly share code, notes, and snippets.

@TiGR
Created September 25, 2021 18:06
Show Gist options
  • Save TiGR/fddbe611fda8e25a75af674a0a346e6b to your computer and use it in GitHub Desktop.
Save TiGR/fddbe611fda8e25a75af674a0a346e6b to your computer and use it in GitHub Desktop.
Build and install kffmpegthumbnailer
#!/bin/bash
cd /tmp
wget https://github.com/dirkvdb/ffmpegthumbnailer/archive/master.zip -c
unzip master.zip
cd ffmpegthumbnailer-master/
sudo apt purge -y ffmpegthumbnailer ffmpegthumbs
sudo apt install -y cmake pkg-config extra-cmake-modules libavcodec-dev libavformat-dev libavutil-dev libavfilter-dev libkf5kio-dev libkf5config-dev libkf5i18n-dev gettext
cmake . -DCMAKE_INSTALL_PREFIX=/usr/
make
sudo make install
cd kffmpegthumbnailer/
cmake .
make
sudo make install
# cleanup
sudo apt purge -y cmake pkg-config extra-cmake-modules libavcodec-dev libavformat-dev libavutil-dev libavfilter-dev libkf5kio-dev libkf5config-dev libkf5i18n-dev gettext
sudo apt autoremove -y
cd /tmp
rm -rf /tmp/ffmpegthumbnailer-master/ /tmp/master.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment