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: