Hacker News new | ask | show | jobs
by rockostrich 1474 days ago
ffmpeg has an entire page in their wiki devoted to slideshows: https://trac.ffmpeg.org/wiki/Slideshow
2 comments

There is so much value in doing this in a normal application with a UI that lets you see what you're doing. ffmpeg is a fantastic utility if you already know what you need, but it's absolutely terrible for jobs where you need to be able to see and do things between the two states of "having input" and "having final output".
I agree, although it has to be noted that that you can preview most ffmpeg commands using ffplay. The syntax is the same as the ffmpeg command, without the final output filename obviously.
Right, but now we're going "replace this single app with a normal graphical interface for working with visual media with multiple command line utilities including the terminal that you're always going to have to look up the commands flags for" and that's not really selling it =P
Ffmpeg is a great tool for programmatically editing videos. For one-off jobs a gui editor is probably better.

If you want to create a slideshow for 300 folders of images, ffmpeg is really your best friend. For one, maybe use a gui editor.

Where I found that fell down was wanting to do things like slow zooms and interesting transitions. I'd love something like a Python or bash script to tweak that addressed those.
Like this?

Zoom in up to 1.5x and pan always at center of picture (not tested):

  import ffmpeg
  (
    ffmpeg
    .input(
        '\*.jpg', 
        pattern_type='glob', 
        framerate='1/5'
    )
    .zoompan(
        z='min(zoom+0.0015,1.5)', 
        d=700,
        x='in_w/2-(in_w/zoom/2)',
        y='in_h/2-(in_h/zoom/2)'
    )
    .output('output.mp4', pix_fmt='yuv420p')
    .run()
  )
stitching [0], [1], and [2]

[0]https://github.com/kkroening/ffmpeg-python#quickstart

[1]https://kkroening.github.io/ffmpeg-python/#ffmpeg.zoompan

[2]https://ffmpeg.org/ffmpeg-filters.html#Examples-133

EDIT: added options for slideshow style