ffmpeg_receiver.sh - audio ok, no vid packets

I’m testing broadcasters/ffmpeg_receiver.sh. I have a producer in a room with a video producer id and an audio producer id.

i call it like so: SERVER_URL=https://localhost:4443 ROOM_ID=a AUDIO_PRODUCER_ID=“fde0351f-00b9-4b00-b25a-cb304eca35a4” VIDEO_PRODUCER_ID=“2f91aa16-0702-405a-a281-da7999c55d30” ./ffmpeg_receiver.sh

I check that I’m getting the stream packets by doing a tcp dump on the video port and also i do one on the audio port. For the audio I see the traffic:

sudo tcpdump -n -i lo port 10000
tcpdump: verbose output suppressed, use -v[v]… for full protocol decode
listening on lo, link-type EN10MB (Ethernet), snapshot length 262144 bytes
11:59:36.082894 IP 127.0.0.1.48348 > 127.0.0.1.10000: UDP, length 189
11:59:36.102463 IP 127.0.0.1.48348 > 127.0.0.1.10000: UDP, length 29
11:59:36.502110 IP 127.0.0.1.48348 > 127.0.0.1.10000: UDP, length 189
11:59:36.522173 IP 127.0.0.1.48348 > 127.0.0.1.10000: UDP, length 29
11:59:36.922323 IP 127.0.0.1.48348 > 127.0.0.1.10000: UDP, length 189

etc

for the video (port 10002) I get no packets at all. (I have tried using different ports)

from the broadcasters script I get:
[sdp @ 0x60868f324740] Could not find codec parameters for stream 1 (Video: vp8, yuv420p): unspecified size
Consider increasing the value for the ‘analyzeduration’ (0) and ‘probesize’ (5000000) options
Input #0, sdp, from ‘/tmp/ffmpeg.sdp’:
Metadata:
title : mediasoup
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp
Stream #0:1: Video: vp8, yuv420p, 90k tbr, 90k tbn, 90k tbc
Output #1, xv, to ‘display’:
Output file #1 does not contain any stream

script exited with status code 1

Here’s the tcp dump for video (empty):
sudo tcpdump -n -i lo port 10002
tcpdump: verbose output suppressed, use -v[v]… for full protocol decode
listening on lo, link-type EN10MB (Ethernet), snapshot length 262144 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel

Anyone have any ideas what I’m doing wrong please?

I think i ‘fixed’ it:

replaced this:
echo “>>> removed default running ffmpeg…”

/usr/bin/ffmpeg
-v info
-thread_queue_size 1500
-protocol_whitelist file,udp,rtp
-i /tmp/ffmpeg.sdp
-probesize 10M
-f pulse -device default stream
-f xv display
&
ffmpeg_pid=$!

replaced it with the following:

echo “>>> running ffmpeg…”

/usr/bin/ffmpeg -v info -thread_queue_size 1500 -protocol_whitelist file,udp,rtp -analyzeduration 20M -probesize 20M -i /tmp/ffmpeg.sdp -f pulse -device default stream -f xv display &

ffmpeg_pid=$!

I think I introduced the problem by placing the & symbol on its own line