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...") |
|||
Line 1: | Line 1: | ||
− | + | '''mediamtx.yml''' | |
− | + | paths: | |
− | 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 | |
− | |||
− | |||
− | + | '''motion.conf''' | |
− | + | netcam_url rtsp://192.168.1.25:8554/cam | |
− | netcam_url rtsp://192.168.1.25:8554/cam | ||
− |
Revision as of 18:02, 10 May 2025
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
motion.conf
netcam_url rtsp://192.168.1.25:8554/cam