This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Introduction

Introduction to Origin Manager

    Overview

    Origin Manager (OM) manages the content that AgileTV Origin streams over HTTP and WebTV. You use it to record live channels, upload video files, publish the live buffer of a channel, and register content that is stored somewhere else. OM keeps track of the assets, where they are stored and whether they are ready to play.

    OM is compatible with Convoy: it uses the same MySQL database and Redis cache, so the Request Router and other readers of that data keep working. OM can share the database and Redis with an existing Convoy deployment, but do not give OM roles to hosts that run Convoy services. The recorder and uploader roles install ew-vodingest 1.20.0, and om-deploy uninstall removes it again, which affects a Convoy recorder on that host, see Convoy integration. Sharing a host with Convoy was not tested. OM does not coordinate with the WebTV recording scheduler of Convoy, so make sure that only one of them schedules the same recordings. IPTV, RTSP, session handling and CDN publishing are not part of OM.

    What OM Can Do

    • Record channels. Schedule a recording of a channel between a start and a stop time. OM can record each channel to several storage systems at once.
    • Upload files. Give OM the URL of a SMIL file that lists the media files (an ftp URL can also name a directory). It fetches the files, checks them and stores them on the storage systems that match the tags of the content. See the SMIL manifest page of the VoD ingest and Creating an Upload.
    • Publish buffered live content. Expose the live buffer of a channel as playable content.
    • Register external content. Add an asset that is already hosted elsewhere. OM stores a record and never touches the files.
    • Manage channels, content and distributions through the Account API on port 9090. The om tool covers channels and content. Use the API for distributions.

    Content Types and States

    Each content item has a source that decides how it is created and what OM does with it:

    SourceWhat it isHow you create it
    recordingA recording of a channel between a start and a stop timeom content record or POST /api/2/content
    uploadMedia files that OM fetches through the URL of a SMIL file and storesom content upload or POST /api/2/content
    buffered_liveThe live buffer of a channel. The content ID is the channel nameom content live or POST /api/2/content
    externalAn asset that is already hosted elsewherePOST /api/2/content

    Recordings and uploads are processed in the background. They start in the state pending and move on by themselves. The state that the API shows is one of:

    StateMeaning
    pendingA recording is waiting to start, or an upload has not started
    ongoingA recording is in progress, or an upload is being downloaded, checked or stored. A short recording that is already in the catch-up buffer can go from pending straight to done
    doneThe recording or upload has finished
    errorThe recording or upload failed. For a recording the API does not say why, the reason is in the logs, see Logging. An upload without tags shows a short reason after the state
    N/ANothing runs behind the content: buffered_live and external content

    The usage report of Convoy (convoy-admin usage-report generate) counts each recording and upload when it reaches done, with the duration of the content and a size of 0, because OM measures no size. Recordings appear under DAILY RECORDINGS and uploads under DAILY VOD. OM has no usage report command of its own.

    How Players Find the Content of an Account

    OM manages content, and the Request Router (RR) serves the streams. The RR chooses the account of a request from the HTTP Host header: it looks for a distribution whose cache name is the host name, and serves the request for the account of that distribution. A request with a host name that no distribution uses is served for the default account, so it only sees the channels and content of that account. See Serving the Content of an Account through the Request Router.

    Services and Tools

    OM runs as four services: origin-manager (the Account API), origin-scheduler (starts recordings and uploads and cleans up deleted content), origin-recorder and origin-uploader. The configuration is stored in etcd. You work with OM through three tools:

    ToolUse it to
    omManage channels and content through the Account API
    om-adminCreate accounts and operators and inspect storage. Run it on a node that has the manager role
    om-deployInstall, configure, upgrade, downgrade, control and uninstall OM on all nodes

    om and om-admin come with the origin-manager package, so they are on the nodes that have the manager role. om-deploy is on the administration machine.

    OM is delivered as RPM packages in an offline installer. It is officially supported on Red Hat Enterprise Linux 9. Other binary compatible distributions are unofficially supported.

    A First Look

    Create a channel, schedule a recording of it, and look at its state. This assumes that a Catch-up Buffer Manager with buffer_duration set serves the channel group default, see the Configuration page:

    om channel add news-1 -t "News One" -g default
    om content record match-1 -t "Evening match" -c news-1 \
      -b 2026-12-01T20:00:00Z -e 2026-12-01T22:00:00Z
    om content get match-1
    
    title:    Evening match
    service:  HTTP
    state:    pending
    playable: no
    duration: 7200 seconds
    created:  2026-11-02T10:00:00Z
    modified: 2026-11-02T10:00:00Z
    recording:
      channel: news-1
      start time: 2026-12-01T20:00:00Z
      stop time: 2026-12-01T22:00:00Z
    delivery URIs:
      dash:    /__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/dash-default/__f/manifest.mpd
      hls:     /__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/hls-default/__f/index.m3u8
      mss:     /__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/mss-default/__f/Manifest
    etag: 5f1c2b3a-0000-4000-8000-000000000001
    

    The state line shows pending, because the recording has not started. The last line is the entity tag, which you need to change the content later. The recording: lines show the channel and the window, and delivery URIs: holds the paths that a player uses.

    The How-To Guides walk through this and the other content types step by step. The API Reference describes every request.