From 4da8dd74dc7df47304864fabdbe77c1ff8d9925e Mon Sep 17 00:00:00 2001 From: Rajat Singhal Date: Tue, 4 Feb 2020 22:47:31 +0530 Subject: [PATCH] Test apt installed FFmpeg --- Build-OpenCV.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Build-OpenCV.sh b/Build-OpenCV.sh index a679e1c..6e19dab 100755 --- a/Build-OpenCV.sh +++ b/Build-OpenCV.sh @@ -91,6 +91,10 @@ spatialPrint "Also installing skimage, dlib and moviepy as CV libraries" $PIP cython msgpack moviepy scikit-image $PIP dlib +# Don't build FFmpeg from source, instead use apt libraries +echo "# ffmpeg-build-script" >> $SHELLRC + + if [[ ! -n $(cat $SHELLRC | grep '# ffmpeg-build-script') ]]; then spatialPrint "Building FFmpeg now" execute sudo apt-get -qq remove x264 libx264-dev ffmpeg -y @@ -149,7 +153,9 @@ spatialPrint "Video manipulation libraries" execute sudo apt-get install libxine2-dev -y spatialPrint "Codecs" -# execute sudo apt-get install libswscale-dev libavformat-dev libavutil-dev libavcodec-dev -y +execute sudo apt-get install x264 libx264-dev ffmpeg -y +execute sudo apt-get install libasound2-dev -y +execute sudo apt-get install libswscale-dev libavformat-dev libavutil-dev libavcodec-dev -y execute sudo apt-get install libfaac-dev libmp3lame-dev -y execute sudo apt-get install libopencore-amrnb-dev libopencore-amrwb-dev -y execute sudo apt-get install yasm libtheora-dev libvorbis-dev libxvidcore-dev -y