Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: