<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Guides, Tutorials & Tips]]></title><description><![CDATA[Video surveillance, video analytics, AI, and more]]></description><link>https://xeoma.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6a3e3d2f0e0286383fcd5f4f/61c00e77-2206-4ad0-9cd6-ad0a78e95a2d.png</url><title>Guides, Tutorials &amp; Tips</title><link>https://xeoma.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 14:09:32 GMT</lastBuildDate><atom:link href="https://xeoma.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Turn any webcam, phone or video file into an RTSP camera]]></title><description><![CDATA[No IP camera? Turn a webcam, phone or video file into an RTSP camera for your video surveillance software — easy camera substitutes.]]></description><link>https://xeoma.hashnode.dev/turn-any-webcam-phone-or-video-file-into-an-rtsp-camera</link><guid isPermaLink="true">https://xeoma.hashnode.dev/turn-any-webcam-phone-or-video-file-into-an-rtsp-camera</guid><category><![CDATA[video surveillance]]></category><category><![CDATA[FFmpeg]]></category><category><![CDATA[self-hosted]]></category><category><![CDATA[#selfhosted]]></category><category><![CDATA[Tutorial]]></category><category><![CDATA[webcam]]></category><category><![CDATA[ip cameras]]></category><dc:creator><![CDATA[Xeoma Software]]></dc:creator><pubDate>Fri, 26 Jun 2026 12:34:53 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6a3e3d2f0e0286383fcd5f4f/e8f5fbce-f247-4d2c-a7a4-12b14b8a7eeb.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Modern video surveillance will always tell you the same thing for the best results: use a proper network (IP) camera. And that's sound advice — IP cameras are built for exactly this job. But you don't always <em>have</em> one to hand, and you don't always want to buy one straight away. Sometimes you just want to try those wow-features first — fall detection, license-plate recognition, face recognition — without spending a cent, to see whether a system is worth it.</p>
<p>The good news is that video surveillance software doesn't actually care where its video comes from. A camera, to a VMS, is just a <strong>stream</strong> — and there are plenty of ways to produce one. In an earlier article we listed <a href="https://felenasoft.com/xeoma/en/articles/things-to-use-instead-of-camera-for-video-surveillance/?utm_source=hashnode">9 things you can use instead of a surveillance camera</a>. Here we'll zoom in on three of the most useful ones in detail: <strong>smartphone cameras, USB webcams, and even plain video files</strong> — and how to turn each into something your VMS will happily ingest, often as an RTSP stream.</p>
<h2>1. Use a phone or tablet camera as a surveillance camera</h2>
<p>A phone is the most accessible spare camera there is. To press it into service you need a surveillance app, and those come in a few flavours:</p>
<ul>
<li><p><strong>Cloud apps (account required).</strong> You install the app, create an account, point the phone at what you want to watch, and the video goes to the provider's cloud, where it's processed; you view it and get alerts through your account. Simplest to start, but your footage lives on someone else's servers.</p>
</li>
<li><p><strong>Standalone (on-device) apps.</strong> Rarer, but interesting: the app records and processes locally on the phone itself, with no account and no cloud. On Android this can run essentially on its own, and the footage stays on your device and network. If you're looking for apps of this type, you should probably try <strong>Xeoma</strong> - apart from working in extreme conditions, it also offers a free mode.</p>
</li>
<li><p><strong>Streaming-source apps (the RTSP route).</strong> This is the one that literally turns the phone into a network camera. An app such as <em>IP Webcam</em> (Android) exposes the phone's camera as an <strong>MJPEG/RTSP URL</strong> on your local network. You then add that URL to any VMS as if it were an IP camera — typically something like <code>http://&lt;phone-ip&gt;:8080/video</code> or <code>rtsp://&lt;phone-ip&gt;:&lt;port&gt;/…</code>.</p>
</li>
</ul>
<p>For most casual setups the streaming-source route is the one that fits the title of this article: it gives you a real network stream straight from the phone in your pocket.</p>
<p>A caveat on terminology: if you simply google "video surveillance app", most of what you'll find is <strong>client</strong> apps — they connect to a full surveillance server (which you typically run on a desktop PC) and are just a remote viewer, so they don't use the phone's own camera at all. Similarly, network-camera manufacturers often tell you to "download our app", but that app controls <em>their</em> IP camera rather than turning your phone into one.</p>
<h2>2. Use a laptop webcam (or a standalone USB one)</h2>
<p>Built-in laptop/monitor webcams and standalone USB webcams are UVC devices, and <strong>some surveillance software can use them directly</strong> — with a few caveats (a USB cable is short and tethers the camera to the computer, you usually get one per port, and resolution/frame-rate are whatever the webcam offers; they're great for testing, less so as a permanent outdoor camera).</p>
<p>Where it's supported, a USB webcam is detected in a VMS simply as a USB camera: when you launch the program or add a camera, it shows up in the device list and you just pick it.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6a3e3d2f0e0286383fcd5f4f/b90d0c61-051e-4402-a997-da77a19202f5.jpg" alt="Xeoma detecting a USB webcam in the Add camera list" style="display:block;margin:0 auto" />

<p><em>A Speedlink USB webcam detected as a USB camera in Xeoma's + list.</em></p>
<p>That covers the case where the surveillance software runs <strong>on the same machine</strong> as the webcam. If your VMS only accepts IP cameras, or you want to process the webcam on a <em>different</em> computer, you can re-publish the webcam over the network as an RTSP stream — the same "emulate a network camera" idea we use for video files below.</p>
<h2>3. Use a video file as a camera</h2>
<p>A recorded clip is a brilliant test source: you can replay the exact same footage as many times as you like, which is perfect for trying out detectors and analytics (recreate a "fall", a fire, a plate appearing — in seconds, without staging anything in real life).</p>
<p>The catch: most VMS won't let you just <strong>add a video file</strong> as a source*. Instead you have to <em>emulate a network stream</em> from the file, so the software thinks it's a camera. And it's worth being honest — not every VMS will accept even an emulated camera; some are quite inflexible about sources. But where it works, here are two ways to do it.</p>
<p>*Xeoma is an exception here — it can work with a video file directly as a source, without you having to emulate a stream first. More on that in Option B.</p>
<h3>Option A — Emulate an RTSP stream with VLC</h3>
<p>VLC can stream a local file out over RTSP:</p>
<ol>
<li><p><strong>Media → Stream…</strong> (Ctrl+S).</p>
</li>
<li><p>On the <strong>File</strong> tab, click <strong>Add…</strong>, choose your video, then click <strong>Stream</strong>.</p>
</li>
<li><p>In the wizard, click <strong>Next</strong>.</p>
</li>
<li><p>Under <strong>New destination</strong>, pick <strong>RTSP</strong> and click <strong>Add</strong>.</p>
</li>
<li><p>Set the <strong>Port</strong> (default <code>8554</code>) and a <strong>Path</strong>, e.g. <code>/stream</code>.</p>
</li>
<li><p><em>(Optional)</em> tick <strong>Activate Transcoding</strong> and choose an H.264 profile, in case your VMS doesn't like the original codec.</p>
</li>
<li><p>Click <strong>Next</strong>, then <strong>Stream</strong>.</p>
</li>
<li><p>In your VMS, add the camera by URL: <code>rtsp://&lt;PC-IP&gt;:8554/stream</code>.</p>
</li>
</ol>
<p>To make it loop, just enable repeat in VLC's own interface — turn on the <strong>Loop</strong> button in the playback controls (the looping-arrows icon at the bottom of the player) so the file replays continuously.</p>
<h3>Option B — Use Xeoma</h3>
<p>There are two reasons Xeoma is handy here. First, you can simply <strong>run your surveillance in Xeoma directly</strong> — it can take a video file as a source without the emulation dance. Second, even if you intend to use a <em>different</em> brand of VMS, Xeoma can act as the bridge that turns your file into a network stream for it.</p>
<p>For that, the file needs to be in genuine <strong>MJPEG</strong> format, and the cleanest way to convert it is with <strong>ffmpeg</strong> which you can download freely from the official website. Besides, it can also be found inside Xeoma's folder, so you can use it from there. Open a command line or Terminal and drag the ffmpeg file to the window. Follow it by an <code>-i</code> and drag your source video file into the same window. Next, input some preferences for conversion and the name for the output file. Something like this:</p>
<pre><code class="language-bash">ffmpeg -i input.mp4 -an -b:v 2000K -f fsmjpeg output.mjpeg
</code></pre>
<p>Then:</p>
<p>In Xeoma, go to + menu, select 'Add a new camera manually' and then remove the first module - <em>Universal Camera</em> - from the workflow. Instead, add a <em>File Reading</em> from the top bar and enter its settings. Once inside that dialog, point it at <code>output.mjpeg</code> (the video-file source).</p>
<img src="https://cdn.hashnode.com/uploads/covers/6a3e3d2f0e0286383fcd5f4f/960159b3-c426-475c-9da6-dedf0db3e3d8.jpg" alt="Adding a video file as a source in Xeoma" style="display:block;margin:0 auto" />

<img src="https://cdn.hashnode.com/uploads/covers/6a3e3d2f0e0286383fcd5f4f/a3b212f2-9f6d-4635-9dca-97d19dce2583.jpg" alt="" style="display:block;margin:0 auto" />

<p><em>Adding a video file as a source in Xeoma.</em></p>
<p>To feed that stream into another VMS, attach an <strong>"RTSP Broadcasting"</strong> module to the file's chain instead of other filters or destinations — Xeoma will publish it as an RTSP stream you can add elsewhere by URL.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6a3e3d2f0e0286383fcd5f4f/44eb47b5-c4b5-4d1b-8009-e10ff09f3e49.jpg" alt="The RTSP Broadcasting module attached in a Xeoma chain" style="display:block;margin:0 auto" />

<p><em>The "RTSP Broadcasting" module attached in a Xeoma chain.</em></p>
<img src="https://cdn.hashnode.com/uploads/covers/6a3e3d2f0e0286383fcd5f4f/11d17243-d295-42e3-a553-23445ecafd8f.jpg" alt="" style="display:block;margin:0 auto" />

<p><em>See the RTSP link in the RSTP Broadcasting module's settings</em></p>
<h2>Conclusion</h2>
<p>That's three practical ways to get a working camera stream without owning a network camera — a phone, a USB webcam, or a plain video file. And they're not the only stand-ins: you can also use a <strong>smart-TV camera</strong>, a <strong>photo or action camera</strong> (over USB webcam mode or an HDMI capture stick), <strong>public cameras</strong> published by their owners, or even a <strong>screen-capture</strong> of whatever is playing on your display. We covered all of these in the <a href="https://felenasoft.com/xeoma/en/articles/things-to-use-instead-of-camera-for-video-surveillance/?utm_source=hashnode">full list of 9 alternatives</a>.</p>
<p>Once you've used these to test the waters and you're convinced, do consider investing in proper network cameras — they're inexpensive, simple, and purpose-built for surveillance. But until then, there's nothing stopping you from getting a real system up and running with the gear you already have.</p>
<hr />
<p><em>Did you enjoy the article? Have questions or ideas for future guides? Let us know in the comments!</em></p>
]]></content:encoded></item></channel></rss>