• Skip to Search
  • Skip to Content
  • Skip to Side Navigation
Getting StartedSDK ReferenceGlossary
  • Home
  • Getting Started
  • SDK Reference
  • Portal
  • How-To
  • Troubleshooting
  • FAQs
  • Reference
  • Glossary
How-To Guides
  • API Usage
  • Artificially lower bandwidth or bitrate
  • Set up publishing or subscribing for only audio or only video
  • Set up High Availability
  • Optimal RTMP encoder settings
  • How do I find my stream key?
  • Preventing stream sharing
  • Debug tokens in the Portal
  • Display multiple copies of the same stream
  • Find the video dimension of the stream
  • Measure timing
  • Create test input
  • Verify encoder ability to contribute via UDP
  • Manage issues with installing Phenix SDKs
  • RTSP ingest from IP cameras
  • Work with timestamps in reports
  • How do I deal with corporate firewalls?
  • How do I record streams for VOD playback?
  • How do I set up ad insertion?
  • How do closed captions work in the Phenix system?
  • How do I set up and use SRT Ingest?
  • How do I set up and use RTMP Ingest?
  • How do I set up and use replay?

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: on-demand.

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).

Additionally, you receive on-demand notifications if you have setup a notification callback.

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

Page Content
    Copyright 2023 © Phenix RTS
    Privacy Policy | Terms of Service
    v2023-01-31T21:25:10