I’m using ffmpeg to inject video to mediasoup. It’s working fine, now. But sometime, I need to restart the ffmpeg command. I tried these options
Option 1:
- Force kill ffmpeg command
- Start ffmpeg again
==> video freeze at consumer (browser)
Option 2 :
- Call producer.pause()
- Force kill ffmpeg command
- Start ffmpeg again
- Call producer.resume()
==> video still freeze at consumer (browser)
So, how to restart ffmpeg command in safe way ? Thank you