Test your video feed with one simple command

7 January 2026

Test your video feed with one simple command

« Back
Table of Contents

In case you want to test your live-stream server, it can be a hassle to fire up OBS each time, and start streaming from a different machine. Luckily, a simple command for FFmpeg can be used to start a live-stream from the localhost. Within a second, you should see something like what you see in the next image.

An added bonus is that running this, takes practically no resources, unlike OBS for example.

Simply copy/paste the following in to your terminal, but obviously you'll need to edit the STREAM-KEY at the end, to whatever you are using as stream-key.

ffmpeg -re \
-f lavfi -i testsrc \
-f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 \
-shortest \
-vcodec libx264 -profile:v baseline -pix_fmt yuv420p \
-acodec aac -ar 44100 -b:a 128k \
-f flv rtmp://127.0.0.1:1935/live/STREAM-KEY
Pick a star to rate this

Leave a Reply

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

Unrelated Content

7 January 2026
OwnCast: Host a live-stream channel that resembles Twitch

Owncast is a free and open source live video and web chat server for use with existing popular broadcasting software. I've been familiar with OwnCast for some time now. And honestly, it's a great app, especially considering it is completely free! It's also ultra user-friendly, and super easy to set up. But, for me personally, […]

READ MORE
27 November 2020
Motivation behind this website

For every service that is offered for a lot of money on the internet, there's always a free or much cheaper alternative, especially if you embrace open-source software. For live-streaming this is also very much the case. We love that,

READ MORE
23 January 2021
Introduction to the new how-to article in the Knowledge Base.

I wrote a new guide on setting up your own live-stream server. Mostly due to your requests. I took the opportunity to simplify and shorten the guide a bit. If you follow this guide step by step, and use your brain a tiny bit, you'll be fine. This guide has so far been tested on […]

READ MORE
25 January 2021
Optimizing First-Frame Bitrate for HLS

When responding to an HLS request, the streaming server determines which video quality (i.e., ts file) the client will attempt to play before switching to a lower or higher quality video. This switch depends on available bandwidth and device type. Switching to the wrong quality first degrades the user experience considerably. For instance, sending a […]

READ MORE
25 January 2021
Adaptive Bit-rate Streaming

“What is adaptive streaming?” This question often leads to answers filled with technical terms like “HLS”, “MPEG-DASH”, “segments” and “codec“. This article is written for people who need to understand the principles, but don’t need to actually implement the technology. If you are looking for specific technical information on adaptive streaming then I recommend you read up on it on this website and elsewhere.

READ MORE
2 February 2021
About Bradmax Video Player WordPress plugin

Let's talk about our favorite video player plugin for WordPress. Here are some reasons why Bradmax Player is our favorite. And below that are detailed instructions on how to set it up. Setting it up may at first seem a bit awkward, but it really isn't. First you must obviously install the Bradmax Player plugin […]

READ MORE
Copyright © 2025. 
All rights reserved.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram