Hi,
can anybody help me export a number of frames from a video at certain intervals (e.g. every 10 seconds) or set the overall amount of frames (e.g. 100 frames total). And (it's important for me) include the timecode in the filenames (e.g. out_0-00-00-000.jpg, out_0-00-10-000.jpg, etc.).
I've tried ffmpeg using:
from this post orCode:ffmpeg -i file -frame_pts true out%d.jpg
from this post.Code:ffmpeg -i source -vf fps=1,select='not(mod(t,5))' -frame_pts 1 z%d.jpg
But got similar results: just a numbered filelist, out_0000.jpg, out_0001.jpg, etc. Or slightly different numbered list, z0.jpg, z5.jpg, ... , z405.jpg (the last is close to seconds timecode but actually it's not accurate).
Is it possible to set something clear and simple like:
orCode:ffmpeg -i video.mp4 -frames -interval 10sec out_%timecode.jpg
Or perhaps are there any other more specific tools with such capabilities?Code:ffmpeg -i video.mp4 -frames -number 100 out_%timecode.jpg
I don't get why frame_pts doesn't work for me.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 1 of 1
Thread
-
Last edited by eliio; 13th Jun 2022 at 15:11.
Similar Threads
-
Cannot encode video with ffmpeg libx264 maintaining 5 reference frames.
By Budman1 in forum EditingReplies: 4Last Post: 20th Aug 2020, 13:27 -
Reading Video Frames Using ffmpeg
By chris319 in forum ProgrammingReplies: 15Last Post: 4th Nov 2019, 15:10 -
Weird Artifacts when extracting video frames to png in ffmpeg
By Blackcero in forum Newbie / General discussionsReplies: 10Last Post: 7th Jul 2018, 10:32 -
FFMPEG: how to extract audio from a specific timecode point?
By marcorocchini in forum Newbie / General discussionsReplies: 8Last Post: 2nd Jul 2017, 11:38 -
How do I tell ffmpeg to export a image sequence to a MP4 video libx 264. Bu
By oduodui in forum EditingReplies: 3Last Post: 23rd Jun 2017, 18:12