Compare commits

..

No commits in common. "8901279432cefb7cf2eda1fdca01650ac0333723" and "003bfb9f64105675e521cab74d7df912851bfca9" have entirely different histories.

2 changed files with 3 additions and 22 deletions

View file

@ -1,12 +1,9 @@
from app.main import video_convert
class Ffmpeg:
def __init__(config):
def __init__(self, config):
self.config = config
@staticmethod
def video_info():
def video_info(select, source_file):
command_info = [
"ffprobe", "-v",
"error",
@ -24,7 +21,7 @@ class Ffmpeg:
return command_info
@staticmethod
def video_convert():
def video_convert(config, obj):
command_convert = [
"ffmpeg", "-y", "-i", obj.source_file,
"-map", "0:0",
@ -57,14 +54,3 @@ class Ffmpeg:
command_convert.append(obj.output_file)
return command_convert
@staticmethod
def command_as_string(self, cmd):
command_as_string: str = ""
for para in cmd:
if "/" not in para:
command_as_string += f"{para} "
else:
command_as_string += f"\"{para}\" "
return command_as_string.strip()

View file

@ -1,5 +0,0 @@
uvicorn~=0.34.0
fastapi~=0.115.11
starlette~=0.46.0
PyYAML~=6.0.2
websockets~=15.0