Skip to content

Commit

Permalink
Fixed video-audio merge
Browse files Browse the repository at this point in the history
  • Loading branch information
yashoswalyo authored Jul 9, 2023
1 parent 2d6c67d commit a7f3ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/ffmpeg_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def MergeAudio(videoPath: str, files_list: list, user_id):
audioTracks = 0
for i in range(len(videoStreamsData)):
if videoStreamsData[i]["codec_type"] == "audio":
muxcmd.append(f"disposition:a:{audioTracks}")
muxcmd.append(f"-disposition:a:{audioTracks}")
muxcmd.append("0")
audioTracks += 1
fAudio = audioTracks
Expand Down

0 comments on commit a7f3ed6

Please sign in to comment.