Skip to content
Sign upLog in
← Back to Community

Get ffmpeg to work with python

Profile icon
TheoHalHacker

I want to use ffmepg to compress a file, and I have attached a demo of ffmepg rotating a file.

I tried this from here:https://replit.com/talk/announcements/Discord-Music-Bots-Native-Support/50173

If you forked our template it should work. If you're starting from scratch make sure to open shell and npm install ffmpeg-static create a .replit file and in it put the following: run=""" export PATH="$PWD/node_modules/ffmpeg-static:$PATH" python main.py """

but I still get the save error.
I need to find a way to use the npm installed ffmpeg in my python.

Voters
Profile icon
BatuhanHolmes
Profile icon
TheoHal
Comments
hotnewtop
Profile icon
JBloves27

I think the module does not have such a function, or the module currently has a bug in it.

Hope this helps!

Profile icon
VulcanWM

to me, it looks like the error means that the module u inported doesnt have the function input

Profile icon
VulcanWM

it doesn't show me any error

Profile icon
TheoHal

oops, I changed the file, should be back now [email protected]