Skip to content

cmauget/timeslicer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

65 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Timelapse Slicer

A simple python script to create "timeslices"


🎈 Try it out here: timeslicer on streamlit 🎈


Based on https://github.com/loickt/timelapse_slicer by @loickt

Local Setup

First, you will need to download the zip, extract it, and move to the root of this repo using the cd command. It is recommended to use it in a venv (using conda for example)

On ubuntu

To install everything:

make setup  

On windows

You will need to install all the dependencies by launching the command (td add ffmpeg-python):

pip install -r requirements.txt

In order to create animated video, you will also need to install ffmepg. It is a bit more complicated, and I recommend this guide

How to use it

It is recommended to put your pictures in the input folder as below :

πŸ“‚ timelapse-slicer/ # this is root
β”œβ”€β”€ πŸ“‚ input/
|       β”œβ”€β”€ πŸ“œ image1.jpg
|       |...
β”‚...

You can also use the absolute path in the enter input file here later

Note : the files have to be in alphabetical order relatively to the time they were taken in order to produce coherent results

and then launch the web app using (on ubuntu) :

make run  

and on windows :

streamlit run streamlit_timeslicer/app.py

A new window will open in your browser, if not use the "localhost" link given in the terminal.
In order to create a video check the video output box and complete the informations. Click the run me button and enjoy !

Command Line Tool

There is a command line tool for fast slicing. To use it you will need to be ine then timeslicer folder.

Usage

A typical usage will be the following :

python3 main.py -i "input/" -o "output/"

Parameters

if you need any help just use :

python3 main.py -h

You have the following parameters :

-i <inputfolder> -o <outputfolder> -v (video output (WIP)) -d (do not display the image)

About

πŸŒ‡ A simple python based webapp to create "timeslices"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published