The problem occurred while trying to overlay a stream from mediasoup to another stream (udp, rtmp, etc.).
According to ffmpeg logs, it starts working, processes for a while and stops (line 957 of the log file)
Sending one stream works without issue
I suspect there is something wrong with the stream from mediaasoup
Start command:
ffmpeg -strict experimental -loglevel debug -protocol_whitelist pipe,udp,rtp -fflags +genpts -flags low_delay -f sdp -analyzeduration 10000000 -probesize 10000000 -i pipe:0 -fflags +nobuffer -analyzeduration 10000000 -probesize 10000000 -i rtmp://eu-02.re.stream.mvs.wtf:1936/monitor/pV2ErmcZIscDsaoU8AS4KuYYYZG_-wPDiH_sDeu6U58 -filter_complex [0:a]asetpts=PTS-STARTPTS[a0];[1:a]asetpts=PTS-STARTPTS[a1];[0:v]setpts=PTS-STARTPTS,scale=iw/3:ih/3[pip];[1:v]setpts=PTS-STARTPTS[v1];[v1][pip]overlay=0:0:shortest=0[vo];[a0][a1]amix=inputs=2[ao] -map [vo] -map [ao] -c:a aac -c:v h264 -s 640x480 -r 30 -x264opts keyint=60:keyint_min=60:no-scenecut -preset superfast -profile:v high -level:v 4.1 -tune zerolatency -f flv -max_muxing_queue_size 4096 rtmp://publish.stream.mvs.wtf/push/LFcDPV65OWznyhAjcSvOqhcxN9BRFBijP7jFakjweR0
sdp:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=FFmpeg
c=IN IP4 127.0.0.1
t=0 0
m=video 26692 RTP/AVP 101
a=rtpmap:101 VP8/90000
a=sendonly
m=audio 26267 RTP/AVP 100
a=rtpmap:100 opus/48000/2
a=sendonly
Logs: https://gist.github.com/Able1991/b59bd18cc44a1b9b08c3df4cd5dbe08a
I studied the output and do not see the reason for this behavior