mirror of
https://github.com/storytold/storyteller-ml.git
synced 2026-10-27 08:58:13 +00:00
emit command for format video (2)
This commit is contained in:
@@ -14,6 +14,9 @@ def get_video_resolution(input_video):
|
|||||||
'-of', 'json',
|
'-of', 'json',
|
||||||
input_video
|
input_video
|
||||||
]
|
]
|
||||||
|
|
||||||
|
print(f"Command: {command}", flush=True)
|
||||||
|
|
||||||
result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=True)
|
result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=True)
|
||||||
video_info = json.loads(result.stdout)
|
video_info = json.loads(result.stdout)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user