How to add a path to an Azure app service in order to be able to access ffmeg and ffprobe

Rebecca Peltz 35 Reputation points
2025-03-26T06:09:50.0133333+00:00

I'm using Azure AI Speech service. It needs ffmpeg and ffmpeg and ffprobe for speech recognition. The only files that persist between deployments are in /home/site/wwwroot. It doesn't do any good to install ffmpeg in to /usr/bin because they will go away on a future install. Instead I installed ffmpeg and ffprobe under /wwwroot. So these files persist now.

What I need is a was to add them to the path. I think that the path goes away when you leave kuda console. I've also used this in my GitHub workflow yml and the test for version always fails. I think this is because ~/.bashrc is always regenerated.

Is there any way to get ffmpeg and ffprobe installed an accessible to the AI speech service? I can manually install them in the /usr/bin directory, but I will have to do that every time I push something to GitHub. I could set up a docker file, but if there's a way to do it without using docker, let me know.

Thanks

- name: Set PATH for FFmpeg
        run: |
          echo "Adding /home/site/wwwroot/bin/ffmpeg-git-20240629-amd64-static to PATH"
          echo "export PATH=\$PATH:/home/site/wwwroot/bin/ffmpeg-git-20240629-amd64-static" >> ~/.bashrc
          source ~/.bashrc
    
      - name: Verify FFmpeg installation
        run: |
          ffmpeg -version
Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
1,985 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rebecca Peltz 35 Reputation points
    2025-03-26T06:22:58.66+00:00

    I also tried calling these from the GitHub actions workflow, but sudo only works for me in the kuda SSH.

    sudo apt-get update
    sudo apt-get install -y ffmpeg
    echo "FFmpeg installed!"
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.