I need to get on a small website the stream captured by my Raspberry Pi camera (not a webcam). I have tryed something like:
libcamera-vid -t 0 --inline --width 640 --height 480 --framerate 10 | ffmpeg -f h264 -i - -vcodec copy -f rtsp rtsp://192.168.1.111:8554
But it doesn't work.
I think that the first part with libcamera-vid is okay, but next I am not sure what to do to convert the stream with FFmpeg and send it to MediaMTX to be able to show it properly on a website.
ffmpeg -f h264 -i - -vcodec copy -f rtsp -rtsp_transport tcp rtsp://192.168.1.111:8554you were missing-rtsp_transport tcp