-1

I have problems with installing ffmpeg and ffprobe that's why I am looking for ways to avoid them

I have tried to ask neurolinks and even looked in Internet, but it is might to be impossible to install ffmpeg on that os that i have (nix os). So, i have tried to avoid it, but haven't found any solutions. Here is my code:

from pydub import AudioSegment
def convert_audio_to_wav(input_file, output_file):
    # Читаем аудиофайл с помощью pydub
    x = AudioSegment.from_file(input_file)
    x.export(output_file, format='wav') 

And it returns an error:

[Errno 2] No such file or directory: 'ffprobe'
Charles Duffy
  • 280,126
  • 43
  • 390
  • 441
  • 1
    `mpg123` is the classic MP3 decoder (read: the thing we used back before ffmpeg existed). – Charles Duffy Aug 03 '23 at 19:34
  • 1
    That said, you can absolutely use ffmpeg on NixOS; `nix-shell -p ffmpeg` works fine -- and since there's a working derivation, it should work every bit as well with any other install mechanism (`nix-env`, `nix profile`, etc). – Charles Duffy Aug 03 '23 at 19:35
  • ...it might not be topical _here_, but if you post either on https://discourse.nixos.org/ or at [unix.se] describing the problem you're having installing ffmpeg on NixOS, I might not have time for any in-depth debugging right now, but I could at least take a quick look. – Charles Duffy Aug 03 '23 at 19:41

0 Answers0