

There are a lot of StackOverflow questions and answers about how to cut videos with ffmpeg.


ffmpeg is a versatile tool that can virtually do anything with videos files in any codec but this also makes it very hard to master, even for small use cases such as cutting videos. Video:10408kB audio:156kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.If you are using Ubuntu 18.04 or 20.04, you might want to use ffmpeg to cut your video that is too long and you are only interested in a part of it for a presentation or sent it to a friend or Reddit.

$ ffmpeg -ss 00:00:12 -i DSCN8885.m4v -t 00:00:22 -vcodec copy -acodec copy vr2.m4v ffmpeg version N-78351-ga25c5db Copyright (c) 2000-2016 the FFmpeg developersīuilt with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)Ĭonfiguration: -extra-libs=-ldl -prefix=/opt/ffmpeg -mandir=/usr/share/man -enable-avresample -disable-debug -enable-nonfree -enable-gpl -enable-version3 -enable-libopencore-amrnb -enable-libopencore-amrwb -disable-decoder=amrnb -disable-decoder=amrwb -enable-libpulse -enable-libfreetype -enable-libx264 -enable-libx265 -enable-libfdk-aac -enable-libvorbis -enable-libmp3lame -enable-libopus -enable-libvpx -enable-libspeex -enable-libass -enable-avisynth -enable-libsoxr -enable-libxvid -enable-libvidstab
