Skip to content

Commit 15da1d1

Browse files
change ffmpeg install path away from conda on linux (#19306)
1 parent ca7d5cf commit 15da1d1

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.ci/scripts/test_model_e2e.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,19 @@ fi
258258
if [ "$AUDIO_URL" != "" ]; then
259259
curl -L $AUDIO_URL -o ${MODEL_DIR}/$AUDIO_FILE
260260
elif [[ "$MODEL_NAME" == *whisper* ]] || [ "$MODEL_NAME" = "voxtral_realtime" ]; then
261-
conda install -y -c conda-forge ffmpeg
261+
if ! command -v ffmpeg >/dev/null; then
262+
if [ "$(uname -s)" = "Linux" ] && command -v apt-get >/dev/null; then
263+
if [ "$(id -u)" -eq 0 ]; then
264+
apt-get update
265+
apt-get install -y --no-install-recommends ffmpeg
266+
else
267+
sudo apt-get update
268+
sudo apt-get install -y --no-install-recommends ffmpeg
269+
fi
270+
else
271+
conda install -y -c conda-forge ffmpeg
272+
fi
273+
fi
262274
pip install datasets soundfile
263275
# We pushd'd into EXECUTORCH_ROOT above, so torch_pin is importable here.
264276
TORCHCODEC_PKG=$(python -c "from torch_pin import torchcodec_spec; print(torchcodec_spec())")

0 commit comments

Comments
 (0)