'FFmpeg-Python audio getting dropped in final video
Im trying to place a video on top of a background image but the output video is getting generated without audio. Is there any way to keep the audio as it is?
def ConvertVideo(source,background,start,end,dest):
stream = ffmpeg.input(source)
strea1 = ffmpeg.input(background)
duration = end - start
stream = stream.trim(start=start,duration=duration).filter('setpts', 'PTS-STARTPTS')
stream = stream.crop(100,0,1080,720)
stream = ffmpeg.overlay(strea1,stream,x=0,y=180)
stream = stream.output(dest)
Does anyone know why audio gets dropped? Is there any workaround to this problem?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
