There must be some parameters not in the example that can set the size of the output file or the number of frames. It's not fixed time intervals, but it could be useful in creating a preview image for an entire video, if you can get it to do the entire video. ![]() Might be close to what you eventually want, I tried this:įfmpeg -i input.mp4 -vf select='gt(scene\,0.1)',scale=160:120,tile -frames:v 1 preview.jpg Gets me over 2000 images, but not at 10 second intervals.įfmpeg -i video.avi -vf select='gt(scene\,0.4)',scale=160:120,tile -frames:v 1 preview.png Select='isnan(prev_selected_t) gte(t-prev_selected_t\,10)'įfmpeg -i "input.mp4" -vf "select='isnan(prev_selected_t) gte(t-prev_selected_t\,100)'" output_d.jpg Select frames with a minimum distance of 10 seconds: They do move through the video, but not at 10 second intervals. On a video which is 24 frames per second and is 3 minutes long.įfmpeg -i "input.mp4" -vf "select='not(mod(n,4000))'" output_d.jpg It does select a pile of frames, but doesn't seem to be 10 seconds when I try it: This should work if you replace 100 with the number of frames in 10 seconds. ![]() I also went to where there are various examples: ![]() Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) In fact, I've been unable to get any of the examples on that web page to work, I don't know why.įfmpeg -i input.mp4 -vf "select='not(mod(t,5))',setpts=N/FRAME_RATE/TB" output_d.jpg Upon trying this, I found the instructions to be more than a little obscure.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |