Skip to content

Instantly share code, notes, and snippets.

@kieranjol
Last active June 19, 2021 11:33
Show Gist options
  • Save kieranjol/116bd33a75cae438cfe125693be50beb to your computer and use it in GitHub Desktop.
Save kieranjol/116bd33a75cae438cfe125693be50beb to your computer and use it in GitHub Desktop.
#/usr/bin/bash
sudo apt-get update -qq && sudo apt-get -y install autoconf fakeroot automake ca-certificates build-essential cmake git nasm libass-dev libfreetype6-dev libsdl2-dev libgnutls28-dev fakeroot libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev mercurial pkg-config texinfo wget zlib1g-dev curl yasm libx264-dev libx265-dev libnuma-dev libvpx-dev libmp3lame-dev libopus-dev vim python-is-python3 ca-certificates devscripts fakeroot gcc locales sox libxerces-c-dev libssl-dev
mkdir -p ~/ffmpeg_sources ~/bin && export MAKEFLAGS="-j4" && PATH="$HOME/bin:$PATH"
#& wget http://www.nasm.us/pub/nasm/releasebuilds/2.13.02/nasm-2.13.02.tar.bz2 && tar xjvf nasm-2.13.02.tar.bz2 && cd nasm-2.13.02 && ./autogen.sh &&
#cd ~/ffmpeg_sources && PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && make && make install
#sudo apt-get update -qq && sudo apt-get -y install autoconf automake build-essential cmake git libass-dev libfreetype6-dev libsdl2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev mercurial pkg-config texinfo wget zlib1g-dev python-pip-dev libvpx-dev libfdk-aac-dev libmp3lame-dev libopus-dev
#cd ~/ffmpeg_sources && if cd x265 2> /dev/null; then hg pull && hg update; else hg clone https://bitbucket.org/multicoreware/x265; fi && cd x265/build/linux && PATH="$HOME/bin:$PATH" cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source && PATH="$HOME/bin:$PATH" make && make install
cd ~/ffmpeg_sources/
git clone https://github.com/uclouvain/openjpeg
cd openjpeg/
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
make
sudo make install && make clean
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
cd ~/ffmpeg_sources && wget -O ffmpeg-snapshot.tar.bz2 http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && tar xjvf ffmpeg-snapshot.tar.bz2 && cd ffmpeg && PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --pkg-config-flags="--static" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --extra-libs="-lpthread -lm" --bindir="$HOME/bin" --enable-gpl --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libvpx --enable-nonfree --enable-libopenjpeg && PATH="$HOME/bin:$PATH" make && make install && hash -r
wget https://mediaarea.net/repo/deb/repo-mediaarea-snapshots_1.0-13_all.deb && sudo dpkg -i repo-mediaarea-snapshots_1.0-13_all.deb && sudo apt update && sudo apt install mediainfo dvrescue qcli rawcooked mediaconch
sudo apt install -y python3-pip mkvtoolnix exiftool git md5deep p7zip-full
#mkdir ~/ifigit
#cd ~/ifigit
#git clone https://github.com/kieranjol/ifiscripts
#echo "export PATH=\"~/ifigit/ifiscripts:$PATH\"" >> ~/.bashrc
#sudo pip install lxml
#sudo pip install unidecode
#wget -q -O - https://mkvtoolnix.download/gpg-pub-moritzbunkus.txt | sudo apt-key add -
#sudo su -c "echo 'deb https://mkvtoolnix.download/ubuntu/xenial/ ./' >> /etc/apt/sources.list.d/bunkus.org.list"
#sudo su -c "echo 'deb-src https://mkvtoolnix.download/ubuntu/xenial/ ./' >> /etc/apt/sources.list.d/bunkus.org.list"
#sudo apt update
#sudo apt install mkvtoolnix mkvtoolnix-gui
#wget -qO - https://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add -
wget -qO - https://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add -
echo "deb http://dl.bintray.com/siegfried/debian wheezy main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update && sudo apt-get install siegfried
git clone https://github.com/cinecert/asdcplib.git && \
cd asdcplib && mkdir build && cd build && \
cmake .. && make -j && make install
apt-get install -y --no-install-recommends \
python3 \
python3-dev \
python3-pip && \
pip3 install -U pip setuptools
  1. Install homebrew - homebrew.sh
  2. Download and install homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  3. brew install python (osx 10.9 throuws up errors with ffmpeg install otherwise)
  4. install ffmpeg brew install ffmpeg
  5. You might have to say yes to some JAVA installation for whatever reason.
  6. brew install md5deep && brew install mediainfo && brew install exiftool&& brew install qcli && brew install xmlstarlet
  7. try to brew install pip but you might need to use https://pip.readthedocs.io/en/stable/installing/
  8. pip install lxml && pip install bagit
  9. cd && mkdir ifigit && cd ifigit &&git clone https://github.com/kieranjol/ifiscripts && cd
  10. nano .bash_profile'
  11. copy paste the following line to the end of this document and save:
  12. export PATH="~/ifigit/ifiscripts:$PATH"
  13. brew install mediaconch && brew install mkvtoolnix mkvtoolnix might fail on odler operating systems.
  14. brew tap amiaopensource/amiaos
  15. brew install vrecord
  16. brew install coreutils sox
  17. brew install https://raw.githubusercontent.com/OTTOMATIC-IO/homebrew-video/master/asdcplib.rb
  18. brew install richardlehane/digipres/siegfried && sf -update
  19. close terminal and reopen.
  1. Install linuxbrew - linuxbrew.sh
  2. install ruby sudo apt install ruby
  3. install git - sudo apt install git 3 Download and install linuxbrew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)" PATH="$HOME/.linuxbrew/bin:$PATH"
  4. install ffmpeg brew install ffmpeg --with-libass --with-tesseract --with-openjpeg --with-openssl --with-sdl2 --with-x265
  5. brew install md5deep && brew install mediainfo && brew install exiftool && pip install lxml && pip install bagit
  6. sudo apt-get install exfat-fuse exfat-utils
  7. cd && mkdir ifigit && cd ifigit &&git clone https://github.com/kieranjol/ifiscripts
  8. `gedit .bashrc'
  9. copy paste the following line to the end of this document and save: export PATH="/home/ifaingest3/ifigit/ifiscripts:$PATH"
  10. close terminal and reopen with CTRL+ALT+T
  1. sudo apt-get update -qq && sudo apt-get -y install autoconf automake build-essential cmake git libass-dev libfreetype6-dev libsdl2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev mercurial pkg-config texinfo wget zlib1g-dev libopenjpeg-dev
  2. mkdir -p ~/ffmpeg_sources ~/bin && export MAKEFLAGS="-j4"
  3. cd ~/ffmpeg_sources && wget http://www.nasm.us/pub/nasm/releasebuilds/2.13.02/nasm-2.13.02.tar.bz2 && tar xjvf nasm-2.13.02.tar.bz2 && cd nasm-2.13.02 && ./autogen.sh && PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && make && make install
  4. sudo apt-get install yasm libx264-dev libx265-dev libvpx-dev libfdk-aac-dev libmp3lame-dev libopus-dev
  5. cd ~/ffmpeg_sources && if cd x265 2> /dev/null; then hg pull && hg update; else hg clone https://bitbucket.org/multicoreware/x265; fi && cd x265/build/linux && PATH="$HOME/bin:$PATH" cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/ffmpeg_build" -DENABLE_SHARED:bool=off ../../source && PATH="$HOME/bin:$PATH" make && make install
  6. cd ~/ffmpeg_sources && wget -O ffmpeg-snapshot.tar.bz2 http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && tar xjvf ffmpeg-snapshot.tar.bz2 && cd ffmpeg && PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --pkg-config-flags="--static" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --extra-libs="-lpthread -lm" --bindir="$HOME/bin" --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-libopenjpeg && PATH="$HOME/bin:$PATH" make && make install && hash -r
  7. wget https://mediaarea.net/repo/deb/repo-mediaarea_1.0-5_all.deb && dpkg -i repo-mediaarea_1.0-5_all.deb && apt-get update
  1. install 64-bit git-bash using all the default settings https://git-scm.com/downloads - make sure it's the 64-bit version!
  2. install 64-bit python3, making sure to tick the option to ADD TO PATH https://www.python.org/downloads/
  3. open cmd and mkdir ifiscripts and git clone https://github.com/kieranjol/ifiscripts
  4. add this ifiscripts path (eg C:\Users\kieran\ifigit\ifiscripts)to the environmental path, following these steps:https://www.computerhope.com/issues/ch000549.htm
  5. install media-autobuild-suite but extract to the C:\mas folder due to long path issues
  1. install notepad++ - https://notepad-plus-plus.org/downloads/
  2. install libreoffice - https://www.libreoffice.org/download/download/
  3. install siegfried exe (https://www.itforarchivists.com/siegfried/)file to the ifiscripts folder and run sf -update in cmd
  4. download exiftoolinstaller and select the 'latest build' option - make sure that the option to add to path is ticked - https://oliverbetz.de/pages/Artikel/ExifTool-for-Windows
  5. pip install lxml clairmeta After configuring wsl.conf

[Interop] appendWindowsPath = False don't forget to open Powershell and put this command:

Restart-Service LxssManager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment