eluv-io / elv-live-js

Eluvio Live JavaScript SDK
MIT License
4 stars 3 forks source link

Add support for creating new object in stream copy as VoD #181

Closed elv-serban closed 2 months ago

elv-serban commented 2 months ago

Add a new option to elv-stream copy_as_vod: --library ilib* One of --object or --library is required. If both specified then --object takes precedence.

Usage:

./elv-stream copy_as_vod
 copy_as_vod <stream>

Copy the stream to a new VoD object.

Positionals:
  stream  Stream name or QID (content ID)                    [string] [required]

Options:
      --version           Show version number                          [boolean]
  -v, --verbose           Verbose mode                                 [boolean]
      --url               Optional node endpoint (eg.
                          https://host-x-x-x-x.contentfabric.io)        [string]
      --help              Show help                                    [boolean]
      --object            Copy to an existing object instead of creating a new
                          one                                           [string]
      --library           Copy to a new object in this library          [string]
      --event_id          Optional SCTE35 program or chapter event ID   [string]
      --end_time          End at the specified time in the stream       [string]
      --recording_period  Use only the specified recording period
      --streams           List specific streams to be copied (eg.
                          'video:0,audio:1,audio_spa:2')                [string]

Example:

./elv-stream copy_as_vod iq__2mgMKL39Zb5Z4ESoLP3Lg8bcEacZ --library ilib4HjZxzmrTuhSEZBFXynsvpatdVJN

The name is automatically generated like so:

VOD - Live Stream iq__2mgMKL39Zb5Z4ESoLP3Lg8bcEacZ - 2024-06-26T00:46:52.202Z