Stream pre-recorded live
FastPix enables you the functionality to stream live by using a pre-recorded video instead of actually going live. This is often termed as “Simulated live”.
Simulated live, also known as simulated live streaming, or simulated live events, refers to a technique used in live streaming where pre-recorded content is broadcasted as if it is happening live. This technique is often used to provide a seamless and engaging viewing experience for audiences, particularly in scenarios where it may not be practical or feasible to conduct a live broadcast.
PLEASE NOTE
Pre-recorded live is somewhat different from cloud playout channels. To learn more about how cloud playout works read our blog . We have found a lot of scope and requirements for cloud playout feature across our customers. This made us think where the industry is heading to. And we’re on it. Cloud playout using FastPix is currently in Beta, and we’re excited to enable it for folks who have the use case pretty soon.
Step 1: Set up a live stream
To start a live stream, first, send an API request to FastPix to create a new live stream. In response, you’ll receive your stream details, including the Stream Id and Stream Key to construct the Server URL. You also get your Playback IDs.
Read our detailed guides for setting up a live stream:
FastPix provides stream key/secret for both RTMPS and SRT, allowing you to choose the protocol that best fits your setup. In the next step, you would need to use OBS Studio (or any broadcasting software) and enter the Server URL and Stream Key (from API response) in the streaming settings to establish a connection.
RTMPS server URL: rtmps://live.fastpix.io:443/live
SRT server URL: srt://live.fastpix.io:778
The above URLs are the standard entry points to stream live with FastPix. This is compatible with almost every streaming applications and services.
For this guide we will be using OBS, which is free and open-source. Here's how to stream using OBS :

If you're not using OBS, the software you use for broadcasting will guide you on how to start and stop an live stream session. Once you begin the session, the software will send live video to FastPix. At that point, the FastPix live stream status changes to active
, showing that it's receiving the RTMPS / SRT stream and ready to play using the Playback ID.
Step 2: Stream simulated live (recorded or stored video)
You can achieve simulated live streaming using OBS (Open Broadcaster Software). Here's how you can do it:
- Pre-record your content: First, you'll need to pre-record the content you want to stream as if it were live. This could be a presentation, webinar, or any other type of event.
- Set up OBS: Once you've entered your Server URL and Stream Key in the streaming settings (step 1), your broadcasting software would be ready to establish a connection.
- Create a scene: In OBS, create a new scene by clicking on the "+" icon under the Scenes section. You can name your scene appropriately.
- Add Your pre-recorded video: In the newly created scene, add your pre-recorded video as a media source. Click on the "+" icon under the Sources section and select "Media Source". Then browse and select your pre-recorded video file.

- Configure settings: Adjust the settings of your video source as needed. You may want to set looping options or adjust the audio settings.
- Test your setup: Before going live, it's essential to test your setup to ensure everything is working correctly. Preview your scene in OBS and make any necessary adjustments.
- Start streaming: When you're ready to start your simulated live stream, click on Start Streaming. This would connect the stream with FastPix live stream.
- Start playback: At the scheduled start time of your stream, start playback of your pre-recorded video in OBS. OBS will stream the video to the FastPix live stream you created as if it is happening live.
Step 3: Playback the simulated live stream
To watch a live stream, use the unique PLAYBACK_ID
you received when setting up the live stream, along with stream.fastpix.io, to get the URL for playback using HTTP Live Streaming (HLS).
https://stream.fastpix.io/{PLAYBACK_ID}.m3u8
If you have an SRT stream to playback, then you’ll need to construct the playback URL in the following format:
srt://live.fastpix.io:778?streamid=\<playbackStreamId>\&passphrase=\<srtPlaybackSecret> 
Replace <playbackStreamId>
and <srtPlaybackSecret>
with the values provided to you under srtPlaybackResponse
from the API response in step 1. You can use this URL in any SRT-compatible player to view your livestream.
If you wish to playback the live stream in FastPix player by integrating into your development project, you can use the below JavaScript SDK to install via CDN.
To install via npm (Node Package Manager) click here .
<script src="https://cdn.jsdelivr.net/npm/@fastpix/[email protected]/dist/player.js"></script>
<fp-player
stream-type="live-stream"
playback-id="{playbackId}"
primary-color="#F5F5F5"
accent-color="#5D09C7"
secondary-color="#000000"
/>
For step-by-step guidance on integrating with our video player, refer to the playback guide .
Once everything is set up, you can also integrate FastPix Data into your player to keep track of how the playback is performing.
Step 6: Stop stream broadcasting
You can stop the broadcast software to disconnect from the FastPix servers. If any reconnect_window
time was given as input and the time runs out, then the live stream will change its status to idle
.
Learn more about reconnect window .
Please note that, live streams automatically gets disconnected after 12 hours. For any specific scenarios or requirements where you need more than 12 hours live streams - Please contact us.
Updated 26 days ago