Skip to the content

Stream of Consciousness
Thoughts about photography and general geekishness
  • About
  • Contact
  • ShinyPhoto
  • Redbubble
  • photos
    • Landscape
    • nature
    • Drone
    • Scotland
      • Perthshire
        • Perth
      • Highlands
    • landscape
    • Social Commentary
      • urban-landscape
  • words
X
Contact Us
  • Home
  • 2018
  • September
  • 5
  • Frame interpolation for timelapse, using Julia

Frame interpolation for timelapse, using Julia

spodzone
2018-09-05
Geek photos words
http://soc.sty.nu/wp-content/uploads/2018/09/sunset-timelapse.mp4

A long time ago I wrote a python utility to interpolate frames for use in timelapse. This project was timelapse.py.

Back in 2014 I ported the idea to the very-alpha-level language Julia.

In recent weeks Julia released version v1.0.0, followed shortly by compatibility fixes in the Images.jl library.

And so I’m pleased to announce that the julia implementation of my project, timelapse.jl (working simply off file mtimes without reference to exif) has also been updated to work with julia v1.0.0 and the new Images.jl API.

Usage:

zsh/scr, photos 11:32AM sunset/ % ls *
images-in/:
med-00001.png med-00022.png med-00065.png med-00085.png
med-00009.png med-00044.png med-00074.png

images-out/:

zsh/scr, photos 11:32AM sunset/ % ~/j/timelapse/timelapse.jl 50 images-in images-out
[1.536147186333474e9] - Starting
[1.536147186333673e9] - Loading modules
[1.536147201591988e9] - Sorting parameters
[1.536147201648837e9] - Reading images from directory [images-in]
[1.536147202022173e9] - Interpolating 50 frames
[1.53614720592181e9] - frame 1 / 50 left=1, right=2, prop=0.11999988555908203
[1.536147217019145e9] - saving images-out/image-00001.jpg
[1.536147218068828e9] - frame 2 / 50 left=1, right=2, prop=0.24000000953674316
[1.536147222013697e9] - saving images-out/image-00002.jpg
[1.536147222819911e9] - frame 3 / 50 left=1, right=2, prop=0.3599998950958252
[1.536147226688287e9] - saving images-out/image-00003.jpg

...

[1.536147597050891e9] - saving images-out/image-00048.jpg
[1.53614761140285e9] - frame 49 / 50 left=6, right=7, prop=0.880000114440918
[1.536147615090572e9] - saving images-out/image-00049.jpg
[1.536147615649168e9] - frame 50 / 50 left=6, right=7, prop=1.0
[1.536147619363807e9] - saving images-out/image-00050.jpg
[1.536147619960565e9] - All done
zsh/scr, photos 11:40AM sunset/ %

zsh/scr, photos 11:51AM sunset/ % ffmpeg -i images-out/image-%05d.jpg -qscale 0 -r 50 sunset-timelapse.mp4
ffmpeg version 3.4.2-2+b1 Copyright (c) 2000-2018 the FFmpeg developers

...

zsh/scr, photos 11:51AM sunset/ % ll -h sunset-timelapse.mp4
-rw------- 1 tim tim 4.9M Sep 5 11:46 sunset-timelapse.mp4
Caithness, code, development, frame, image, interpolation, Julia, movie, open-source, photography, source, Sunset, timelapse, video

Post navigation

Previous post:A Bit Damp
Next post:Another day… another sunset

Recent Posts

  • One Month and Twenty Years
  • Concerning Quality
  • Generosity, (Dis)Honesty and Copyright
  • Replacing decades-old zsh function. It’s a vibe.
  • Sunrise at Dunnottar
  • New Toy: Meet the Wobbleometer(TM)
  • Evening bike-ride
  • vdB14 and vdB15, Camelopardalis
  • Canon vs Fuji: R5 Fail
  • Around Comrie
September 2018
S M T W T F S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Aug   Oct »

Categories

  • Argyll (8)
  • Bookmarks (1)
  • Geek (16)
  • geo (1)
  • home and garden (52)
    • Dog (4)
  • landscape (58)
  • nature (343)
    • Astronomy (9)
    • closeup (42)
    • Landscape (279)
      • intimate-landscape (111)
      • Skyscape (1)
      • urban-landscape (20)
    • rocks (1)
  • night (14)
  • Perth (17)
  • photos (466)
    • art (82)
    • daily (130)
    • Drone (19)
    • mobile photos (173)
  • religion (8)
    • christian (7)
  • River Tay (4)
  • Scotland (207)
    • Aberdeenshire (2)
    • Angus (1)
    • Highlands (72)
      • Assynt (2)
      • Glen Affric (10)
      • Glencoe/Glen Etive (1)
      • Lochaber (3)
    • Perthshire (78)
      • Glen Devon (1)
      • Glen Lyon (1)
      • Loch Tay (1)
      • Rannoch (8)
      • Strathearn (19)
  • Social Commentary (47)
  • Uncategorized (38)
  • urban (16)
  • water (36)
  • words (58)
    • story (15)
  • About
  • Contact
  • ShinyPhoto
  • Redbubble
  • photos
    • Landscape
    • nature
    • Drone
    • Scotland
      • Perthshire
        • Perth
      • Highlands
    • landscape
    • Social Commentary
      • urban-landscape
  • words
Footer Image

The Modern Art Gallery WordPress Theme is a sleek, visually striking, and feature-rich theme designed for artists, art galleries, and creative professionals looking to establish a powerful online presence. Perfect for showcasing fine art, digital illustrations, photography, or contemporary artwork, this artistic WordPress theme offers a clean and elegant layout that enhances the presentation of any visual medium. Built specifically for online art galleries, painter portfolios, and creative exhibition platforms, the theme includes beautifully structured grid layouts, fullscreen art showcases, and interactive gallery blocks.

Calendar

September 2018
S M T W T F S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Aug   Oct »

Enter Keywords Here

All rights reserved.
Theme: Modern Art Gallery By OMEGA Powered by WordPress.
To the Top ↑