Difference between revisions of "HowTo/MotionAndRTSP"
Jump to navigation
Jump to search
(Created page with "`mediamtx.yml` ``` paths: cam: runOnInit: ffmpeg -f v4l2 -i /dev/video0 -c:v libx264 -pix_fmt yuv420p -preset ultrafast -b:v 600k -f rtsp rtsp://localhost:$RTSP_PORT/$M...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | Download mediammtx here: https://github.com/bluenviron/mediamtx/releases | |
− | + | Configure it: | |
− | |||
− | |||
− | |||
− | |||
− | + | '''mediamtx.yml''' | |
− | + | paths: | |
+ | cam: | ||
+ | runOnInit: ffmpeg -f v4l2 -i /dev/video0 -c:v libx264 -pix_fmt yuv420p -preset ultrafast -b:v 600k -f rtsp rtsp://localhost:$RTSP_PORT/$MTX_PATH | ||
+ | runOnInitRestart: yes | ||
− | + | Install motion (pacman -S motion / apt install motion) | |
− | netcam_url rtsp://192.168.1.25:8554/cam | + | |
− | + | Configure netcam_url param: | |
+ | |||
+ | '''motion.conf''' | ||
+ | |||
+ | netcam_url rtsp://192.168.1.25:8554/cam |
Latest revision as of 18:03, 10 May 2025
Download mediammtx here: https://github.com/bluenviron/mediamtx/releases
Configure it:
mediamtx.yml
paths: cam: runOnInit: ffmpeg -f v4l2 -i /dev/video0 -c:v libx264 -pix_fmt yuv420p -preset ultrafast -b:v 600k -f rtsp rtsp://localhost:$RTSP_PORT/$MTX_PATH runOnInitRestart: yes
Install motion (pacman -S motion / apt install motion)
Configure netcam_url param:
motion.conf
netcam_url rtsp://192.168.1.25:8554/cam