How to cut an AVI or MP4 Video Fast, Losslessly and Without Changing Container, using FFMPEG

Опубликовано: 20 Март 2020
на канале: ixthUA
359
like

If you want to cut an avi/mp4 video without re-encoding (losslessly) or changing container (file type) - FFMPEG can do it. Scroll down for more info.

https://ffmpeg.zeranoe.com/builds - for windows get FFMPEG here.

https://www.arj.no/2018/05/18/trimvideo - article that i used to make this guide.

Full commandline:

"C:\ProgramData\chocolatey\lib\ffmpeg\tools\ffmpeg\bin\ffmpeg.exe" -i "F:\Captures\EoCApp 2020-03-20 21-00-46-439.avi" -ss 00:00:00 -to 00:42:45 -c:v copy -c:a copy vid.avi
pause

Explanation:

"C:\ProgramData\chocolatey\lib\ffmpeg\tools\ffmpeg\bin\ffmpeg.exe" is the path to ffmpeg

-i means input, specify input file path after it

"F:\Captures\EoCApp 2020-03-20 21-00-46-439.avi" is the full path to the file that needs cutting

-ss 00:00:00 means where to start cutting in format of hh:mm:ss

-to 00:42:45 means where to end cutting in format of hh:mm:ss

-c:v copy means to copy video stream (lossless, without re-encoding). it supports encoding too, if you want it.

-c:a copy means to copy audio stream (lossless, without re-encoding). it also supports encoding.

vid.avi means output file name and container, i selected AVI container.

pause means to pause after job is done, to show you output log.

Using this method you can also change/convert containers, as long as they support included audio and video streams.

As you can see i just cut AVI file without re-encoding streams or changing container.


Смотрите видео How to cut an AVI or MP4 Video Fast, Losslessly and Without Changing Container, using FFMPEG онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь ixthUA 20 Март 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 359 раз и оно понравилось like людям.