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!"
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
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!"