From 850615e1d333e818566263a64261d703bd5f3b5b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 24 Aug 2016 12:24:43 +0100 Subject: [PATCH] ffmpeg in its own script --- src/freedombone-app-tox | 21 -------------- src/freedombone-utils-ffmpeg | 53 ++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 21 deletions(-) create mode 100755 src/freedombone-utils-ffmpeg diff --git a/src/freedombone-app-tox b/src/freedombone-app-tox index 96863682..d9085844 100755 --- a/src/freedombone-app-tox +++ b/src/freedombone-app-tox @@ -48,26 +48,6 @@ TOXIC_FILE=/usr/local/bin/toxic QTOX_REPO="https://github.com/bashrc/qTox" QTOX_COMMIT='27a628a3789fca4f31516c3982e580052dd3c773' -FFMPEG_VERSION=3.1.2 - -function mesh_install_ffmpeg -{ - chroot "${rootdir}" apt-get -y remove ffmpeg libav-tools - chroot "${rootdir}" apt-get -y install build-essential - chroot "${rootdir}" apt-get -y install --reinstall libmp3lame-dev libvorbis-dev libtheora-dev libspeex-dev yasm pkg-config libopenjpeg-dev libx264-dev mjpegtools libmjpegtools-dev - mkdir -p ${rootdir}$INSTALL_DIR/ffmpeg-release - cd ${rootdir}$INSTALL_DIR - wget http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2 - tar xvjf ffmpeg-${FFMPEG_VERSION}.tar.bz2 - chroot ${rootdir} /bin/bash -x < +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +FFMPEG_VERSION=3.1.2 + +function mesh_install_ffmpeg +{ + chroot "${rootdir}" apt-get -y remove ffmpeg libav-tools + chroot "${rootdir}" apt-get -y install build-essential + chroot "${rootdir}" apt-get -y install --reinstall libmp3lame-dev libvorbis-dev libtheora-dev libspeex-dev yasm pkg-config libopenjpeg-dev libx264-dev mjpegtools libmjpegtools-dev + mkdir -p ${rootdir}$INSTALL_DIR/ffmpeg-release + cd ${rootdir}$INSTALL_DIR + wget http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2 + tar xvjf ffmpeg-${FFMPEG_VERSION}.tar.bz2 + chroot ${rootdir} /bin/bash -x <