neverix commited on
Commit
cd3dd7d
1 Parent(s): 8b7afe6

Fix datetime bug

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ def generate(*args):
12
  from tqdm.auto import tqdm
13
  from subprocess import Popen, PIPE
14
  fps = 30
15
- video_path = f"{datetime.strftime(datetime.now())}.mp4"
16
  if frames:
17
  p = Popen((f"ffmpeg -y -f image2pipe -vcodec png -r {fps} -i - -vcodec libx264 -r {fps} "
18
  f"-pix_fmt yuv420p -crf 17 -preset fast ").split() + [str(video_path)], stdin=PIPE)
 
12
  from tqdm.auto import tqdm
13
  from subprocess import Popen, PIPE
14
  fps = 30
15
+ video_path = f"{datetime.strftime(datetime.now(), '%Y-%m-%d-%H-%M-%S')}.mp4"
16
  if frames:
17
  p = Popen((f"ffmpeg -y -f image2pipe -vcodec png -r {fps} -i - -vcodec libx264 -r {fps} "
18
  f"-pix_fmt yuv420p -crf 17 -preset fast ").split() + [str(video_path)], stdin=PIPE)