In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
What this article shares to you is about the FFmpeg command line to achieve time screenshots of the video. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article. Let's take a look at it.
Let's talk about how to use the FFmpeg command line to achieve regular screenshots of video files, that is, screenshots of video files at fixed intervals, the output result is a series of pictures. First, the overview video itself is a fast pile of pictures, so it is only natural to take screenshots for the video. Through the FFmpeg command line, we can achieve this effect, let's look at it together. Second, command line parameters take screenshots every 1s
Ffmpeg-ss 00:00-I input2.mp4-f image2-r 1-t 02:45 d.jpg screenshots every 5 seconds
Ffmpeg-ss 00:00-I input2.mp4-f image2-r 0.2-t 02:45 d.jpg 3, parameter interpretation-ss: specify the time to start screenshot in the video file. 00:00 means the screenshot starts from the video file.
-I: specify the input file
-f: specify the output format. Image2 represents the output image.-r: specify the frequency of screenshots and the reciprocal of the time frequency of adding screenshots. For example, add 0.2 screenshots every 5 seconds. Every 4 seconds, add 0.25-t: specify the duration of the screenshot, here 02:45, indicate the time from the screenshot, the duration of the screenshot is 2 minutes 45 seconds d.jpg: specify the format of the output file, d indicates that the name uses a 3-bit integer index, and the parts with less than 3 bits are filled with 0, such as 001.jpgp015.jpgjjpg
4. Effect picture
The above is the FFmpeg command line to achieve regular screenshots of the video. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.