1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Save Live Video Stream
This guide explains how to record or archive all of your broadcasts Streaming video, which can be useful for creating TV replays or re-viewing videos recorded by surveillance cameras e.g.
Manage automatic recording of live broadcasts
To enable this option:
- Click here in order to access the management of your product on the Manager Infomaniak (Need help?).
- Click directly on the name assigned to the product concerned.
- Enable Direct Recording by the toggle switch (toggle switch)from the flow dashboard:
Once this feature is enabled, the stream will be automatically and perpetually saved from the moment it is sent to (or pulled by) the Infomaniak platform.
Stay alert to your FTP space that could quickly be saturated. In case of need, you also have the possibility to manually plan records from the planning tool.
Operation of automatic recording
Once this option is enabled, an mp4 file will be automatically generated after each broadcast, which will be transferred to the FTP or VOD space configured by you.
Important clarifications:
- A broadcast is defined as the moment between connection and disconnection to the video encoder.
- Record quality: in the case of a multi-bitrate stream, the maximum source quality will be retained.
- Limiting file size: In case of continuous streaming, you have the option to set the maximum duration of each mp4 file; this option allows you to avoid generating too heavy files and to guarantee the recording of your archives to the FTP or VOD space of your choice (and once the time is reached, the recording is automatically stopped and then sent by FTP and a new record is launched).
Customization of record names
To allow you to easily identify and classify your archives, the records name is dynamically customizable using specified parameters between braces.
Example:
template_{stream_id}_{date|format:YYYY-MM-dd_hh:mm:ss}_{fragment_id|from:1|prefix:fragment_(|suffix:)}.{extension}
stream_id
= represents the flow identifier in the form of a string.date|format
ISO 8601 = date of registration.time|format
: ISO 8601 = time of registration.datetime|format
ISO 8601 = date and time of registration.fragment_id|from:number|prefix:string|suffix:string
: = fragment number in case a record is cut with the possibility of prefixing and/or suffixing it.- Each fragment will be incremented, "
from
" to indicate which will be the first reference fragment.
- Each fragment will be incremented, "
extension
= final file extension.
These parameters and their options are optional and their order is completely free. They can be used as many times as desired. If you provide the same option several times, only the last one will be taken into account. Any unrecognized option will simply be ignored.
Example 1
Situation: you have two daily programming, the first starts at 10:00 and the second at 8:05. Configuring file naming in this way template_{date|format:hh:mm:ss}
you will get the following file names:
For the day of December 5, 2019:
- The first recording at 10:00 am will be called:
template-10:00:00.mp4
- The second recording at 8:05 p.m. will be called:
template-20:05:00.mp4
For the day of December 6, 2019:
- The first recording at 10:00 am will be called:
template-10:00:00.mp4
The recording of the day before the same name will be crushed and replaced by it. - The second recording at 8:05 p.m. will be called:
template-20:05:00.mp4
The recording of the day before the same name will be crushed and replaced by it. - etc.
This logic can be particularly useful for having a loop recording system, for example for a video surveillance. The user will recover the video only if needed and this avoids archiving a potentially infinite number of videos at the risk of saturating the FTP space.
Example 2
Situation: This time you have a perpetual recording, 24/7, with a time limit of 360 minutes. Configuring file naming in this way template_{date|format:YYYY-MM-dd}_{fragment_id|from:1|prefix:fragment_(|suffix:)}.{extension}
you will get the following file names:
- The first file of the day at 00:00 will be called:
template_2019-02-05.mp4
- The second file of the day at 6:00 am will be called:
template_2019-02-05_fragment(1).mp4
- The third file of the day at 12:00 will be called:
template_2019-02-05_fragment(2).mp4
- The fourth file of the day at 6:00 p.m. will be called:
template_2019-02-05_fragment(3).mp4
Configuring file naming in this way template_{date|format:YYYY-MM-dd}_{fragment_id|from:0|prefix:fragment_(|suffix:)}.{extension}
you will get the following names:
- The first file of the day at 00:00 will be called:
template_2019-02-05_fragment(0).mp4
- The second file of the day at 6:00 am will be called:
template_2019-02-05_fragment(1).mp4
- The third file of the day at 12:00 will be called:
template_2019-02-05_fragment(2).mp4
- The fourth file of the day at 6:00 p.m. will be called:
template_2019-02-05_fragment(3).mp4