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

Don'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.

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
v-huijiey-msft
Community Support
Community Support

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 

v-huijiey-msft
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.