October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

How to View a Raspberry Pi Camera Live on Your Network

Stream a Raspberry Pi camera to a network player with rpicam-vid, or use MediaMTX to provide browser and RTSP viewing endpoints.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can view a Raspberry Pi camera from another device in two ways: send a stream directly from rpicam-vid to a compatible player, or send the camera feed to MediaMTX and let that server provide a browser or RTSP address. The direct route has fewer moving parts; MediaMTX is more convenient when viewers need different ways to connect.

Before you start

  • Make sure the camera module is compatible with your Raspberry Pi board and connector. Compatibility varies by hardware; check Raspberry Pi’s camera documentation for your model.
  • Connect the Pi and the viewing device to a network where they can reach one another. For the commands below, replace placeholders such as <client-ip> and <port> with the receiving device’s address and the port you choose.
  • The current Raspberry Pi command-line camera tool is rpicam-vid. Available camera modes and performance depend on the board, camera, encoding and network.

Way 1: Send a direct stream with rpicam-vid

This is the shorter route when you already know which device and player will receive the video. The sender and receiver must use matching transport, port and stream format settings.

As an Amazon Associate I earn from qualifying purchases.

Send an MPEG-TS stream over UDP

Raspberry Pi’s camera guide recommends considering MPEG-2 Transport Stream packaging when sending video over a network because player support for a bare H.264 stream can be inconsistent. One documented approach uses the libav backend:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
rpicam-vid -t 0 -n --inline --libav-format mpegts -o udp://<client-ip>:<port>

Replace <client-ip> with the IP address of the device that will receive the video, and set a port that the receiving player is configured to listen on. Open that UDP stream in a compatible player, such as VLC, using the same address and port. The Raspberry Pi guide also documents other network arrangements, including TCP and an RTSP setup using VLC as a server; those require corresponding receiver or server configuration.

#1 Best Overall
Arducam 5MP Camera for Raspberry Pi, 1080P HD OV5647 Camera Module V1 for Raspberry Pi5/4/3/3B+, and Other A/B Series
  • High-Definition video camera for Raspberry Pi Model A or B, B+, model 2, Raspberry Pi 3,3 B+, Pi 4, Pi 5(NOT for Pi Zero)
  • 5MPixel sensor with Omnivision OV5647 sensor in a fixed-focus lens. Software auto focus lens: B07SN8GYGD
  • Integral IR filter
  • Still picture resolution: 2592 x 1944; Max video resolution: 1080p
  • Check ASIN: B07RWCGX5K for OV5647 with acrylic case. Other optional accessories: ABS case (B09TNG4V55); Mini tripod case kit (B09TKYXZFG).

When this route makes sense

  • You have one known viewer and want to avoid setting up a separate streaming server.
  • You are comfortable configuring the player to match the chosen transport and port.

A direct stream does not create one universal viewing URL: the client must support the stream’s packaging and transport. Raspberry Pi cautions that VLC does not handle unencapsulated H.264 streams in the documented UDP example, so use a compatible format or player rather than assuming a bare H.264 stream will play everywhere.

Way 2: Use MediaMTX for browser or RTSP viewing

MediaMTX sits between the camera and viewers. It can use a Raspberry Pi camera as a source and expose viewer-facing endpoints, which is useful when you want a browser option as well as traditional RTSP clients.

