Skip to content

Instantly share code, notes, and snippets.

@hajowieland
Created May 18, 2025 18:33
Show Gist options
  • Save hajowieland/5e04c4d94502f4ac4ac9dd185e1bb3ea to your computer and use it in GitHub Desktop.
Save hajowieland/5e04c4d94502f4ac4ac9dd185e1bb3ea to your computer and use it in GitHub Desktop.
macos-webcam-live-recognition
#!/usr/bin/env bash
mediamtx &
ffmpeg -f avfoundation -use_wallclock_as_timestamps 1 -framerate 30 -video_size 1280x720 -i "0" -vcodec libx264 -preset ultrafast -tune zerolatency -pix_fmt yuv420p -f rtsp -rtsp_transport tcp rtsp://127.0.0.1:8554/mystream &
yolo pose predict model=yolo11n-pose.pt source='rtsp://127.0.0.1:8554/mystream' show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment