Skip to content

Commit

Permalink
Fix ffmpeg install
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 230023508
  • Loading branch information
Ryan Sepassi authored and Copybara-Service committed Jan 19, 2019
1 parent 107d343 commit 04fbf9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions oss_scripts/oss_pip_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ set -e # fail and exit on any command erroring
: "${TF_VERSION:?}"

# Install ffmpeg for Audio FeatureConnector tests
FFMPEG=$(command -v ffmpeg)
if [[ -z "$FFMPEG" ]]
if command -v ffmpeg 2>/dev/null
then
echo "Using installed ffmpeg"
else
echo "Installing ffmpeg"
sudo add-apt-repository -y ppa:mc3man/trusty-media
sudo apt-get -qq update
sudo apt-get install -y ffmpeg
Expand Down

0 comments on commit 04fbf9f

Please sign in to comment.