Large Video Project

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

Large Video Project

Joshua Barnard
Hi all,

Thank you for taking the time to read this.

I'm working on a project for my company that involves creating a time lapse video.

The issue I'm having is that I have 6TB of raw video recorded at 1080p/60FPS and I need to condense this down to 5-10 minutes of video footage.

Is it possible to use FFMPEG to create a still image every 240 frames?

Kind Regards,


Joshua Barnard
Group Marketing Manager


Lawrence David Limited



_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: Large Video Project

Brainiarc7
On Fri, 25 Jan 2019 at 17:32, Joshua Barnard <
[hidden email]> wrote:

> Hi all,
>
> Thank you for taking the time to read this.
>
> I'm working on a project for my company that involves creating a time
> lapse video.
>
> The issue I'm having is that I have 6TB of raw video recorded at
> 1080p/60FPS and I need to condense this down to 5-10 minutes of video
> footage.
>
> Is it possible to use FFMPEG to create a still image every 240 frames?
>
> Kind Regards,
>
>
> Joshua Barnard
> Group Marketing Manager
>
>
> Lawrence David Limited
>
>
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".


Hello there,

It's possible.

For a single image every 240 frames, assuming a frame rate of 60, you can
exploit the select filter as shown:

ffmpeg -i input -filter:v 'select=not(mod(n\,240))' image%02d.png

To use time-based selection which will also include the first frame:

ffmpeg -i input -filter:v
'select=isnan(prev_selected_t)+gte(t-prev_selected_t\,4),setpts=N/(60*TB)'
image%02d.png

For documentation, see the select and the setpts filters:

1. Select: http://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect

2. setpts filter: http://ffmpeg.org/ffmpeg-filters.html#asetpts_002c-setpts
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: Large Video Project

andrei ka
i'd think about adding scene change detection to your fixed number of
frames extact, lot's of things may happen during 4 secs. i bet you can add
this just as an extra filter to that simple mod 240  filter, so everything
will be done in 1 pass

On Fri, Jan 25, 2019 at 3:55 PM Dennis Mungai <[hidden email]> wrote:

> On Fri, 25 Jan 2019 at 17:32, Joshua Barnard <
> [hidden email]> wrote:
>
> > Hi all,
> >
> > Thank you for taking the time to read this.
> >
> > I'm working on a project for my company that involves creating a time
> > lapse video.
> >
> > The issue I'm having is that I have 6TB of raw video recorded at
> > 1080p/60FPS and I need to condense this down to 5-10 minutes of video
> > footage.
> >
> > Is it possible to use FFMPEG to create a still image every 240 frames?
> >
> > Kind Regards,
> >
> >
> > Joshua Barnard
> > Group Marketing Manager
> >
> >
> > Lawrence David Limited
> >
> >
> >
> > _______________________________________________
> > ffmpeg-user mailing list
> > [hidden email]
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > [hidden email] with subject "unsubscribe".
>
>
> Hello there,
>
> It's possible.
>
> For a single image every 240 frames, assuming a frame rate of 60, you can
> exploit the select filter as shown:
>
> ffmpeg -i input -filter:v 'select=not(mod(n\,240))' image%02d.png
>
> To use time-based selection which will also include the first frame:
>
> ffmpeg -i input -filter:v
> 'select=isnan(prev_selected_t)+gte(t-prev_selected_t\,4),setpts=N/(60*TB)'
> image%02d.png
>
> For documentation, see the select and the setpts filters:
>
> 1. Select: http://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect
>
> 2. setpts filter:
> http://ffmpeg.org/ffmpeg-filters.html#asetpts_002c-setpts
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: Large Video Project

Joshua Barnard
Do you have an alteration to the script for that?

Kind Regards,


Joshua Barnard
Group Marketing Manager

Lawrence David Limited
Woodston Point

01733 397622
Shrewsbury Avenue

01733 397635
Woodston Industry

07393 235031
Peterborough

[hidden email]
PE2 7LB

www.lawrencedavid.co.uk







Group Activities Include
• Home Delivery Vans
• Vehicle Refurbishment
• Trailer Manufacturing
• Used Trailer Sales
• Accident Repairs
• Rigid Bodywork
• Asset Management
• Leasing & Finance




-----Original Message-----
From: ffmpeg-user <[hidden email]> On Behalf Of andrei ka
Sent: 25 January 2019 15:07
To: FFmpeg user questions <[hidden email]>
Subject: Re: [FFmpeg-user] Large Video Project

i'd think about adding scene change detection to your fixed number of frames extact, lot's of things may happen during 4 secs. i bet you can add this just as an extra filter to that simple mod 240  filter, so everything will be done in 1 pass

On Fri, Jan 25, 2019 at 3:55 PM Dennis Mungai <[hidden email]> wrote:

> On Fri, 25 Jan 2019 at 17:32, Joshua Barnard <
> [hidden email]> wrote:
>
> > Hi all,
> >
> > Thank you for taking the time to read this.
> >
> > I'm working on a project for my company that involves creating a
> > time lapse video.
> >
> > The issue I'm having is that I have 6TB of raw video recorded at
> > 1080p/60FPS and I need to condense this down to 5-10 minutes of
> > video footage.
> >
> > Is it possible to use FFMPEG to create a still image every 240 frames?
> >
> > Kind Regards,
> >
> >
> > Joshua Barnard
> > Group Marketing Manager
> >
> >
> > Lawrence David Limited
> >
> >
> >
> > _______________________________________________
> > ffmpeg-user mailing list
> > [hidden email]
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > [hidden email] with subject "unsubscribe".
>
>
> Hello there,
>
> It's possible.
>
> For a single image every 240 frames, assuming a frame rate of 60, you
> can exploit the select filter as shown:
>
> ffmpeg -i input -filter:v 'select=not(mod(n\,240))' image%02d.png
>
> To use time-based selection which will also include the first frame:
>
> ffmpeg -i input -filter:v
> 'select=isnan(prev_selected_t)+gte(t-prev_selected_t\,4),setpts=N/(60*TB)'
> image%02d.png
>
> For documentation, see the select and the setpts filters:
>
> 1. Select: http://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect
>
> 2. setpts filter:
> http://ffmpeg.org/ffmpeg-filters.html#asetpts_002c-setpts
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: Large Video Project

Michael Koch
In reply to this post by Brainiarc7

> It's possible.
>
> For a single image every 240 frames, assuming a frame rate of 60, you can
> exploit the select filter as shown:
>
> ffmpeg -i input -filter:v 'select=not(mod(n\,240))' image%02d.png

%02d means the images have a 2-digit number in the filename. For a 6TB
video, larger numbers will be required, for example %06d

Another way to do the same thing is to specify an output frame rate of
0.25 (4 seconds from one image to the next):

ffmpeg -i input -vf fps=0.25 image%06d.jpg

Michael

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

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