[FFmpeg-user] Extracting Frames from Video using FFMPEG in GPU and File Name with TimeStamp in Linux

Michael Koch astroelectronic at t-online.de
Tue Sep 3 07:08:19 EEST 2019


Am 03.09.2019 um 02:27 schrieb suraj kandukuri:
> Hi,
>
> I have Long video ~8hrs to be converted to individual frames to be saved in
> a folder with the filename in the format
> "InputVideoName_Frame_Number_TimeStampoftheframeinthevideo.jpg" for
> example: InputVideo2_234_130425 in a python code. My system has GPU to
> process the load.
>
> I was able to get to a part of it by running the below code in terminal but
> was not able to have the filename in the format i need and also was not
> able to run it in python code with absolute pathnames
>
> ffmpeg -i ActualPath/Video.mp4 -vf fps=1 Outputfolder/out%d.jpg


Have a look at the examples in chapter 21.15.1
https://www.ffmpeg.org/ffmpeg-all.html

Try to add this option to your command line (I haven't tested it):

-frame_pts true

Michael




More information about the ffmpeg-user mailing list