S
S
s1veme2020-09-20 13:17:12
Python
s1veme, 2020-09-20 13:17:12

Why is ffmpeg not found when called via python?

When accessed this way: Returns: "ffmpeg" is not recognized as an internal or external command, operable program, or batch file. If you just write through the console (In the same directory) - ffmpeg -i audio.ogg audio.wav Then everything works fine. What is the problem?

os.system("ffmpeg -i audio.ogg audio.wav")




Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Volodymyr Palamar, 2020-09-20
@aleksegolubev

Because there is no ffmpeg command in ENV, you need to either write the full path to the file or move all files to one folder☝️

S
s1veme, 2020-09-20
@aleksegolubev

Moved all ffmpeg files - to the project folder - everything worked.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question