Lossless Video Trimming with FFmpeg

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024
  • Video notes: www.rickmakes....
    FFmpeg Notes: www.rickmakes....
    FFmpeg playlist: • FFmpeg
    Please follow me!
    / rickmakes
    / rickmakes
    Visit my Amazon Storefront!
    www.amazon.com...
    www.amazon.co....
    www.amazon.ca/...
    Support my channel!
    www.rickmakes....
    #ffmpeg

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

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

    thx for the -codec copy tip. I was too lazy to read through man pages of ffmpeg to figure out that omitting the codec attribute leads to actually encoding the trimmed video by default.

  • @samspade7522
    @samspade7522 5 месяцев назад

    Do you mind if I make a copy of this only for my use?
    I saw BigBoy on its first run after rebuild but was unable to get any viewable video. Yours is great. BTW thanks for your tutorials; I have learned a lot from viewing them.

  • @birisi585
    @birisi585 3 месяца назад

    if you enter the code without "-codec copy" trimming process taking longer but the output video is less likely to be buggy.
    I encountered some bugs with "-codec copy" and deleting these, did the trick.

    • @Rickmakes
      @Rickmakes  3 месяца назад +1

      If you don't use "-codec copy" it is re-encoding the video which can lower the quality. That is certainly an acceptable way to do it but I wanted to focus on the lossless technique for this video.

  • @fetB
    @fetB 3 года назад +2

    incredible stuff

  • @FringeWizard2
    @FringeWizard2 2 года назад +1

    Most of the time this works but I have this one clip that is 20:48 long and I try to copy from 0:00 to 20:30 and the resulting video is blank/black for the first 25 seconds though audio plays through it. I think I need to re-encode.

    • @Ryan-rn7ck
      @Ryan-rn7ck 2 года назад

      Re-encode using the following:
      ffmpeg -i out.mp4 -ss 00:01:03.0000 -to 00:01:13.0000 -c:v libx264 -c:a copy out2.mp4
      You will want to _not_ copy the codec otherwise, it can not on something that isn't a keyframe and cause black frames in the beginning of the video. This command will re-encode, which may or may not satisfy your use-case, but the trim will be more accurate.

  • @BeccaVinesz
    @BeccaVinesz 11 месяцев назад

    I don't have ffplay, how to install that?

    • @jumanjiwarlord
      @jumanjiwarlord 10 месяцев назад +1

      When installing ffmpeg from Homebrew - ffplay automatically gets installed. *If you're not familiar with Homebrew, you might want to familiarize yourself with that. Once Homebrew is running, it's as easy as: "brew install ffmpeg" But, Homebrew itself as a concept takes some getting used to....

    • @BeccaVinesz
      @BeccaVinesz 10 месяцев назад

      @@jumanjiwarlord Oh I see, thanks for the answer, I'll try to get into it

  • @MultiReadify
    @MultiReadify 2 года назад

    Amazing, but how can we do this on Windows?

  • @ddtrilive9554
    @ddtrilive9554 3 года назад

    thanks for sharing knowledge

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

    is that grand fucking junction?

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

      Yep. From there?

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

      @@Rickmakes no but i've been through that crossing enough times to recognize it while randomly searching for ffmpeg stuff.