CS-FreeStyle / 10000-How-To-Do-in-CS

1 stars 0 forks source link

cut and transcode video using ffmpeg #109

Open liuty10 opened 4 years ago

liuty10 commented 4 years ago

ffmpeg -ss 00:00:00 -i 1100_liu_video.mp4 -vf scale=1280:720 -to 00:14:28 1100_liu_video_720p.mp4

-i: This specifies the input file. In that case, it is (input.mp4). -ss: Used with -i, this seeks in the input file (input.mp4) to position. 00:01:00: This is the time your trimmed video will start with. -to: This specifies duration from start (00:01:40) to end (00:02:12). 00:02:00: This is the time your trimmed video will end with. -c copy: This is an option to trim via stream copy. (NB: Very fast)

reference: https://trac.ffmpeg.org/wiki/Scaling https://stackoverflow.com/questions/18444194/cutting-the-videos-based-on-start-and-end-time-using-ffmpeg