Stream pre-recorded content as live
Stream pre-recorded content as live
Learn how to setup live stream for pre-recorded videos.
Stream pre-recorded content as live
Learn how to setup live stream for pre-recorded videos.
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.
NOTE
Pre-recorded live workflows differ from cloud playout channels. To understand how cloud playout works, read our blog.
We’ve seen strong demand for cloud playout across our customer base, which has helped shape our view of where the industry is headed and we’re building towards it. Cloud playout in FastPix is currently in beta, and we’re excited to make it available soon for teams with relevant use cases.
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 are 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.
You can achieve simulated live streaming using OBS (Open Broadcaster Software). Here’s how you can do it:
To watch a live stream, use the unique PLAYBACK_ID you received when setting up the live stream, along with stream.fastpix.com, to get the URL for playback using HTTP Live Streaming (HLS).
If you have an SRT stream to playback, then you’ll need to construct the playback URL in the following format:
Replace {playbackStreamId} and {srtPlaybackSecret} with the values provided to you under srtPlaybackResponse from the API response. 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 through CDN.
To install through npm (Node Package Manager) click here .
For step-by-step guidance on integrating with our video player, refer to the playback guide .
After everything is set up, you can also integrate FastPix Data into your player to keep track of how the playback is performing.
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 changes its status to idle.
Learn more about reconnect window .
Note that, live streams automatically gets disconnected after 8 hours. For any specific scenarios or requirements where you need more than 8 hours live streams - Contact us.