1.FFMPEG cropping video
Command: Ffmpeg-ss start-t duration-i input-vcodec copy-acodec copy OUTPUT
The descriptions of each of these parameters are as follows:
Start: Starting time. As 00:01:20, indicates that the cropping section starts at 1 minutes and 20 seconds.
DURATION: Video length. As 00:02:30, a video that is 2 minutes and 30 seconds long to intercept.
Input: Enter. Represents the original video file
Output: Outputs.
-vcode copy and-acodec copy represent the encoding format for the video and audio that you want to use, and copy represents the original copy.
2.FFMPEG extracting a frame image
Command: Ffmpeg-i input-y-F image2-ss time-vframes 1 OUTPUT
The descriptions of each of these parameters are as follows:
Input: Enter. Represents the original video file
Time: At some point, the image to extract is the image at that point in time. Format 00:01:30 or write 90 directly
OUTPUT: Image files will be generated in the folder where the video files are located
3.FFMPEG Merge video files
Command: Ffmpeg-i concat: "Part1.mpg| Part2.mpg "-vcodec copy-acodec copy Output.mpg
The descriptions of each of these parameters are as follows:
PART1: The name of the first video file to be merged
PART2: The name of the second video file to merge
OUTPUT: The name of the merged video file
4.FFMPEG Convert video format
Command: ffmpeg-i input-f MPEG OUTPUT
For example: ffmpeg-i d:/temp1/avi-f mpeg D:/result.mpg