[FFmpeg-user] ffmpeg: slide show on Windows

RAPPAZ Francois francois.rappaz at unifr.ch
Tue Nov 17 12:50:33 EET 2020


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


More information about the ffmpeg-user mailing list