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

Комментарии • 18

  • @farzadmf
    @farzadmf Год назад +4

    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"

  • @samoylov1973
    @samoylov1973 Год назад +5

    Thank you! Like these Python automation tools. Please create and post more like this one.

  • @m.epictures6344
    @m.epictures6344 Год назад +5

    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?

    • @czowiekznikad2062
      @czowiekznikad2062 7 месяцев назад +1

      Hello, have you solved this problem? I have got the same error.

    • @calceta888
      @calceta888 6 месяцев назад

      same me

    • @beautifulpeoplev1050
      @beautifulpeoplev1050 6 месяцев назад

      same here, please tell us if you have solved the error

    • @achraf.machines
      @achraf.machines 3 месяца назад

      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

  • @natiadonay2104
    @natiadonay2104 Год назад +2

    can you please post about controling windows settings in python

  • @rajmajumdar5253
    @rajmajumdar5253 Год назад +2

    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?

  • @Exotic69420
    @Exotic69420 Год назад +1

    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

  • @seshusai8208
    @seshusai8208 Год назад +1

    How to create a telegram bot using pyrogram

  • @buckyzona
    @buckyzona 4 месяца назад

    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.

  • @lesliewubbel9157
    @lesliewubbel9157 8 месяцев назад

    Can you do this without saving locally and doing in memory?

  • @ReyV0303
    @ReyV0303 6 месяцев назад

    epiko, gracias por la info

  • @chefdenker704
    @chefdenker704 Год назад

    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...

    • @kartikvenugopal3211
      @kartikvenugopal3211 Месяц назад

      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.

    • @chefdenker704
      @chefdenker704 Месяц назад

      @@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.

  • @noertri618
    @noertri618 Год назад

    Why dont use ctypes??