ffmpeg: slide show on Windows

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

ffmpeg: slide show on Windows

FFmpeg-users mailing list
Hello there

I'm on Windows 10 with ffmpeg and I would like to make a video (a slide) with a bunch of jpeg files and an mp3 music file.
I tried first
cat *.JPG | ffmpeg -y -f image2pipe -framerate 1 -i SligoAir_WhiteBlanket.mp3 -vsync vfr -pix_fmt yuv420p -movflags +faststart output.mkv
with fails with
cat: write error: No space left on device

Then I tried with
ffmpeg -y -f image2 -framerate 8 -i "%02d.JPG" -i SligoAir_WhiteBlanket.mp3 -vsync vfr -pix_fmt yuv420p output.mkv
It fails also with
Could find no file with path 'ffmpeg_run.bat2d.JPG' and index in the range 0-4
ffmpeg_run.bat2d.JPG: No such file or directory
(ffmpeg_run.bat being my batch file to run ffmpeg).

I did have some success with using

ffmpeg -y -f concat -i liste.txt -i SligoAir_WhiteBlanket.mp3 -vsync vfr -movflags +faststart -pix_fmt yuv420p output.mkv

liste.txt being the list of my jpeg files.

Now I see that double-cliking on the output file sometime work and sometime not: the player "Films & TV" on my pc return almost immediately and sometime the video is played correctly.
The VLC player does not show any image and the Windows media player shows the image but without sound...

Can I change my command above to have a mkv file that is played correctly on all three type of players ? Can the cat command or the sequence pattern argument be used on windows ?

Thanks for any help

François

ffmpeg -version says
ffmpeg version 2020-11-14-git-46e362b765-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10.2.0 (Rev3, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil      56. 60.100 / 56. 60.100
libavcodec     58.112.103 / 58.112.103
libavformat    58. 64.100 / 58. 64.100
libavdevice    58. 11.102 / 58. 11.102
libavfilter     7. 89.100 /  7. 89.100
libswscale      5.  8.100 /  5.  8.100
libswresample   3.  8.100 /  3.  8.100
libpostproc    55.  8.100 / 55.  8.100
_______________________________________________
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: ffmpeg: slide show on Windows

Michael Koch
Am 17.11.2020 um 11:50 schrieb RAPPAZ Francois via ffmpeg-user:
> I'm on Windows 10 with ffmpeg ...

> Then I tried with
> ffmpeg -y -f image2 -framerate 8 -i "%02d.JPG" -i SligoAir_WhiteBlanket.mp3 -vsync vfr -pix_fmt yuv420p output.mkv

If you are starting this command line from a batch file, you must escape
the % character:
-i %%02d.jpg
The "" quotation marks can be omitted.
"-f image2" can also be omitted.
I think "-vsync vfr" can also be omittred (but here I'm not sure).

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: ffmpeg: slide show on Windows

FFmpeg-users mailing list
Thanks that was it

And if I Would like to have each image shown during 15 seconds (I have 15 pictures and  whants the total time being 225 sec), How should I specified the -framerate and -r ? I tried
ffmpeg -y -f image2 -framerate 1/5 -i %%02d.JPG -i SligoAir_WhiteBlanket.mp3 -vsync vfr  -r 15 -pix_fmt yuv420p output.mkv

But that it's too short a time for each picture

Cheers

François
-----Original Message-----
From: ffmpeg-user <[hidden email]> On Behalf Of Michael Koch
Sent: 17 November 2020 12:04
To: [hidden email]
Subject: Re: [FFmpeg-user] ffmpeg: slide show on Windows

Am 17.11.2020 um 11:50 schrieb RAPPAZ Francois via ffmpeg-user:
> I'm on Windows 10 with ffmpeg ...

> Then I tried with
> ffmpeg -y -f image2 -framerate 8 -i "%02d.JPG" -i
> SligoAir_WhiteBlanket.mp3 -vsync vfr -pix_fmt yuv420p output.mkv

If you are starting this command line from a batch file, you must escape the % character:
-i %%02d.jpg
The "" quotation marks can be omitted.
"-f image2" can also be omitted.
I think "-vsync vfr" can also be omittred (but here I'm not sure).

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".
_______________________________________________
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: ffmpeg: slide show on Windows

Michael Koch
Am 17.11.2020 um 14:09 schrieb RAPPAZ Francois via ffmpeg-user:
> Thanks that was it
>
> And if I Would like to have each image shown during 15 seconds (I have 15 pictures and  whants the total time being 225 sec), How should I specified the -framerate and -r ? I tried
> ffmpeg -y -f image2 -framerate 1/5 -i %%02d.JPG -i SligoAir_WhiteBlanket.mp3 -vsync vfr  -r 15 -pix_fmt yuv420p output.mkv
>
> But that it's too short a time for each picture

"-framerate 1/5" specifies the framerate at which you read the pictures,
1/5 means 5 seconds.
"-r" is the output framerate. If you omit this option, then the default
25fps is used. Some players have problems with small framerates.
If you want crossfadings between the pictures, have a look at chapter
2.3 in my book:
http://www.astro-electronic.de/FFmpeg_Book.pdf

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: ffmpeg: slide show on Windows

FFmpeg-users mailing list
Oh Thanks a lot !

François

-----Original Message-----
From: ffmpeg-user <[hidden email]> On Behalf Of Michael Koch
Sent: 17 November 2020 14:23
To: [hidden email]
Subject: Re: [FFmpeg-user] ffmpeg: slide show on Windows

Am 17.11.2020 um 14:09 schrieb RAPPAZ Francois via ffmpeg-user:
> Thanks that was it
>
> And if I Would like to have each image shown during 15 seconds (I have
> 15 pictures and  whants the total time being 225 sec), How should I
> specified the -framerate and -r ? I tried ffmpeg -y -f image2
> -framerate 1/5 -i %%02d.JPG -i SligoAir_WhiteBlanket.mp3 -vsync vfr  
> -r 15 -pix_fmt yuv420p output.mkv
>
> But that it's too short a time for each picture

"-framerate 1/5" specifies the framerate at which you read the pictures,
1/5 means 5 seconds.
"-r" is the output framerate. If you omit this option, then the default 25fps is used. Some players have problems with small framerates.
If you want crossfadings between the pictures, have a look at chapter
2.3 in my book:
http://www.astro-electronic.de/FFmpeg_Book.pdf

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