FFmpeg the basic usage of clipping video, extracting a frame image, merging video and converting video format commands __ffmpeg

Source: Internet
Author: User

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.