-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
CompositeVideoClip has no audio #876
Comments
I was looking at the Is a bug or I'm completely wrong? |
|
@Zulko: I was the last to edit, but I didn't add this line. (I did review my changes to double-check this.) The last-edit of that part of the code was four years ago, but the "-an" option has existed since at least 2013, when |
I haven't tested, but, it sounds completely plausible that passing |
Thank you @Zulko! I did a test reading the output video into VLC and audio works. Do you know what is an audio codec works to QuickTime? |
i remove the '-an' and it did work |
Thanks for the hints: I'm fairly certain I ran into the same issue today (after running moviepy without issues in the past). I recently updated my python version, most packages and ffmpeg, so I cannot pinpoint where the change came from, but the I suspect the idea is to block potential audio from the video input (and to explicitly attach audio as a separate input file). However, to achieve that, the argument order should have been: I'm also not sure if it is even possible for audio to be accidentally fed into ffmpeg through the raw video input from moviepy...it seems unlikely. |
Thank you, i'v been having that issue since for ever until i read ur reply |
The old order binds the `-an` flag to the next stream, which is the audio file (which is subsequently ignored).
I also have this problem. When i changed
|
I found the solution in other issue #820 |
Thank you @russellyi , it works here!! |
Same Here But Where is Solution? |
edit file moviepy/video/io/ffmpeg_writer.py and remove the '-an' here |
import moviepy.editor as mp for i in range(1,666):
write_videofile has no Sound.. What should i add? |
changing to this order thank you |
Linking #968 here as a fix. |
Should be fixed in #968. |
Specifying an video.write_videofile(edit, audio_codec='aac') |
VLC still the way to go in 2022! |
Expected Behavior
The video file generated at end of the process with orignal audio.
Actual Behavior
The video file generated at end of the process has no audio.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: