kkroening / ffmpeg-python

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

Sync audio and video in the streaming output #716

Open Skylighty opened 1 year ago

Skylighty commented 1 year ago

Hello!

I'm dealing with the problem presented in the attached picture. I have RTMP source stream which i want to read, perform numpy operations on it and then pass to the output streams with well synced audio and video. Is there any easy solution to perform such operations? I would be very happy if someone could help.

example

Thanks in advance!

hctung57 commented 1 year ago

i have same problem, Skylighty. Do you have solution for this problem ?

xiaofanku commented 1 month ago

I tried to merge the audio(pipe) and video(pipe) and it didn't get an error, the program got stuck and I had to restart the IDE