Extracting Audio Tracks with FFmpeg

Поділитися
Вставка
  • Опубліковано 26 сер 2024

КОМЕНТАРІ • 14

  • @Citizen_Kate
    @Citizen_Kate Рік тому +1

    this was very well explained and just saved me a ton of time - thank you! :)

    • @mgc9002
      @mgc9002  Рік тому

      Happy to hear it, thanks for writing :)

  • @eedoan
    @eedoan 7 місяців тому

    thank you!!

    • @mgc9002
      @mgc9002  6 місяців тому

      You're welcome!

  • @coldhardtech
    @coldhardtech 6 місяців тому

    Wow this was amazing. Thanks so much for sharing!

    • @mgc9002
      @mgc9002  6 місяців тому

      You bet! FFmpeg is an awesome tool

  • @wantomek
    @wantomek 2 роки тому +1

    I don't mind normal Mike, i watch for the content. That is not to say that I'm not glad when you seem happy, but don't fake it.
    On another note I'd like to know if you know a similar fast way to combine a/v without re-encoding, maybe adding other tracks.

    • @mgc9002
      @mgc9002  2 роки тому

      Thanks, I truly appreciate your comments on this.
      As for your question, I do know how to combine audio and video without re-encoding using FFmpeg, but I've never tried adding extra audio tracks before. Let me experiment a bit and share it that as a new UA-cam video :)

    • @mgc9002
      @mgc9002  2 роки тому +1

      Hi again. I'm sharing some ffmpeg commands below that can do what you're asking. I hope to get a video produced in the next week or so that covers this material.
      This command combines the video from first.mp4 and audio from second.mp4, creating output.mp4:
      ffmpeg -i first.mp4 -i second.mp4 -map 0:v:0 -map 1:a:0 -c copy output.mp4
      This command combines everything from first.webm (video, audio & subtitle tracks) and adds in all the audio tracks from second.mp4, creating output.mkv:
      ffmpeg -i first.webm -i second.mp4 -map 0 -map 1:a -c copy output.mkv
      (The .mkv container apparently supports a wider range of codecs compared to .mp4 or .webm)

    • @mgc9002
      @mgc9002  2 роки тому +1

      Finally posted the video on this: ua-cam.com/video/1Vw3Js66eOw/v-deo.html

  • @NevelungValeste
    @NevelungValeste 7 місяців тому

    can you help me how to remove the vocals from video sir? only instrument remain...

    • @mgc9002
      @mgc9002  7 місяців тому

      For a FFmpeg solution, try a command like shown here: superuser.com/questions/1408044/isolating-separating-vocals-from-audio-by-ffmpeg
      I haven't tried it myself, and that thread is kind of old, so it might not work in newer versions of FFmpeg.
      (In the past, I used the Audacity application to do this. It requires a stereo audio track in which the vocals are in the "center" while the instruments are panned left or right. )

  • @user-ry4ok1uo4v
    @user-ry4ok1uo4v 8 місяців тому

    i am working on windows and it s giving me error when i try to use grep

    • @mgc9002
      @mgc9002  8 місяців тому

      Grep isn't normally available on Windows. But the good news is we are just using it here for convenience.
      Just run the ffprobe command and try to find the lines that show you audio streams