A container that produces timelapses between video files featuring linuxserver's architecture :-
Calculates duration of each video and produces timelapses between those videos from snapshots.
Designed to work with motioneye where the media directory is structured as // with files named with time. Images are expected to be jpg and videos mp4.
This image provides various versions that are available via tags. latest tag usually provides the latest stable motioneye version.
| Tag | Description |
|---|---|
| latest | Latest stable Motioneye release |
Here are some example snippets to help you get started creating a container.
docker create \
--name=inter_vid_timelapse \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/London \
-e UMASK_SET=022 `#optional` \
-e TL_FPS=1 `#optional`\
-e TL_SUFFIX=_TL `#optional`\
-v <path to media>:/media \
--restart unless-stopped \
jennettwheeler/inter_vid_timelapse
Compatible with docker-compose v2 schemas.
---
version: "2"
services:
inter_vid_timelapse:
image: jennettwheeler/inter_vid_timelapse
container_name: inter_vid_timelapse
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- UMASK_SET=022 #optional
- TL_FPS=1 #optional
- TL_SUFFIX=_TL #optional
volumes:
- <path to media>:/media
restart: unless-stopped
Container images are configured using parameters passed at runtime (such as those above).
| Parameter | Function |
|---|---|
-e PUID=1000 | for UserID - see below for explanation |
-e PGID=1000 | for GroupID - see below for explanation |
-e TZ=Europe/London | Specify a timezone to use EG Europe/London |
-e UMASK_SET=022 | control permissions of files and directories |
-e TL_FPS=1 | the playback fps for the resulting timelapse files (defaults to 1) |
-e TL_SUFFIX=_TL | the optional suffix for the resulting timelapse files (defaults to no suffix) |
-v /media | Motioneye media files |
You can set any environment variable from a file by using a special prepend FILE__.
As an example:
-e FILE__PASSWORD=/run/secrets/mysecretpassword
Will set the environment variable PASSWORD based on the contents of the /run/secrets/mysecretpassword file.
When using volumes (-v flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
In this instance PUID=1000 and PGID=1000, to find yours use id user as below:
$ id username
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)
N/A, runs in the background with no UI.
docker exec -it inter_vid_timelapse /bin/bashdocker logs -f inter_vid_timelapseMost of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (ie. nextcloud, plex), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.
Below are the instructions for updating containers:
docker pull linuxserver/inter_vid_timelapsedocker stop inter_vid_timelapsedocker rm inter_vid_timelapse/config folder and settings will be preserved)docker start inter_vid_timelapsedocker image prunedocker-compose pull
docker-compose pull inter_vid_timelapsedocker-compose up -d
docker-compose up -d inter_vid_timelapsedocker image prunedocker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower \
--run-once inter_vid_timelapse
Note: We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using Docker Compose.
docker image pruneIf you want to make local modifications to these images for development purposes or just to customize the logic:
git clone https://[email protected]/jennett-wheeler/inter_vid_timelapse.git
cd inter_vid_timelapse
docker build \
--no-cache \
--pull \
-t jennettwheeler/inter_vid_timelapse:latest .
Content type
Image
Digest
Size
26.9 MB
Last updated
over 6 years ago
docker pull jennettwheeler/inter_vid_timelapse