RTSP streaming out from jetson Xavier

Hello,
I need to start RTSP streaming from jetson Xavier.
For RTSP server, I’ve created gst rtsp server as suggested here:
RTSP streaming

As RTSP server is running, now I want to start stream on the box with FFmpeg from the command line as in here:

ffmpeg -re -stream_loop -1 -i ./Camera2.mp4 -c copy -f rtsp rtsp://localhost:8554/test

But it fails with the following error:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘./Camera2.mp4’:
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.17.101
Duration: 00:00:30.00, start: 0.000000, bitrate: 7075 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc, bt709), 3840x2160, 7074 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25k tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
[rtsp @ 0x55a2434f50] method ANNOUNCE failed: 405 Method Not Allowed
Could not write header for output file #0 (incorrect codec parameters ?): Server returned 4XX Client Error, but not one of 40{0,1,3,4}

Can you please help me solve this issue? I’ve already tried with some other launch lines, but no success yet.

Thank you

Hi,
For setting up RTSP server in ffmpeg command, would need other users to share experience. To set up in gstreamer command, you can try

$ ./test-launch "filesrc location=Camera2.mp4 ! qtdemux ! h264parse ! rtph264pay name=pay0 pt=96"

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.