Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I am running a python script on Microsoft fabric notebook using the pydub library, which relies on external audio handling utilities like ffmpeg, to split MP3 files. The ffmpeg utility is not a Python package and must be installed separately in my environment. I use following code
import os # Set the path to the ffmpeg binaries ffmpeg_path = "/lakehouse/default/Files/Bronze/Model/test/ffmpeg" os.environ["PATH"] += os.pathsep + ffmpeg_path # Verify the PATH environment variable print(os.environ["PATH"]) # Verify that the binaries are accessible !ffmpeg -version
but I get error as
/usr/bin/sh: line 1: ffmpeg: command not found
How should I install ffmpeg in microsoft fabric?
Solved! Go to Solution.
Hi @w_maytinee ,
Use the following commands to install and verify ffmpeg.
!pip install imageio-ffmpeg
import imageio_ffmpeg as ffmpeg
print(ffmpeg.get_ffmpeg_version())
This is the environment I'm in:
This is the result of running both commands:
If you have any other questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Thank you so much Yang. Your method is really helpful
Hi @w_maytinee ,
Use the following commands to install and verify ffmpeg.
!pip install imageio-ffmpeg
import imageio_ffmpeg as ffmpeg
print(ffmpeg.get_ffmpeg_version())
This is the environment I'm in:
This is the result of running both commands:
If you have any other questions please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Thank you so much Yang. Your method is really helpful
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
8 | |
6 | |
5 | |
2 | |
1 |
User | Count |
---|---|
15 | |
10 | |
5 | |
5 | |
4 |