[Python] Why it's not adding a sound (the path of files are correct, and the audio of file is...

Discussão em 'Python' iniciado por Stack, Fevereiro 15, 2025.

  1. Stack

    Stack Membro Participativo

    import moviepy.editor as mpe
    my_clip = mpe.VideoFileClip('output.mp4')
    audio_background = mpe.AudioFileClip('ayah.mp3')
    final_clip = my_clip.set_audio(audio_background)
    final_clip.write_videofile('final_output.mp4', codec='libx264', audio_codec='aac')


    It outputs the the video without a sound i tried to change the ayah.mp3 to wav but it doesn't work

    Continue reading...

Compartilhe esta Página