Lossless Video Trimming with FFmpeg
Вставка
- Опубліковано 3 кві 2021
- Video notes: www.rickmakes.com/lossless-vi...
FFmpeg Notes: www.rickmakes.com/ffmpeg-notes/
FFmpeg playlist: • FFmpeg
Please follow me!
/ rickmakes
/ rickmakes
Visit my Amazon Storefront!
www.amazon.com/shop/rickmakes
www.amazon.co.uk/shop/rickmakes
www.amazon.ca/shop/rickmakes
Support my channel!
www.rickmakes.com/paypal_dona...
#ffmpeg - Навчання та стиль
incredible stuff
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.
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.
thanks for sharing knowledge
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.
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.
Amazing, but how can we do this on Windows?
come on over - use _free software [GNU/Linux]_
is that grand fucking junction?
Yep. From there?
@@Rickmakes no but i've been through that crossing enough times to recognize it while randomly searching for ffmpeg stuff.
I don't have ffplay, how to install that?
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....
@@jumanjiwarlord Oh I see, thanks for the answer, I'll try to get into it