Zulko / moviepy

Video editing with Python
https://zulko.github.io/moviepy/
MIT License
12.32k stars 1.55k forks source link

Audio Tracks! #1654

Open 3booodpro opened 3 years ago

3booodpro commented 3 years ago

I Don't Know if this is an issue or its a feature to request but..

I Recorded a Video With Multiple Tracks of Audios so When I Export The Video There is no sound Because the actual Audio is in track 2 when i tried to change the audio track of the video i couldn't

from moviepy.editor import *

clip1 = VideoFileClip("2021-09-02 16-19-29.mp4").subclip(0,6)
export_clip = CompositeVideoClip([clip1])
export_clip.write_videofile("export.mp4", temp_audiofile="temp-audio.m4a", remove_temp=True, codec="libx264", audio_codec="aac")

i wish u guys implement it and if there is one already sorry for annoying u guys

mondeja commented 3 years ago

Sorry, currently moviepy can't manage multiple audio nor video tracks in the same container, but PRs are welcome 🙃

keikoro commented 2 years ago

@3booodpro Just letting you know I updated your issue to properly format the code (you need to use three backticks on a separate line before and after the code block instead of just one).