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

How to add audio track to MP4? #794

Closed
arekbulski opened this issue May 7, 2018 · 4 comments
Closed

How to add audio track to MP4? #794

arekbulski opened this issue May 7, 2018 · 4 comments

Comments

@arekbulski
Copy link

I need a quick advise: can I use this library to modify a MP4 by adding (or replacing) an audio track? If so, would it reencode?

@Zulko
Copy link
Owner

Zulko commented May 7, 2018

If this is the only thing you need to do, then ffmpeg will do that faster and without reencoding.

in moviepy you can do it with:

myclip.audio = AudioFileClip("some_soundtrack.mp3")

@arekbulski
Copy link
Author

So the one-liner using moviepy would require re-encoding, right? Could you point me to some existing ffmpeg discussion/solution? I am not very proficient with ffmpeg options.

@Zulko
Copy link
Owner

Zulko commented May 7, 2018

yes the moviepy solution involves reencoding. I cant help you with ffmpeg but it should be easy enough to find out, it is a common use case.

Note that for this kind of questions forums like stackoverflow or reddit/moviepy are better than github issues (which we keep for bug reports or feature requests).

@Zulko Zulko closed this as completed May 7, 2018
@arekbulski
Copy link
Author

Thank you!

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

2 participants