Facemp4 Install: Kaamuk Shweta Cam Show Wid

facemp4 \
  --device 0 \
  --output shweta_cam_faces.mp4 \
  --show \
  --detect-faces \
  --face-box-color 0,255,0 \
  --blur-faces

Explanation

If you enabled -DENABLE_RTMP=ON during the CMake step, you can push a live feed directly: kaamuk shweta cam show wid facemp4 install

facemp4-stream \
    -d /dev/video0 \
    -r 1920x1080 \
    -f 30 \
    -b 5M \
    -o rtmp://your.cdn/live/shweta

For RTSP (e.g., use with VLC, OBS, or a private Nginx‑rtsp server): facemp4 \ --device 0 \ --output shweta_cam_faces

facemp4-stream \
    -d /dev/video0 \
    -r 1280x720 \
    -f 25 \
    -b 3M \
    -o rtsp://0.0.0.0:8554/shweta

You can add the above command to the daemon’s config (stream_url=) or launch it in a screen/tmux session. Explanation If you enabled -DENABLE_RTMP=ON during the CMake


from facemp4 import CameraRecorder
rec = CameraRecorder(
    device_index=0,
    output_path="shweta_cam_custom.mp4",
    fps=30,
    resolution=(1280, 720),
    show_window=True,
    detect_faces=True,
    blur_faces=False,
)
rec.start()               # begins capture in a background thread
# … do other things here, e.g. wait for a key press or integrate with a GUI …
rec.stop()                # clean shutdown

The CameraRecorder class also exposes callbacks (on_frame, on_face_detected) if you want to feed frames into a neural‑network or stream them over a network socket.