newbie help - framerate

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

newbie help - framerate

Mark Foley
I am trying for the first time to use ffmpeg. I have a collection of .jpg files
starting at 000.jpg, numbered sequentially.

On Windows 10 I've tried:

ffmpeg.exe -start_number 000 -i %03d.jpg -r 1/6 mom.mp4

This works (images displayed for 10 seconds), but only shows 3 of the 300+
images. If I leave off the -r option it builds the .mp4 with all images, but
they flash by as fast as possible.

How do I get all images to show for 10 seconds?

Problem #2.

The source .jpg images all vary in HxW size. How do I get them all to display
with the same height regardless of width?

Thanks (I need this for a presentation on Monday - gulp!)

--Mark
_______________________________________________
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: newbie help - framerate

Carl Eugen Hoyos-2


> Am 27.06.2020 um 00:14 schrieb Mark Foley <[hidden email]>:
>
> I am trying for the first time to use ffmpeg. I have a collection of .jpg files
> starting at 000.jpg, numbered sequentially.
>
> On Windows 10 I've tried:
>
> ffmpeg.exe -start_number 000 -i %03d.jpg -r 1/6 mom.mp4
>
> This works (images displayed for 10 seconds), but only shows 3 of the 300+
> images. If I leave off the -r option it builds the .mp4 with all images, but
> they flash by as fast as possible.
>
> How do I get all images to show for 10 seconds?

Funny that the option name “-framerate” is part of your subject.

>
> Problem #2.
>
> The source .jpg images all vary in HxW size. How do I get them all to display
> with the same height regardless of width?

I believe you can only output one resolution but a shell script will help.

Carl Eugen
_______________________________________________
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: newbie help - framerate

Mark Foley
On Sat, 27 Jun 2020 01:48:53 +0200 Carl Eugen Hoyos <[hidden email]> wrote:

>
> > Am 27.06.2020 um 00:14 schrieb Mark Foley <[hidden email]>:
> >
> > I am trying for the first time to use ffmpeg. I have a collection of .jpg files
> > starting at 000.jpg, numbered sequentially.
> >
> > On Windows 10 I've tried:
> >
> > ffmpeg.exe -start_number 000 -i %03d.jpg -r 1/6 mom.mp4
> >
> > This works (images displayed for 10 seconds), but only shows 3 of the 300+
> > images. If I leave off the -r option it builds the .mp4 with all images, but
> > they flash by as fast as possible.
> >
> > How do I get all images to show for 10 seconds?
>
> Funny that the option name “-framerate” is part of your subject.

Like I said, "newbie". I tried -framerate, but nothing happened. Then I tried
-r. Do you have suggestions on how to get all of the images processed to the
output and not just the first 3?

> >
> > Problem #2.
> >
> > The source .jpg images all vary in HxW size. How do I get them all to display
> > with the same height regardless of width?
>
> I believe you can only output one resolution but a shell script will help.
>
> Carl Eugen

How would a shell script help?

--Mark
_______________________________________________
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: newbie help - framerate

Carl Eugen Hoyos-2
Am Sa., 27. Juni 2020 um 03:58 Uhr schrieb Mark Foley <[hidden email]>:

>
> On Sat, 27 Jun 2020 01:48:53 +0200 Carl Eugen Hoyos <[hidden email]> wrote:
> >
> > > Am 27.06.2020 um 00:14 schrieb Mark Foley <[hidden email]>:
> > >
> > > I am trying for the first time to use ffmpeg. I have a collection of .jpg files
> > > starting at 000.jpg, numbered sequentially.
> > >
> > > On Windows 10 I've tried:
> > >
> > > ffmpeg.exe -start_number 000 -i %03d.jpg -r 1/6 mom.mp4
> > >
> > > This works (images displayed for 10 seconds), but only shows 3 of the 300+
> > > images. If I leave off the -r option it builds the .mp4 with all images, but
> > > they flash by as fast as possible.
> > >
> > > How do I get all images to show for 10 seconds?
> >
> > Funny that the option name “-framerate” is part of your subject.
>
> Like I said, "newbie". I tried -framerate, but nothing happened.

(Command line and complete, uncut console output missing.)
ffmpeg -framerate 1/6 -i %03d.jpg -r 10 mom.mp4
(-r 10 is not strictly necessary but for example old vlc does not play
files with very low framerates.)

> > > The source .jpg images all vary in HxW size. How do I get them all to display
> > > with the same height regardless of width?
> >
> > I believe you can only output one resolution but a shell script will help.
>
> How would a shell script help?

I slightly misunderstood the issue, the script would help if you wanted
jpg's with the same height as output.

Something similar to:
ffmpeg -framerate 1/6 -i %03d.jpg -vf scale=-1:512 -r 10 mom.mp4

Carl Eugen
_______________________________________________
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".