Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join 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

Reply
w_maytinee
Regular Visitor

how to install ffmpeg in microsoft fabric

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?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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:

vhuijieymsft_0-1721117129702.png

 

This is the result of running both commands:

vhuijieymsft_1-1721117129705.png

 

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!

View solution in original post

3 REPLIES 3
w_maytinee
Regular Visitor

Thank you so much Yang. Your method is really helpful 

Anonymous
Not applicable

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:

vhuijieymsft_0-1721117129702.png

 

This is the result of running both commands:

vhuijieymsft_1-1721117129705.png

 

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 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

May FBC25 Carousel

Fabric Monthly Update - May 2025

Check out the May 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.