i got this message from ffmpeg:
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1280x720, 14.99 fps, 14.99 tbr, 90k tbn, 180k tbc
[rtsp @ 0x16454e0] method ANNOUNCE failed: 501 Not Implemented
Could not write header for output file #0 (incorrect codec parameters ?): Server returned 5XX Server Error reply
using:
ffmpeg -protocol_whitelist udp,file,h264,rtp,crypto -i rtsp.sdp -c:a libopus -ac 2 -ar 48000 -c:v copy -b:a 96K -b:v 500K -f rtsp -rtsp_transport tcp rtsp://10.8.0.1:554/test
rtsp.sdp:
v=0
c=IN IP4 10.8.0.4
m=video 5600 RTP/AVP 96
a=rtpmap:96 H264/90000
#m=audio 5002 RTP/AVP 97
#a=rtpmap:97 mpeg4-generic/48000
#a=fmtp:97 streamType=5;profile-level-id=44;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3