Slide show with transition

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Slide show with transition

FFmpeg-users mailing list
I have 15 JPEG file to be used for a slide (duration: 135 sec): Each image is display 9 seconds and without transition the mkv file is ok.
I tried this for a transition 1 second long

ffmpeg -y -framerate 1/9 -i %%02d.JPG -i SligoAir_WhiteBlanket.mp3 ^
-vf zoompan=d=9:fps=1,framerate=fps=15:interp_start=0:interp_end=255:scene=100 ^
-r 15 -vsync vfr -pix_fmt yuv420p output.mkv

The transition is ok for the first 3 image then the slide jump to image at position 10 and that picture remains blocked...
What am I doing wrong ?

Cheers

François Rappaz

Bibliothek der Mathematisch-Naturwissenschaftlichen und Medizinischen Fakultät
Bibliothèque de la Faculté des sciences et de médecine
Rue du musée 4
Université de Fribourg CH-1700 Fribourg Switzerland
http://www.unifr.ch/dokpe/
Tel.: 41 (0)26 300 92 60
[cid:image001.png@01D36DE8.58966D50]


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

image001.png (13K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Slide show with transition

Michael Koch
Am 17.11.2020 um 16:05 schrieb RAPPAZ Francois via ffmpeg-user:
> I have 15 JPEG file to be used for a slide (duration: 135 sec): Each image is display 9 seconds and without transition the mkv file is ok.
> I tried this for a transition 1 second long
>
> ffmpeg -y -framerate 1/9 -i %%02d.JPG -i SligoAir_WhiteBlanket.mp3 ^
> -vf zoompan=d=9:fps=1,framerate=fps=15:interp_start=0:interp_end=255:scene=100 ^
> -r 15 -vsync vfr -pix_fmt yuv420p output.mkv
>
> The transition is ok for the first 3 image then the slide jump to image at position 10 and that picture remains blocked...
> What am I doing wrong ?

this works for me:

rem  make 15 test images

ffmpeg -f lavfi -i testsrc2=size=vga:duration=15:rate=1 -y test%%2d.jpg


rem  make slideshow, each image is shown 9 sec + 1 sec crossfade

ffmpeg -i test%%02d.jpg -vf
zoompan=d=10:fps=1,framerate=fps=25:interp_start=0:interp_end=255:scene=100
out.mp4

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: Slide show with transition

FFmpeg-users mailing list
>> I have 15 JPEG file to be used for a slide (duration: 135 sec): Each image is display 9 seconds and without transition the mkv file is ok.
>> I tried this for a transition 1 second long
>>
>> ffmpeg -y -framerate 1/9 -i %%02d.JPG -i SligoAir_WhiteBlanket.mp3 ^
>> -vf
>> zoompan=d=9:fps=1,framerate=fps=15:interp_start=0:interp_end=255:scene
>> =100 ^ -r 15 -vsync vfr -pix_fmt yuv420p output.mkv
>>
>> The transition is ok for the first 3 image then the slide jump to image at position 10 and that picture remains blocked...
>> What am I doing wrong ?
>
>this works for me:
>
>rem  make 15 test images
>
>ffmpeg -f lavfi -i testsrc2=size=vga:duration=15:rate=1 -y test%%2d.jpg
>rem  make slideshow, each image is shown 9 sec + 1 sec crossfade
>
>ffmpeg -i test%%02d.jpg -vf
>zoompan=d=10:fps=1,framerate=fps=25:interp_start=0:interp_end=255:scene=100
>out.mp4
>Michael

My images files are 01.JPG, 02.JPG ... 10.JPG upto 15.JPG
I wonder if " -i %%02d.JPG " is realy working or is correct. I still have a jump to 10.JPG after 03.JPG
You can access my files here if you have the time
https://drive.switch.ch/index.php/s/DbAVwtai3mOT43j

Moreover I compared mp4 file made on Ubuntu and displayed ok with the default video viewer or with vlc, where on Windows there are jumps between images with the default viewer and no images at all with vlc.
Mkv output made on windows is displayed correctly on Windows with the default viewer but does not work on Linux.

François

_______________________________________________
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".
_______________________________________________
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: Slide show with transition

Michael Koch
Am 18.11.2020 um 09:50 schrieb RAPPAZ Francois via ffmpeg-user:

>>> I have 15 JPEG file to be used for a slide (duration: 135 sec): Each image is display 9 seconds and without transition the mkv file is ok.
>>> I tried this for a transition 1 second long
>>>
>>> ffmpeg -y -framerate 1/9 -i %%02d.JPG -i SligoAir_WhiteBlanket.mp3 ^
>>> -vf
>>> zoompan=d=9:fps=1,framerate=fps=15:interp_start=0:interp_end=255:scene
>>> =100 ^ -r 15 -vsync vfr -pix_fmt yuv420p output.mkv
>>>
>>> The transition is ok for the first 3 image then the slide jump to image at position 10 and that picture remains blocked...
>>> What am I doing wrong ?
>> this works for me:
>>
>> rem  make 15 test images
>>
>> ffmpeg -f lavfi -i testsrc2=size=vga:duration=15:rate=1 -y test%%2d.jpg
>> rem  make slideshow, each image is shown 9 sec + 1 sec crossfade
>>
>> ffmpeg -i test%%02d.jpg -vf
>> zoompan=d=10:fps=1,framerate=fps=25:interp_start=0:interp_end=255:scene=100
>> out.mp4
>> Michael
> My images files are 01.JPG, 02.JPG ... 10.JPG upto 15.JPG
> I wonder if " -i %%02d.JPG " is realy working or is correct. I still have a jump to 10.JPG after 03.JPG
> You can access my files here if you have the time
> https://drive.switch.ch/index.php/s/DbAVwtai3mOT43j

The problem is that your images 3 and 4 have different size. As far as I
know, FFmpeg can't combine images with different sizes to a slideshow
(please correct me if I'm wrong). By the way, all images must also have
the same pixel format. I did't check that in your images. For example,
if one image has yuv420 and another has yuv422, that won't work.

Possible workaround: Use batch processing in IrfanView to bring all
images to the same size.

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: Slide show with transition

FFmpeg-users mailing list

>The problem is that your images 3 and 4 have different size. As far as I know, FFmpeg can't combine images with different sizes to a slideshow (please correct me if I'm >wrong). By the way, all images must also have the same pixel format. I did't check that in your images. For example, if one image has yuv420 and another has yuv422, that >won't work.

>Possible workaround: Use batch processing in IrfanView to bring all images to the same size.

>Michael

Size is the size in pixels or in bytes ?

F
_______________________________________________
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: Slide show with transition

Michael Koch
Am 18.11.2020 um 16:37 schrieb RAPPAZ Francois via ffmpeg-user:
>> The problem is that your images 3 and 4 have different size. As far as I know, FFmpeg can't combine images with different sizes to a slideshow (please correct me if I'm >wrong). By the way, all images must also have the same pixel format. I did't check that in your images. For example, if one image has yuv420 and another has yuv422, that >won't work.
>> Possible workaround: Use batch processing in IrfanView to bring all images to the same size.
>> Michael
> Size is the size in pixels or in bytes ?

