How to edit multiple videos at once using FFMPEG

Поділитися
Вставка
  • Опубліковано 24 січ 2019
  • FFMPEG is free, open source, command line only video and audio editing software.
    In this video, I show a method of combining 3 video files into one, and repeating this process automatically for every video in a given directory.
    It can be downloaded here:
    ffmpeg.org/
  • Наука та технологія

КОМЕНТАРІ • 21

  • @darweeshmuhammad2075
    @darweeshmuhammad2075 4 роки тому +2

    Great video! Now I understand why video editors would re-encode a few frames at the splice points when you try to use Smart/Intelligent encode. Thanks!

  • @SteveAB4EL
    @SteveAB4EL 5 років тому +1

    Pretty good!

  • @browsetube4366
    @browsetube4366 3 роки тому

    Can you share code win bat file. I want to watermark main videos besides intro outro videos?

  •  2 роки тому

    Hello when i press enter for do the work i have "no such file or directory" in red and if i add a a file with same name like my vidéo i have permission denied can you help me plz ?

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

    how can i do this in windows?

  • @ringkunmori
    @ringkunmori 5 років тому

    Oh God TJ is a Chad.

  • @MyLinuxToyBox
    @MyLinuxToyBox 5 років тому +1

    I do all my editing with ffmpeg. Kdenlive is a memory hog and my computer is not high end. The key seems to be saving your scripts and using bash with arguments.

    • @TJFREE
      @TJFREE  5 років тому +1

      That's awesome. FFmpeg from the command line can be so much faster for certain edits. I'm also playing with MLT/Melt a little for the same reason. Thanks for sharing!

    • @MyLinuxToyBox
      @MyLinuxToyBox 5 років тому +1

      Python using subprocess package can do loads of automated tasks. I am lov'en it. I retired from computer automation and seem to want to automate everything I do as my fun now. @@TJFREE

    • @MyLinuxToyBox
      @MyLinuxToyBox 5 років тому +1

      I just downloaded it and am playin hard. I have heard of melt, but not familiar with it. YET ! ha ha ha @@TJFREE

    • @RoadPirateFilms
      @RoadPirateFilms 3 роки тому

      melt is powerful. It is what kdenlive and openshot use to render videos. I actually saw a blog post that that claims that you can live stream directly to UA-cam using the melt command line.

  • @stevengarciaco
    @stevengarciaco 5 років тому

    How can I do the same on windows 10. Thank you

    • @TJFREE
      @TJFREE  5 років тому +1

      You can get FFmpeg for Windows here: ffmpeg.org/ the actual commands should be the same.

  • @RoadPirateFilms
    @RoadPirateFilms 3 роки тому

    I was doing some concating earlier with ffmpeg but one video was shot vertically and the other one was shot horizontally so I had to use a slightly different method which first converted both videos to the same resolution and then concatted them. It's actually my most recent video on my channel that I used this method to concat the video files: ua-cam.com/video/m5hZ5pmSEDw/v-deo.html
    This is the basic script:
    if [ -f "concat_file_list.txt" ]; then
    rm "concat_file_list.txt"
    fi
    for file in "$@"; do
    out="${file%.*}-res_matched.mkv"
    ffmpeg -nostdin -y -hide_banner -loglevel info -i "$file" -vf "scale=w=1280:h=720:force_original_aspect_ratio=2,crop=1280:720" -movflags +faststart -c:v libx264 -preset faster -crf 23 -tune zerolatency -c:a aac "$out"
    echo "file '$out'" >> "concat_file_list.txt"
    done
    ffmpeg -safe 0 -f concat -i "concat_file_list.txt" -c copy "concatted_video.mkv"
    you just run it with as many files that you want to encode given as arguments for example:
    sh ffmpeg-concat.sh intro.mp4 "video 90210.mkv" "bill gates hit in face with a pie.mov" live_stream_clip.ts outro.mkv
    😂

    • @dr_megz
      @dr_megz 3 роки тому

      Hello sir
      I want your help
      I want to encode my videos
      Make bitrate for video 2500k
      And audio 128k acc
      And add subtitle to them
      What is the right command i should write to make that as i tried many times and batch crashed

    • @Aman9692
      @Aman9692 3 роки тому

      the video is private.. care to share?

    • @RoadPirateFilms
      @RoadPirateFilms 3 роки тому

      @@dr_megz the script that I made only works in the bash shell so unless you have Linux installed (or possibly Windows Subsystem for Linux or CYGWIN) you won't be able to use it directly in Windows. I'm sure it could be modified to work in a batch script or a PowerShell script in Windows but I don't know PowerShell well enough to do it without a lot of trial and error.