You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd= ["ffmpeg", "-y", "-i", video_path, "-map", "0", "-c", "copy"] # Base ffmpeg command to copy all streams
362
369
363
-
foriinrange(num_tracks): # For each audio track
364
-
cmd+= ["-disposition:a:"+str(i), "0"] # Clear all dispositions
370
+
foriinrange(num_tracks): # For each audio track
371
+
cmd+= ["-disposition:a:"+str(i), "0"] # Clear all dispositions
365
372
366
-
cmd+= ["-disposition:a:"+str(default_track_index), "default", temp_file] # Set the selected track as default and define output file
373
+
cmd+= ["-disposition:a:"+str(default_track_index), "default", temp_file] # Set the selected track as default and define output file
367
374
368
375
verbose_output(f"{BackgroundColors.GREEN}Executing ffmpeg command:{BackgroundColors.CYAN}{' '.join(cmd)}{Style.RESET_ALL}") # Output the ffmpeg command if verbose is True
0 commit comments