Giter Site home page Giter Site logo

timelapse_compiler's Introduction

Timelapse Compiler

App for timelapse video compilation from images.

How it works:

  1. Analyzes sizes of all images in folder using exiv2 and takes largest
  2. Resizes smaller images to largest using ImageMagic.mogrify
  3. Generates subtitles with datetime got from filenames
  4. Compiles images to video and overlay subtitles

Folder structure:

DATA:
    - FOLDER_NAME1:
        - date_time1.jpg
        - IMG_date_time2.jpg
        - ...
    - FOLDER_NAME2:
        - ...
    - video
        - FOLDER_NAME1.mp4
        - ...

How to use

  1. (once) organize your data as mentioned above
  2. (once) build container (if not yet) podman build -t rokiden/timelapse_compiler:latest -t rokiden/timelapse_compiler:$(date +%Y%m%d_%H%M%S) .
  3. run container (pass data, envs, folder, gpu, quotas) podman run --rm -t --cpus=8 --device=/dev/dri/renderD128 -v /path/to/DATA:/data -e TL_VIDEO_H=1080 rokiden/timelapse_compiler:latest FOLDER_NAME
  4. your video placed at DATA/video/FOLDER_NAME.mp4

Configuration ENVs available in Dockerfile

Details

  • Image based on linuxserver/ffmpeg
  • Subtitles generated by python script, TL_SUB_FPS(must be divider of TL_FPS).

FFMPEG pipeline:

CPU: transparent_background -> render_subtitles -> crop -> upload_to_GPU
GPU: subtitles_from_cpu ---------------------v
GPU: *.jpg -> mjpeg_qsv -> scale_qsv -> overlay_qsv -> h264_qsv
  • Main stream fully hardware processed by Intel Quick Sync.
  • Subtitles rendered by CPU, but it is easy task.
  • Developed and tested on i5-1240P.

timelapse_compiler's People

Contributors

rokiden avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.