snapshot
This commit is contained in:
+2
-2
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user