| 
				
			 | 
			
			
				@@ -1,59 +0,0 @@ 
			 | 
		
	
		
			
			| 
				1
			 | 
			
				
			 | 
			
			
				-#!/bin/bash 
			 | 
		
	
		
			
			| 
				2
			 | 
			
				
			 | 
			
			
				-# 
			 | 
		
	
		
			
			| 
				3
			 | 
			
				
			 | 
			
			
				-# .---.                  .              . 
			 | 
		
	
		
			
			| 
				4
			 | 
			
				
			 | 
			
			
				-# |                      |              | 
			 | 
		
	
		
			
			| 
				5
			 | 
			
				
			 | 
			
			
				-# |--- .--. .-.  .-.  .-.|  .-. .--.--. |.-.  .-. .--.  .-. 
			 | 
		
	
		
			
			| 
				6
			 | 
			
				
			 | 
			
			
				-# |    |   (.-' (.-' (   | (   )|  |  | |   )(   )|  | (.-' 
			 | 
		
	
		
			
			| 
				7
			 | 
			
				
			 | 
			
			
				-# '    '     --'  --'  -' -  -' '  '   -' -'   -' '   -  --' 
			 | 
		
	
		
			
			| 
				8
			 | 
			
				
			 | 
			
			
				-# 
			 | 
		
	
		
			
			| 
				9
			 | 
			
				
			 | 
			
			
				-#                    Freedom in the Cloud 
			 | 
		
	
		
			
			| 
				10
			 | 
			
				
			 | 
			
			
				-# 
			 | 
		
	
		
			
			| 
				11
			 | 
			
				
			 | 
			
			
				-# ffmpeg functions 
			 | 
		
	
		
			
			| 
				12
			 | 
			
				
			 | 
			
			
				-# 
			 | 
		
	
		
			
			| 
				13
			 | 
			
				
			 | 
			
			
				-# License 
			 | 
		
	
		
			
			| 
				14
			 | 
			
				
			 | 
			
			
				-# ======= 
			 | 
		
	
		
			
			| 
				15
			 | 
			
				
			 | 
			
			
				-# 
			 | 
		
	
		
			
			| 
				16
			 | 
			
				
			 | 
			
			
				-# Copyright (C) 2014-2016 Bob Mottram <bob@freedombone.net> 
			 | 
		
	
		
			
			| 
				17
			 | 
			
				
			 | 
			
			
				-# 
			 | 
		
	
		
			
			| 
				18
			 | 
			
				
			 | 
			
			
				-# This program is free software: you can redistribute it and/or modify 
			 | 
		
	
		
			
			| 
				19
			 | 
			
				
			 | 
			
			
				-# it under the terms of the GNU Affero General Public License as published by 
			 | 
		
	
		
			
			| 
				20
			 | 
			
				
			 | 
			
			
				-# the Free Software Foundation, either version 3 of the License, or 
			 | 
		
	
		
			
			| 
				21
			 | 
			
				
			 | 
			
			
				-# (at your option) any later version. 
			 | 
		
	
		
			
			| 
				22
			 | 
			
				
			 | 
			
			
				-# 
			 | 
		
	
		
			
			| 
				23
			 | 
			
				
			 | 
			
			
				-# This program is distributed in the hope that it will be useful, 
			 | 
		
	
		
			
			| 
				24
			 | 
			
				
			 | 
			
			
				-# but WITHOUT ANY WARRANTY; without even the implied warranty of 
			 | 
		
	
		
			
			| 
				25
			 | 
			
				
			 | 
			
			
				-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
			 | 
		
	
		
			
			| 
				26
			 | 
			
				
			 | 
			
			
				-# GNU Affero General Public License for more details. 
			 | 
		
	
		
			
			| 
				27
			 | 
			
				
			 | 
			
			
				-# 
			 | 
		
	
		
			
			| 
				28
			 | 
			
				
			 | 
			
			
				-# You should have received a copy of the GNU Affero General Public License 
			 | 
		
	
		
			
			| 
				29
			 | 
			
				
			 | 
			
			
				-# along with this program.  If not, see <http://www.gnu.org/licenses/>. 
			 | 
		
	
		
			
			| 
				30
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				31
			 | 
			
				
			 | 
			
			
				-FFMPEG_VERSION=3.1.2 
			 | 
		
	
		
			
			| 
				32
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				33
			 | 
			
				
			 | 
			
			
				-function mesh_install_ffmpeg_old { 
			 | 
		
	
		
			
			| 
				34
			 | 
			
				
			 | 
			
			
				-    chroot "${rootdir}" apt-get -yq remove ffmpeg libav-tools 
			 | 
		
	
		
			
			| 
				35
			 | 
			
				
			 | 
			
			
				-    chroot "${rootdir}" apt-get -yq install build-essential 
			 | 
		
	
		
			
			| 
				36
			 | 
			
				
			 | 
			
			
				-    chroot "${rootdir}" apt-get -yq install --reinstall libmp3lame-dev libvorbis-dev libtheora-dev libspeex-dev yasm pkg-config libopenjp2-7-dev libx264-dev mjpegtools libmjpegtools-dev 
			 | 
		
	
		
			
			| 
				37
			 | 
			
				
			 | 
			
			
				-    mkdir -p ${rootdir}$INSTALL_DIR/ffmpeg-release 
			 | 
		
	
		
			
			| 
				38
			 | 
			
				
			 | 
			
			
				-    cd ${rootdir}$INSTALL_DIR 
			 | 
		
	
		
			
			| 
				39
			 | 
			
				
			 | 
			
			
				-    wget http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2 
			 | 
		
	
		
			
			| 
				40
			 | 
			
				
			 | 
			
			
				-    tar xvjf ffmpeg-${FFMPEG_VERSION}.tar.bz2 
			 | 
		
	
		
			
			| 
				41
			 | 
			
				
			 | 
			
			
				-    chroot ${rootdir} /bin/bash -x <<EOF 
			 | 
		
	
		
			
			| 
				42
			 | 
			
				
			 | 
			
			
				-cd ${INSTALL_DIR}/ffmpeg-${FFMPEG_VERSION} 
			 | 
		
	
		
			
			| 
				43
			 | 
			
				
			 | 
			
			
				-./configure --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libspeex --enable-shared --enable-pthreads --enable-libopenjpeg --enable-ffplay --enable-encoder=mjpeg --enable-decoder=mjpeg --enable-muxer=mjpeg 
			 | 
		
	
		
			
			| 
				44
			 | 
			
				
			 | 
			
			
				-make 
			 | 
		
	
		
			
			| 
				45
			 | 
			
				
			 | 
			
			
				-make install 
			 | 
		
	
		
			
			| 
				46
			 | 
			
				
			 | 
			
			
				-EOF 
			 | 
		
	
		
			
			| 
				47
			 | 
			
				
			 | 
			
			
				-    chroot "${rootdir}" apt-get install libav-tools 
			 | 
		
	
		
			
			| 
				48
			 | 
			
				
			 | 
			
			
				-    chroot "${rootdir}" ldconfig 
			 | 
		
	
		
			
			| 
				49
			 | 
			
				
			 | 
			
			
				-} 
			 | 
		
	
		
			
			| 
				50
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				51
			 | 
			
				
			 | 
			
			
				-function mesh_install_ffmpeg { 
			 | 
		
	
		
			
			| 
				52
			 | 
			
				
			 | 
			
			
				-    chroot "${rootdir}" apt-get -yq install build-essential 
			 | 
		
	
		
			
			| 
				53
			 | 
			
				
			 | 
			
			
				-    chroot "${rootdir}" apt-get -yq install ffmpeg libmp3lame-dev libvorbis-dev libtheora-dev 
			 | 
		
	
		
			
			| 
				54
			 | 
			
				
			 | 
			
			
				-    chroot "${rootdir}" apt-get -yq install libspeex-dev yasm pkg-config libopenjp2-7-dev 
			 | 
		
	
		
			
			| 
				55
			 | 
			
				
			 | 
			
			
				-    chroot "${rootdir}" apt-get -yq install libx264-dev mjpegtools libmjpegtools-dev libav-tools 
			 | 
		
	
		
			
			| 
				56
			 | 
			
				
			 | 
			
			
				-} 
			 | 
		
	
		
			
			| 
				57
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				58
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				59
			 | 
			
				
			 | 
			
			
				-# NOTE: deliberately there is no "exit 0" 
			 |