losarss.blogg.se

Make a palatte of video with ffmpeg command line code
Make a palatte of video with ffmpeg command line code









make a palatte of video with ffmpeg command line code

Here the input is 60 seconds long we automatically start the video at 5 seconds to get the first screenshot but then another 10 seconds is seeded to get a screenshot at the 15th second of the original input. So using that logic, if we set the seeking on the input to get a screenshot out and then applied another seeking with a map the results are going to get tricky, for example: $ ffmpeg -ss 00:00:05 -i input.mp4 -frames:v 1 frame_1.png -map 0:v -ss 00:00:10 -frames:v 1 frame_2.png (for example, the video is 60 seconds long -ss 00:00:10 would jump the start point of the video at the 10-second mark making the video only 50 seconds long in total). What happens here is the input is seeking to a new timestamp for a start location for playback. First you must have an understanding how -ss works.

make a palatte of video with ffmpeg command line code

So to clarify, the user was having issues understanding how to chain multiple seeking ( -ss) with one input to get random frames from the video. Is this possible at all? There is no interval, just "random" times from the video where I want to extract a screenshot Mr. but for multiple seek times and output names (those I guess can be generated from timestamp) with a single pass. Here was the Hey, I've got a question if something is even possible. For some reason the person pinged me to answer it so I took a stab at it. This question was asked on the FFmpeg Discord.











Make a palatte of video with ffmpeg command line code