Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to overwrite audio #151

Closed
xuloo opened this issue Apr 5, 2015 · 1 comment
Closed

unable to overwrite audio #151

xuloo opened this issue Apr 5, 2015 · 1 comment

Comments

@xuloo
Copy link

xuloo commented Apr 5, 2015

I've been assuming the following code:

video = VideoFileClip("video.mp4")
audio = AudioFileClip("audio.m4a")
video.set_audio(audio)
video.write_videofile("output.mp4")

should output a video file with the audio track assigned from the audio.m4a file - but it doesn't i only ever just get a copy of video.mp4 with no audio.

What am i doing incorrectly here? can i overwrite audio at all?

@xuloo
Copy link
Author

xuloo commented Apr 5, 2015

ok, so seconds after posting this i re-read the manual and i see that set_audio() returns a copy of the original video with the audio set.... so that's my fix.

Apologies for not RTFM'ing more closely :)

@xuloo xuloo closed this as completed Apr 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant