From 329190e3e1f53efd97b201dd3fbda773944806ad Mon Sep 17 00:00:00 2001 From: Jacob Szwejbka Date: Tue, 5 May 2026 13:41:05 -0700 Subject: [PATCH] change ffmpeg install path away from conda on linux --- .ci/scripts/test_model_e2e.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.ci/scripts/test_model_e2e.sh b/.ci/scripts/test_model_e2e.sh index 188cb514b2f..97711de2713 100755 --- a/.ci/scripts/test_model_e2e.sh +++ b/.ci/scripts/test_model_e2e.sh @@ -258,7 +258,19 @@ fi if [ "$AUDIO_URL" != "" ]; then curl -L $AUDIO_URL -o ${MODEL_DIR}/$AUDIO_FILE elif [[ "$MODEL_NAME" == *whisper* ]] || [ "$MODEL_NAME" = "voxtral_realtime" ]; then - conda install -y -c conda-forge ffmpeg + if ! command -v ffmpeg >/dev/null; then + if [ "$(uname -s)" = "Linux" ] && command -v apt-get >/dev/null; then + if [ "$(id -u)" -eq 0 ]; then + apt-get update + apt-get install -y --no-install-recommends ffmpeg + else + sudo apt-get update + sudo apt-get install -y --no-install-recommends ffmpeg + fi + else + conda install -y -c conda-forge ffmpeg + fi + fi pip install datasets soundfile # We pushd'd into EXECUTORCH_ROOT above, so torch_pin is importable here. TORCHCODEC_PKG=$(python -c "from torch_pin import torchcodec_spec; print(torchcodec_spec())")