2 # Copyright (C) 2018 Intel Corporation
3 # SPDX-License-Identifier: Apache-2.0
9 if [ "$params" == "-y" ]; then
14 read -p "Add third-party Nux Dextop repository and install FFmpeg package (y) / Skip this step (N)" yn
22 # install dependencies
23 if [[ -f /etc/lsb-release ]]; then
26 sudo -E apt-get install -y \
52 gstreamer1.0-plugins-base \
57 sudo -E yum install -y centos-release-scl epel-release
58 sudo -E yum install -y \
81 libstdc++-static.i686 \
88 gstreamer1-plugins-base
90 # Python 3.6 for Model Optimizer
91 sudo -E yum install -y rh-python36
92 source scl_source enable rh-python36
94 wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz
95 tar xf cmake-3.12.3.tar.gz
102 echo "FFmpeg is required for processing audio and video streams with OpenCV. Please select your preferred method for installing FFmpeg:"
104 echo "Option 1: Allow installer script to add a third party repository, Nux Dextop (http://li.nux.ro/repos.html), which contains FFmpeg. FFmpeg rpm package will be installed from this repository. "
105 echo "WARNING: This repository is NOT PROVIDED OR SUPPORTED by CentOS."
106 echo "Once added, this repository will be enabled on your operating system and can thus receive updates to all packages installed from it. "
108 echo "Consider the following ways to prevent unintended 'updates' from this third party repository from over-writing some core part of CentOS:"
109 echo "a) Only enable these archives from time to time, and generally leave them disabled. See: man yum"
110 echo "b) Use the exclude= and includepkgs= options on a per sub-archive basis, in the matching .conf file found in /etc/yum.repos.d/ See: man yum.conf"
111 echo "c) The yum Priorities plug-in can prevent a 3rd party repository from replacing base packages, or prevent base/updates from replacing a 3rd party package."
113 echo "Option 2: Skip FFmpeg installation."
117 sudo -E rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
118 sudo -E yum install -y ffmpeg
120 echo "FFmpeg installation skipped. You may build FFmpeg from sources as described here: https://trac.ffmpeg.org/wiki/CompilationGuide/Centos"