k4d3 commited on
Commit
71e076c
1 Parent(s): 78d8161

this is fine

Browse files
Files changed (1) hide show
  1. png2mp4 +2 -4
png2mp4 CHANGED
@@ -1,8 +1,6 @@
1
  #!/usr/bin/env python
2
  # -*- coding: utf-8 -*-
3
 
4
- #!/usr/bin/env python3
5
-
6
  import argparse
7
  import os
8
  import shutil
@@ -49,7 +47,7 @@ def create_video(input_dir, sample, temp_dir, step_multiplier, repeat, max_image
49
  # Get duration and process final video
50
  try:
51
  duration_cmd = ["ffmpeg", "-i", temp_output]
52
- result = subprocess.run(duration_cmd, capture_output=True, text=True, stderr=subprocess.PIPE)
53
  duration_match = re.search(r'Duration: (\d{2}):(\d{2}):(\d{2})', result.stderr)
54
  if duration_match:
55
  hours, minutes, seconds = map(float, duration_match.groups())
@@ -141,4 +139,4 @@ def main():
141
  return 0
142
 
143
  if __name__ == "__main__":
144
- exit(main())
 
1
  #!/usr/bin/env python
2
  # -*- coding: utf-8 -*-
3
 
 
 
4
  import argparse
5
  import os
6
  import shutil
 
47
  # Get duration and process final video
48
  try:
49
  duration_cmd = ["ffmpeg", "-i", temp_output]
50
+ result = subprocess.run(duration_cmd, capture_output=True, text=True)
51
  duration_match = re.search(r'Duration: (\d{2}):(\d{2}):(\d{2})', result.stderr)
52
  if duration_match:
53
  hours, minutes, seconds = map(float, duration_match.groups())
 
139
  return 0
140
 
141
  if __name__ == "__main__":
142
+ exit(main())