Capture video using ffmpeg

ffmpeg -i source file name -vcodec copy -acodec copy -ss 00:00:10 -to 00:00:15 destination filename -y

-ss time_off set the start time offset to set the start time point from which the interception of video, 00: 00: 10 is from the beginning of the 10s video interception

-to cut to the end of which time point in the video. 00:00:15 is the first video of the end of the 15s.

If the long time taken represented above -t -to transposition is taken from the first video 10s, 15s, video taken with a long -t. That is cut out of the video were 15s.

Local note:

If -ss placed after "-i source file name" -to the effect is gone, like -t effect, and how long the interception into a video. -Ss must pay attention to the location.

Parameter analysis

-vcodec copy indication with the original video of the same video codecs.

-acodec copy with the original video representation using the same audio codec.

-i represents the source video files

-y said that if the output file already exists is overwritten.

 Such as:

ffmpeg  -i D:/abc.avi -vcodec copy -acodec copy -ss 00:00:10 -to 00:00:15 D:/abc_clip.mp4 -y

Guess you like

Origin www.cnblogs.com/Sabre/p/12432554.html