Extracting Frames from Video using FFMPEG in GPU and File Name with TimeStamp in Linux

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Extracting Frames from Video using FFMPEG in GPU and File Name with TimeStamp in Linux

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




*Thanks, Suraj *Phone:- 972-900-3677
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Extracting Frames from Video using FFMPEG in GPU and File Name with TimeStamp in Linux

Michael Koch
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


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Extracting Frames from Video using FFMPEG in GPU and File Name with TimeStamp in Linux

suraj kandukuri
No luck.

On Mon, Sep 2, 2019 at 23:08 Michael Koch <[hidden email]>
wrote:

> 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
>
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

--
Sent from Gmail Mobile
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".