diff --git a/main.py b/main.py index fb2901a..d7076ef 100644 --- a/main.py +++ b/main.py @@ -965,12 +965,14 @@ def process_video_to_vertical(input_video, final_output_video, aspect_ratio=ASPE if os.path.exists(temp_audio_output): merge_command = [ 'ffmpeg', '-y', '-i', temp_video_output, '-i', temp_audio_output, - '-c:v', 'copy', '-c:a', 'copy', *METADATA_SCRUB, final_output_video + '-c:v', 'copy', '-c:a', 'copy', *METADATA_SCRUB, + '-movflags', '+faststart', final_output_video ] else: merge_command = [ 'ffmpeg', '-y', '-i', temp_video_output, - '-c:v', 'copy', *METADATA_SCRUB, final_output_video + '-c:v', 'copy', *METADATA_SCRUB, + '-movflags', '+faststart', final_output_video ] try: diff --git a/reframe_v2.py b/reframe_v2.py index cc6348c..883e400 100644 --- a/reframe_v2.py +++ b/reframe_v2.py @@ -239,6 +239,11 @@ def render(input_video, final_output_video, aspect_ratio): "-i", input_video, "-map", "0:v:0", "-map", "1:a:0?", "-c:v", "copy", "-c:a", "copy", *METADATA_SCRUB, + # +faststart moves the moov atom to the front so the browser