ecologeek

Flickering-free Timelapses with Free Software

par Philippe Moret le 21.04.20

This is an article in a serie I do on timelapse photography using free softwares. A common issue with timelapse photography is the flickering. As lighting conditions changes during the capture of the timelapse, exposure settings of the camera can change from one picture to the next. When the lighting conditions are more or less stable a solution can be to use completely manual settings, thus preventing such changes. But, when you want to capture sunrise or sunset which have conditions literaly ranging from night to day. In this article, I will present my current workflow based on free and open-source software. I use darktable, an excellent open-source raw developer and photography application and ffmpeg to assemble and compress the final video.

Capture

Capturing is not the main focus of the present article, however it is quite important that you shoot in RAW, it's required by the module we will use in darktable in post-processing. It's a good habit to shoot in RAW if you want to maximise your ability to post-process pictures, the downside being that it requires more storage (and processing time). In order to shoot a timelapse you need an intervalometer, i.e., a way to shoot pictures at regular interval:

Processing

For the processing step, we will process one image and then to copy the steps to all other images.

First, we import the serie in darktable, in this example I have 765 pictures taken at dawn by the lake in my hometown in Switzerland. In the lighttable view we see all our pictures, we can review our import and exclude pictures you do not want to include in the sequence.

We select now an image in our sequence, and will process it in the darkroom view. In order to remove flickering we will use the exposure module in darktable with the automatic settings.

In that mode darktable computes the exposure correction based on the raw histogram (as explained https://www.darktable.org/usermanual/en/modules.html#exposure). Since this computation is automatic and based on a fix point in the histogram (i.e. a chosen percentile), the result will be very close enough to remove the flickering from our series. We tune the percentile and target level and check the histogram on top, to avoid having too much over-exposed or under-exposed pixels.

We can continue the post-processing, in our case we will apply lens correction, and crop to 16:9 format which is common for video.

Once we are satisfied with the result, we can go back to the lighttable view. Keep the image you just processed selected and on the right under "history stack" choose "copy all", this copy all the steps we applied in the darkroom; now we select all the images that we want in our timelapse, and use "paste all" to apply the same steps.

We can now export our image sequence to jpeg. On the right we select "export selected", darktable can rename exported images using some variables. We use $(SEQUENCE) in the filename in order to include a sequence number. Depending on which software you use for assembling the video, this can be skipped.

Create the video

We come to the last step which is assembling and crompressing the video from the image sequence. In that example we will use ffmpeg to perform the task. It's pretty easy if you are familiar with the command line. There are plenty of other options, for more advanced video sequence editing job, we could use blender, this could be explained in a later article.

ffmpeg -i darktable_exported/%04d.jpg -vf scale=1920:1080 -crf 18 -vcodec libx264 -movflags +faststart timelapse.mp4

We used the following options:

We have seen how free software can help us assembling high quality timelapses and remove the annoying flickering. We focuses on the processing steps in darktable, in following articles we could discuss other free softwares such as alternatives firmwares for capture and video sequence editing in blender.

Vote électronique

par Philippe Moret le 15.03.19

Comme reporté dans la presse (p. ex. SwissInfo), une importante faille de sécurité le système dans le système de vote électronique de la Poste Suisse a été découverte. De surcroît, des réserves ont été émises quant à la qualité du code source. Tout ceci n'inspire pas confiance. En fait le vote électronique est très dangereux, le suffrage est la base de la démocratie. Avec un système classique de bulletins papiers avec des scrutateurs par communes, les votations sont dures à falsifier, le processus est compréhensible par tout un chacun, et il reste des traces physiques en cas de doutes (possibilité de recomptage).

Or, la version électronique ne fournit pas de telles garanties:

Pour ces raisons j'estime souhaitable que nous renoncions au vote électronique dans notre pays et je soutiens l'initiative pour un moratoire sur le vote électronique

Lancement

par Philppe Moret le 14.03.19

Alors qu'on nous promet que les données serons le pétrole du 21ème siècle, que la 4ème révolution industrielle est en marche que tout doit être disrupté et digitalisé, j'espère proposer ici un pas de côté, de prendre un peu de recul et de proposer des pistes d'actions pour concilier les technologies numériques et le souci écologique.