Skip to content

Commit

Permalink
Test apt installed FFmpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
rajat2004 committed Feb 4, 2020
1 parent dd56e49 commit 4da8dd7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Build-OpenCV.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4da8dd7

Please sign in to comment.