Convert Videos To MP3 with FFmpeg in Python
HTML-код
- Опубликовано: 30 сен 2024
- Today we will learn how to convert videos to MP3 files using ffmpeg in Python.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine...
💻 The Algorithm Bible Book: www.neuralnine...
👕 Programming Merch: www.neuralnine...
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine...
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/Neu...
🎙 Discord: / discord
I really like your videos, but I have to say, the title of this video is very misleading. It's basically wrapping a shell command, so it's not converting video to audio "in Python"
Thank you! Like these Python automation tools. Please create and post more like this one.
Thanks for sharing this. I get a error when I run - [WinError 2] The system cannot find the file specified
the file in question does exist. any ideas?
Hello, have you solved this problem? I have got the same error.
same me
same here, please tell us if you have solved the error
you need to copy the path of the file where ffmpeg.exe is located and add it to system variables, otherwise add the path to the command list like in the video
can you please post about controling windows settings in python
Okay, but how to add command line arguments from these like ask the video name, and the output name, without hard coding the input and the output files?
Also how can I add a thumbnail, metadata etc etc?
Bro i woulda needed this some time ago
I wanted to to this for mp4s I download from RUclips with RUclips-dl
i did it another way now
How to create a telegram bot using pyrogram
How can I utilize amf with ffmpeg, I can’t find one that recognizes amf. I’m saving a bunch of files but it takes too long.
Can you do this without saving locally and doing in memory?
epiko, gracias por la info
Hey thanks for your tutorial.
I have a question though, maybe you have a good solution.
I need to manipulate the audio files in my app. In Python you usually require the pydub module, which is based on ffmpeg encodings. However, the ffmpeg binaries have a size of 20 MB, which would significantly increase the size of my app on Android.
Do you have any good solution for that? Is there a way to add only part of the ffmpeg binaries? Or are there Python libraries that don't require ffmpeg to manipulate audio files such as joining them? Or is there a way to compress the binaries and decompress them when I need them? Hmm...
Hey, I custom-built smaller ffmpeg binaries for my audio app on macOS. Depending on your needs, I might be able to point you in the right direction. Basically, it had to do with the way I configured ffmpeg when I built it locally. Have you looked into the build configuration of ffmpeg ?
I assume you are building ffmpeg locally, not using a pre-built binary ? If not, you should build it yourself.
@@kartikvenugopal3211 Thanks for your answer. I finally didn't use ffmpeg. I decided to build my own audio recorder and player by accessing the Android java classes, by which I was able to define all the right audio parameters that were necessary to upload the file to a server. I was also able to join audio files by concatinating multiple audio chunks directly. So there was no need for using ffmpeg. It also helped me later in the testing and debugging phase, because by accessing the java classes and building my own recorder I had less issues with different hardware devices and Android versions.
Why dont use ctypes??