kkroening/ffmpeg-python

How to push the output of a wav2lip model to an RTMP server?

yangbohust opened this issue · 1 comments

How to push the output of a wav2lip model to an RTMP server using ffmpeg-python? The output of wav2lip is some original image data and an input audio file.

The wav2lip model saves the output image sequence into a video file through the opencv-python interface, and then uses the ffmpeg command line interface to merge the video file and audio file. see here
https://github.com/Rudrabha/Wav2Lip/blob/d2bc3ac51dd6b758b52370f253e5115248c22090/inference.py#L276

    command = 'ffmpeg -y -i {} -i {} -strict -2 -q:v 1 {}'.format(args.audio, 'temp/result.avi', args.outfile)