Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredJoin us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
74 | |
48 | |
16 | |
12 | |
7 |
User | Count |
---|---|
81 | |
81 | |
27 | |
8 | |
7 |