1

I am using Wirecast to send out a unicast stream. It looks like this udp://@:5434. I am trying to use ffmpeg to analyze this stream for blackdetect and freezedetect.

What I have tried so far is ffmpeg -i udp://@:5434 -filter:v blackdetect=d=9 -filter:a silencedetect=d=9 -t 10 -f null /dev/null, however this has given the error: Invalid data when processing the input

I can decode the unicast in VLC by opening the .sdp file.

Any help to understanding this would be great. Thank you!

Screen shot of wirecast unicast settings

user3324136
  • 415
  • 5
  • 20
  • What's the format and codec of the stream? – Gyan Apr 11 '20 at 06:54
  • Hi Gyan, Thank you for answering. The format is `RTP H.264 720p 16:9 (1280x720)` 2563 k bitrate. I will include a screenshot. Thank you. – user3324136 Apr 11 '20 at 16:25
  • 1
    Specify the input in `rtp://...` form. – Gyan Apr 11 '20 at 17:03
  • Thank you, Gyan, so it would be something like `ffmpeg -i rtp://@:5434 -filter:v blackdetect=d=9 -filter:a silencedetect=d=9 -t 10 -f null /dev/null` ? Thank you! I will give it a shot. – user3324136 Apr 11 '20 at 18:27
  • I ran this command above and got the error `Unable to receive RTP payload type 97 without an SDP file describing it`. The actual command I ran was `ffmpeg -i rtp://192.168.0.184:5434 -filter:v blackdetect=d=9 -filter:a silencedetect=d=9 -t 10 -f null /dev/null` – user3324136 Apr 11 '20 at 18:34
  • 1
    Ok, then `ffmpeg -protocol_whitelist file,crypto,rtp,tcp,udp -i myfile.sdp ...` – Gyan Apr 12 '20 at 06:57
  • Thank you. This worked. I really appreciate your time. – user3324136 Apr 13 '20 at 02:55

0 Answers0