How do I record streams for VOD playback?
Problem: I’d like to record streams so they can be played back later.
Solution: Recording is built into our platform. We provide customers with a simple workflow for recording streams for subsequent VOD playback. This feature is invoked as a capability set up on the publisher:
When recording with our
on-demand capability, the platform provides a chunked HLS and DASH stream stored in perpetuity or until it is deleted by the customer. You can directly access the playlists by fetching the playlist URL from our API to integrate playback with your own player. Alternatively, you can use the same subscribing mechanism as for our real-time streams. In this case, you would need to know the stream id (which can be obtained from the ExpressPublisher object via a getter).
You can also download your stream as a mp4 file using ffmpeg:
1ffmpeg -i https://phenixrts.com/video/<applicationId>/<url-encoded-streamId>/vod.m3u8 -c copy my_stream.mp4
Keywords: Recording, VOD, HLS, DASH, mp4, ffmpeg