kkroening / ffmpeg-python

Python bindings for FFmpeg - with complex filtering support
Apache License 2.0
9.65k stars 876 forks source link

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

Open yangbohust opened 7 months ago

yangbohust commented 7 months ago

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)
JiadiLee commented 3 months ago

I have the same problem. Have you found a solution yet?