Combining an audio file with video file in python

后端 未结 3 1077
北海茫月
北海茫月 2020-12-10 15:32

I am writing a program in Python on RaspberryPi(Raspbian), to combine / merge an audio file with video file.

Format of Audio file is WAVE Format of VIdeo file is h26

3条回答
  •  不思量自难忘°
    2020-12-10 16:01

    I got the answer of my Question, you can also try it and let me know if need further assistance

    cmd = 'ffmpeg -y -i Audio.wav  -r 30 -i Video.h264  -filter:a aresample=async=1 -c:a flac -c:v copy av.mkv'
    subprocess.call(cmd, shell=True)                                     # "Muxing Done
    print('Muxing Done')
    

提交回复
热议问题