width and height

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: Slide show with transition

Carl Zwanzig
On 11/18/2020 7:55 AM, Michael Koch wrote:
>> Size is the size in pixels or in bytes ?
>
> width and height
(pixels/resolution) The byte count will vary with the image compression.

Using Irfanview to process all the images into a common format is a good idea.

z!
_______________________________________________
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: Slide show with transition

Paul B Mahol
On Wed, Nov 18, 2020 at 6:10 PM Carl Zwanzig <[hidden email]> wrote:

> On 11/18/2020 7:55 AM, Michael Koch wrote:
> >> Size is the size in pixels or in bytes ?
> >
> > width and height
> (pixels/resolution) The byte count will vary with the image compression.
>
> Using Irfanview to process all the images into a common format is a good
> idea.
>

No, it is a very bad idea.

You are certainly a supporter of that software and bad software practice in
general.

This can be coded with ease to be done with FFmpeg either via shell or
programming.


>
> z!
> _______________________________________________
> 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".
_______________________________________________
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: Slide show with transition

Carl Zwanzig
On 11/18/2020 9:13 AM, Paul B Mahol wrote:
> No, it is a very bad idea.
Why? (explanation missing)

> You are certainly a supporter of that software and bad software practice in
> general.
I support things that work; IrfanView works well for a great many people and
for the jobs it was designed to do; so do XNview, OBS, ImageMagick, VLC, and
a raft of other packages.

Then explain why it's "bad practice" (and whether you're referring "to
support that software" or "to run all the images through it" or something
else?). Normalizing formats/resolutions/etc is a common practice when
working with multiple sources.

> This can be coded with ease to be done with FFmpeg either via shell or
> programming.
Again, explanation missing. If it could be done "with ease" it should have
been quick to provide an example, especially to a neophyte (the OP); I'd
expect nothing less from someone with your experience. Take the opportunity
to help someone learn instead of throwing barriers in their way.

Later,

z!
_______________________________________________
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: Slide show with transition

FFmpeg-users mailing list
In reply to this post by Paul B Mahol
>On Wed, Nov 18, 2020 at 6:10 PM Carl Zwanzig <[hidden email]> wrote:
>> On 11/18/2020 7:55 AM, Michael Koch wrote:
>> >> Size is the size in pixels or in bytes ?
>> >
>> > width and height
>> (pixels/resolution) The byte count will vary with the image compression.
>>
>> Using Irfanview to process all the images into a common format is a
>> good idea.

>No, it is a very bad idea.
>You are certainly a supporter of that software and bad software practice in general.
>This can be coded with ease to be done with FFmpeg either via shell or programming.
> z!

Yes, can you give an example with FFmpeg ?
Thanks
François

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".
_______________________________________________
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: Slide show with transition

Carl Zwanzig
On 11/18/2020 10:30 PM, RAPPAZ Francois via ffmpeg-user wrote:

>> No, it is a very bad idea.
>> You are certainly a supporter of that software and bad software practice in general.
>> This can be coded with ease to be done with FFmpeg either via shell or programming.

Please be careful with quoting- Paul B Mahol wrote those words, not me (I
commented on them).

> Yes, can you give an example with FFmpeg ?

A question for Paul.

z!
_______________________________________________
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".