This commit is contained in:
2024-12-24 20:49:41 +03:00
parent f8febafacb
commit 2b3521544b
35 changed files with 2043 additions and 767 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ def clean_video(video_path: Path, save_path: Path) -> Path:
media_info = ffprobe(video_path)
# check if the first video stream has hevc codec
if media_info["streams"][0]["codec_name"] == "hevc":
logging.info(f"Video codec is hevc, adding hvc1 tag")
logging.debug(f"Video codec is hevc, adding hvc1 tag")
extra_args = ["-tag:v", "hvc1"]
else:
extra_args = []
@@ -52,7 +52,7 @@ def clean_video(video_path: Path, save_path: Path) -> Path:
'-i',
str(video_path),
'-c:v', 'copy',
# '-movflags', '+faststart',
# '-movflags', '+faststart',
'-map_metadata', '-1',
*extra_args,
'-c:a', 'copy',