Rank #2
Arducam for Raspberry Pi HQ Camera Module,12.3MP IMX477 Raspberry Pi Camera for Raspberry Pi5/4B/3B+/Zero 2W, Comes with C-CS Adapter and Tripod Mount
  • How to use: Before using this hq camera, please modify the config.txt file by adding dtoverlay=IMX477 (If connect to cam0 port on Pi5, add dtoverlay=IMX477,cam0);
  • For all Raspberry Pi: This Arducam for Raspberry Pi camera is compatible with all Raspberry Pi;
  • What you will get: 1 x Pi hq camera(with a 1/4" tripod adapter), 1 x dust cover, 1 x C-CS adapter, 1 x 15-22pin Pi camera cable, 1 x 15-15pin Pi camera cable;
  • High resolution: This camera module can offer high-resolution images with its 12.3MP IMX477 sensor, the max resolution is 4056*3040 pixels.
  • Wide Application: This RPI camera can be used as a 3D printer camera, or home security monitor and can serve for Artificial Intelligence, like facial recognition, high-speed capturing, and so on.

Configure a camera path

The Picamera2 manual shows a minimal MediaMTX configuration like this:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
paths:
  cam:
    source: rpiCamera
    rpiCameraBitrate: 10000000

The bitrate shown here is the manual’s example setting, not a universal recommendation. Save the configuration as mediamtx.yml for MediaMTX to use, then start MediaMTX according to its installation and operating instructions. The exact setup depends on how you installed it; the configuration example alone does not install or launch the server.

Rank #3
Arducam for Raspberry Pi Camera Module V2-8 Megapixel,1080p IMX219 Raspberry Pi 5 Camera
  • What Will You Get: An 8mp Arducam for Raspberry Pi camera V2 with a 15cm original FFC cable for model A and B and a 15cm FPC cable for pi zero & w.
  • Sensor: 8 megapixel IMX219, Max. resolution: 3280 (H) x 2464 (V)
  • Frame Rates: 1080p47, 1640 × 1232p41 and 640 × 480p206
  • Recommended Power Supply: DC 5V, above 1.8A
  • Typical Usage Scenarios: this tiny camera board can be used for monitoring Octoprint 3D Printer, Home security and surveillance, dashcam or other machine vision application. Please search ASIN: B09TNG4V55/B09TKYXZFG to get Arducam for Raspberry Pi Camera ABS Case and Tripod Case Kit.

Open the stream from another device

With the example path named cam, use the Raspberry Pi’s network address in one of these documented endpoints:

  • Browser: http://<pi-ip-address>:8889/cam
  • RTSP player: rtsp://<pi-ip-address>:8554/cam

Replace <pi-ip-address> with the Pi’s address. The browser endpoint is served by MediaMTX; it is not the same as opening the camera directly in a browser. If a viewer cannot connect, check that MediaMTX is running, that the path name matches, and that the relevant port is reachable from the viewing device.

Rank #4
Arducam for Raspberry Pi Zero Camera Module, 5MP OV5647 1080P Webcam on Raspbian (Cables in 2 Kinds)
  • Pi compatible - Work natively with all Raspberry Pi models for your new project or drop-in replacement
  • Both cables - 2 cables included so you can switch between the camera connectors for the Pi Zero and Model A&B series
  • Specs - 5MP 1080P OV5647, crisp photos, and sharp videos with a decent frame rate
  • Easy to use – Easy setup with paper instructions to help you activate the camera feature on Raspbian.
  • Application: Small form factor for a tiny home video security system, monitoring 3D printer or other camera projects. Feel free to contact Arducam if you need any help with the product

When this route makes sense

  • You want a server-style address that viewers can use from a browser or RTSP player.
  • You may later need to distribute the camera feed through another protocol or integrate it with a more involved setup.

MediaMTX requires an additional server process and correct path and network-port configuration. Raspberry Pi also documents other third-party streaming servers, including MistServer and go2rtc, but the available guidance does not identify one as universally best.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Choose the route that fits your viewer

Consideration Direct rpicam-vid stream MediaMTX server
Setup shape The camera process sends video to a client or transport endpoint. A server receives the camera feed and provides viewer-facing endpoints.
Viewer access Depends on transport and player support. Can provide RTSP and browser delivery, depending on configuration.
Good fit A simple local stream with a known client. Multiple client types or a stable server-style endpoint.
Main trade-off Fewer moving parts, but sender and receiver settings must match. More configuration and a separate server process.

These are differences in setup, not a performance ranking. Latency, stability, resolution and CPU use depend on the specific board, camera mode, encoding, network, server and client.

Troubleshoot pauses and failed connections

If the viewer cannot connect

  • Confirm that the address points to the correct device: the client’s address for the direct UDP example, or the Pi’s address for MediaMTX.
  • Check that the sender and receiver use the same transport and port. For MediaMTX, also confirm that the configured path name matches the URL.
  • Verify that the receiving device’s player supports the selected stream format. A bare H.264 stream may not work in a player that handles MPEG-TS correctly.

If UDP playback pauses

Raspberry Pi notes that undersized UDP receive buffers can lead to dropped data and visible pauses. If this appears to be the cause, its camera documentation provides Linux buffer-tuning guidance. For Raspberry Pi OS Bookworm, the documented settings belong in /etc/sysctl.conf, followed by reloading the settings or rebooting as directed in that guide. Do not change system buffer settings unless you are troubleshooting this specific symptom.

Advanced option: process frames with Python

For projects that need image processing or additional camera operations, the Picamera2 manual describes sending video from Python scripts to MediaMTX instead of using its plain native camera source. That approach adds code and setup, so it is not necessary for a basic live view.

Quick Recap

Bestseller No. 1
Arducam 5MP Camera for Raspberry Pi, 1080P HD OV5647 Camera Module V1 for Raspberry Pi5/4/3/3B+, and Other A/B Series
Arducam 5MP Camera for Raspberry Pi, 1080P HD OV5647 Camera Module V1 for Raspberry Pi5/4/3/3B+, and Other A/B Series
Integral IR filter; Still picture resolution: 2592 x 1944; Max video resolution: 1080p
$6.99
Bestseller No. 3
Arducam for Raspberry Pi Camera Module V2-8 Megapixel,1080p IMX219 Raspberry Pi 5 Camera
Arducam for Raspberry Pi Camera Module V2-8 Megapixel,1080p IMX219 Raspberry Pi 5 Camera
Sensor: 8 megapixel IMX219, Max. resolution: 3280 (H) x 2464 (V); Frame Rates: 1080p47, 1640 × 1232p41 and 640 × 480p206
$16.99
Bestseller No. 4
Arducam for Raspberry Pi Zero Camera Module, 5MP OV5647 1080P Webcam on Raspbian (Cables in 2 Kinds)
Arducam for Raspberry Pi Zero Camera Module, 5MP OV5647 1080P Webcam on Raspbian (Cables in 2 Kinds)
Specs - 5MP 1080P OV5647, crisp photos, and sharp videos with a decent frame rate
$9.49

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.