FFmpeg screenshot speed is particularly slow

Source: Internet
Author: User

FFmpeg is a particularly slow solution

Problem:

When using the ffmpeg command to perform some frames (about 300 frames) in a video, it is found that the speed is getting slower and slower with the frame time.

Cause analysis:

The reason for this is that "-ss" should be placed in the first parameter location due to incorrect parameter location, so that ffmpeg will directly jump to this frame, instead of frame-by-frame scanning.

Solution:

Run the following command:

Ffmpeg-y-I beijing-480p.mp4-ss 6000-s 320x180-frames 1-f image2 result.jpg

Changed:

Ffmpeg-y-ss 6000-I beijing-480p.mp4-s 320x180-frames 1-f image2 result.jpg

After testing, the execution speed of ffmpeg is changed from 8m44. 914s to 0m0. 964 s, which greatly improves the efficiency.

Compile FFmpeg in Linux to download and compile the source file

Linux compiling and upgrading FFmpeg

Install FFMPEG on CentOS 5.6

Install FFmpeg in Ubuntu

------------------------------------------ Split line ------------------------------------------

FFmpeg details: click here
FFmpeg: click here

This article permanently updates the link address:

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.