Sunday, February 19, 2017

Tutorial 03 - How to split the large videos

This document explains how to split the large videos using ffmpeg

CMD:
ffmpeg.exe -hide_banner -y -ss 00:00:00.0 -i <file_name> -vcodec copy -acodec copy -avoid_negative_ts make_zero -map 0 -segment_time <seconds> -f segment output%02d.mp4


-hide_banner Hide the banner during transcoding
-y Overwrite if the output file already exists
--ss Start time from which the video that needs to be splitted
-vcodec copy Copies the source video codec
-acodec copy Copies the source audio codec
-avoid_negative_ts make_zero
-map 0
-segment_time The duration which the video needs to be split
-f segment Produce the segmented output
output%02d.mp4 Output file names will be in this pattern


SAMPLE:
ffmpeg.exe -hide_banner -y -ss 00:00:00.0 -i SourceVideo.mp4 -vcodec copy -acodec copy -avoid_negative_ts make_zero -map 0 -segment_time 300 -f segment output%02d.mp4


No comments:

Post a Comment