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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.