Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

Cant find ffmpeg #11

Open
bloomyers opened this issue Aug 19, 2021 · 1 comment
Open

Cant find ffmpeg #11

bloomyers opened this issue Aug 19, 2021 · 1 comment

Comments

@bloomyers
Copy link

bloomyers commented Aug 19, 2021

Hello, I have telegram bot running Dokku droplet in Digital Ocean.

I've downloaded ffmpeg by sudo apt-get install ffmpeg on my Ubuntu machine from DigitalOcean.
When I'm searching by Whereis ffmpeg it return /usr/bin/ffmpeg.

In my code I'm converting telegram voice's sample rate from 24000/48000hz to 16000 to modify them.

command = [
            r'/usr/bin/ffmpeg',  # path to ffmpeg
            '-i', in_filename,
            '-f', 'ogg',
            '-acodec', 'libopus',
            '-ar', '48000',
            '-'
        ]
   ` subprocess.call(command, stdout=temp_out_file)`

It return in logs : FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/ffmpeg'
What path I should write to my telegram bot to find ffmpeg?

@tissole
Copy link

tissole commented Oct 8, 2021

Check this guide

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants