Skip to content
This repository was archived by the owner on Mar 9, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion encoder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from threading import Thread # Encoder is a thread
import subprocess
import time, os, fnmatch, shutil

not_found_msg = """
The ffmpeg command was not found;
Expand All @@ -18,7 +19,9 @@ def __init__(self, input_dir, output_dir):

# Set config options
self.input = "{}/*.png".format(input_dir)
self.output = "{}/output.mp4".format(output_dir)
t = time.localtime()
timestamp = time.strftime('%b-%d-%Y_%H:%M', t)
self.output = "{}/output-{}.mp4".format(output_dir, timestamp)

print("Encoder started")

Expand Down