I’m trying to inject a video into mediasoup. I’m following this demo
https://github.com/versatica/mediasoup-demo/blob/v3/broadcasters/ffmpeg.sh
mp4 file : mediasoup-demo/video-audio-stereo.mp4 at v3 · versatica/mediasoup-demo · GitHub
Command : ( trying to send video only )
ffmpeg -re -v info -stream_loop -1 -i video-audio-stereo.mp4 -map 0:a:0 -acodec libopus -ab 128k -ac 2 -ar 48000 -map 0:v:0 -pix_fmt yuv420p -c:v libvpx -b:v 1000k -deadline realtime -cpu-used -5 -f tee "[select=v:f=rtp:ssrc=2222:payload_type=102]rtp://ip:42819?rtcpport=44932"
Result : on the web page only show the first frame of video, the video’s clock is not running
ffmpeg command seem fine, no error message, still sending video. The mediasoup log seem normal, too.
If I send audio only, it works fine.