Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

awscdk-construct-live-channel-from-mp4-file

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awscdk-construct-live-channel-from-mp4-file - npm Package Compare versions

Comparing version 0.0.3 to 0.0.5

101

API.md

@@ -238,2 +238,3 @@ # API Reference <a name="API Reference" id="api-reference"></a>

| <code><a href="#awscdk-construct-live-channel-from-mp4-file.MediaLive.property.channel">channel</a></code> | <code>aws-cdk-lib.aws_medialive.CfnChannel</code> | *No description.* |
| <code><a href="#awscdk-construct-live-channel-from-mp4-file.MediaLive.property.input">input</a></code> | <code>aws-cdk-lib.aws_medialive.CfnInput</code> | *No description.* |

@@ -264,3 +265,13 @@ ---

##### `input`<sup>Required</sup> <a name="input" id="awscdk-construct-live-channel-from-mp4-file.MediaLive.property.input"></a>
```typescript
public readonly input: CfnInput;
```
- *Type:* aws-cdk-lib.aws_medialive.CfnInput
---
### MediaPackage <a name="MediaPackage" id="awscdk-construct-live-channel-from-mp4-file.MediaPackage"></a>

@@ -418,3 +429,7 @@

| <code><a href="#awscdk-construct-live-channel-from-mp4-file.LiveChannelFromMp4Props.property.sourceUrl">sourceUrl</a></code> | <code>string</code> | *No description.* |
| <code><a href="#awscdk-construct-live-channel-from-mp4-file.LiveChannelFromMp4Props.property.channelClass">channelClass</a></code> | <code>string</code> | *No description.* |
| <code><a href="#awscdk-construct-live-channel-from-mp4-file.LiveChannelFromMp4Props.property.gopLengthInSeconds">gopLengthInSeconds</a></code> | <code>number</code> | *No description.* |
| <code><a href="#awscdk-construct-live-channel-from-mp4-file.LiveChannelFromMp4Props.property.hlsAdMarkers">hlsAdMarkers</a></code> | <code>string</code> | *No description.* |
| <code><a href="#awscdk-construct-live-channel-from-mp4-file.LiveChannelFromMp4Props.property.manifestWindowSeconds">manifestWindowSeconds</a></code> | <code>number</code> | *No description.* |
| <code><a href="#awscdk-construct-live-channel-from-mp4-file.LiveChannelFromMp4Props.property.segmentDurationSeconds">segmentDurationSeconds</a></code> | <code>number</code> | *No description.* |
| <code><a href="#awscdk-construct-live-channel-from-mp4-file.LiveChannelFromMp4Props.property.timecodeBurninPrefix">timecodeBurninPrefix</a></code> | <code>string</code> | *No description.* |

@@ -434,2 +449,22 @@

##### `channelClass`<sup>Optional</sup> <a name="channelClass" id="awscdk-construct-live-channel-from-mp4-file.LiveChannelFromMp4Props.property.channelClass"></a>
```typescript
public readonly channelClass: string;
```
- *Type:* string
---
##### `gopLengthInSeconds`<sup>Optional</sup> <a name="gopLengthInSeconds" id="awscdk-construct-live-channel-from-mp4-file.LiveChannelFromMp4Props.property.gopLengthInSeconds"></a>
```typescript
public readonly gopLengthInSeconds: number;
```
- *Type:* number
---
##### `hlsAdMarkers`<sup>Optional</sup> <a name="hlsAdMarkers" id="awscdk-construct-live-channel-from-mp4-file.LiveChannelFromMp4Props.property.hlsAdMarkers"></a>

@@ -445,2 +480,22 @@

##### `manifestWindowSeconds`<sup>Optional</sup> <a name="manifestWindowSeconds" id="awscdk-construct-live-channel-from-mp4-file.LiveChannelFromMp4Props.property.manifestWindowSeconds"></a>
```typescript
public readonly manifestWindowSeconds: number;
```
- *Type:* number
---
##### `segmentDurationSeconds`<sup>Optional</sup> <a name="segmentDurationSeconds" id="awscdk-construct-live-channel-from-mp4-file.LiveChannelFromMp4Props.property.segmentDurationSeconds"></a>
```typescript
public readonly segmentDurationSeconds: number;
```
- *Type:* number
---
##### `timecodeBurninPrefix`<sup>Optional</sup> <a name="timecodeBurninPrefix" id="awscdk-construct-live-channel-from-mp4-file.LiveChannelFromMp4Props.property.timecodeBurninPrefix"></a>

@@ -472,2 +527,4 @@

| <code><a href="#awscdk-construct-live-channel-from-mp4-file.MediaLiveProps.property.sourceUrl">sourceUrl</a></code> | <code>string</code> | *No description.* |
| <code><a href="#awscdk-construct-live-channel-from-mp4-file.MediaLiveProps.property.channelClass">channelClass</a></code> | <code>string</code> | *No description.* |
| <code><a href="#awscdk-construct-live-channel-from-mp4-file.MediaLiveProps.property.gopLengthInSeconds">gopLengthInSeconds</a></code> | <code>number</code> | *No description.* |
| <code><a href="#awscdk-construct-live-channel-from-mp4-file.MediaLiveProps.property.timecodeBurninPrefix">timecodeBurninPrefix</a></code> | <code>string</code> | *No description.* |

@@ -497,2 +554,22 @@

##### `channelClass`<sup>Optional</sup> <a name="channelClass" id="awscdk-construct-live-channel-from-mp4-file.MediaLiveProps.property.channelClass"></a>
```typescript
public readonly channelClass: string;
```
- *Type:* string
---
##### `gopLengthInSeconds`<sup>Optional</sup> <a name="gopLengthInSeconds" id="awscdk-construct-live-channel-from-mp4-file.MediaLiveProps.property.gopLengthInSeconds"></a>
```typescript
public readonly gopLengthInSeconds: number;
```
- *Type:* number
---
##### `timecodeBurninPrefix`<sup>Optional</sup> <a name="timecodeBurninPrefix" id="awscdk-construct-live-channel-from-mp4-file.MediaLiveProps.property.timecodeBurninPrefix"></a>

@@ -584,6 +661,8 @@

| <code><a href="#awscdk-construct-live-channel-from-mp4-file.MediaPakcageProps.property.hlsAdMarkers">hlsAdMarkers</a></code> | <code>string</code> | *No description.* |
| <code><a href="#awscdk-construct-live-channel-from-mp4-file.MediaPakcageProps.property.manifestWindowSeconds">manifestWindowSeconds</a></code> | <code>number</code> | *No description.* |
| <code><a href="#awscdk-construct-live-channel-from-mp4-file.MediaPakcageProps.property.segmentDurationSeconds">segmentDurationSeconds</a></code> | <code>number</code> | *No description.* |
---
##### `hlsAdMarkers`<sup>Required</sup> <a name="hlsAdMarkers" id="awscdk-construct-live-channel-from-mp4-file.MediaPakcageProps.property.hlsAdMarkers"></a>
##### `hlsAdMarkers`<sup>Optional</sup> <a name="hlsAdMarkers" id="awscdk-construct-live-channel-from-mp4-file.MediaPakcageProps.property.hlsAdMarkers"></a>

@@ -598,3 +677,23 @@ ```typescript

##### `manifestWindowSeconds`<sup>Optional</sup> <a name="manifestWindowSeconds" id="awscdk-construct-live-channel-from-mp4-file.MediaPakcageProps.property.manifestWindowSeconds"></a>
```typescript
public readonly manifestWindowSeconds: number;
```
- *Type:* number
---
##### `segmentDurationSeconds`<sup>Optional</sup> <a name="segmentDurationSeconds" id="awscdk-construct-live-channel-from-mp4-file.MediaPakcageProps.property.segmentDurationSeconds"></a>
```typescript
public readonly segmentDurationSeconds: number;
```
- *Type:* number
---

@@ -6,3 +6,7 @@ import { Construct } from 'constructs';

readonly sourceUrl: string;
readonly channelClass?: string;
readonly gopLengthInSeconds?: number;
readonly timecodeBurninPrefix?: string;
readonly segmentDurationSeconds?: number;
readonly manifestWindowSeconds?: number;
readonly hlsAdMarkers?: string;

@@ -13,3 +17,3 @@ }

readonly emp: MediaPackage;
constructor(scope: Construct, id: string, { sourceUrl, timecodeBurninPrefix, hlsAdMarkers, }: LiveChannelFromMp4Props);
constructor(scope: Construct, id: string, { sourceUrl, channelClass, gopLengthInSeconds, timecodeBurninPrefix, segmentDurationSeconds, manifestWindowSeconds, hlsAdMarkers, }: LiveChannelFromMp4Props);
}

12

lib/LiveChannelFromMp4.js

@@ -10,6 +10,8 @@ "use strict";

class LiveChannelFromMp4 extends constructs_1.Construct {
constructor(scope, id, { sourceUrl, timecodeBurninPrefix, hlsAdMarkers, }) {
constructor(scope, id, { sourceUrl, channelClass, gopLengthInSeconds, timecodeBurninPrefix, segmentDurationSeconds, manifestWindowSeconds, hlsAdMarkers, }) {
super(scope, id);
this.emp = new MediaPackage_1.MediaPackage(this, 'MediaPackage', {
hlsAdMarkers: hlsAdMarkers ?? 'DATERANGE',
segmentDurationSeconds,
manifestWindowSeconds,
hlsAdMarkers: hlsAdMarkers,
});

@@ -19,2 +21,4 @@ this.eml = new MediaLive_1.MediaLive(this, 'MediaLive', {

mediaPackageChannelId: this.emp.channel.id,
channelClass,
gopLengthInSeconds,
timecodeBurninPrefix,

@@ -26,3 +30,3 @@ });

_a = JSII_RTTI_SYMBOL_1;
LiveChannelFromMp4[_a] = { fqn: "awscdk-construct-live-channel-from-mp4-file.LiveChannelFromMp4", version: "0.0.3" };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTGl2ZUNoYW5uZWxGcm9tTXA0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL0xpdmVDaGFubmVsRnJvbU1wNC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDJDQUF1QztBQUN2QywyQ0FBd0M7QUFDeEMsaURBQThDO0FBUTlDLE1BQWEsa0JBQW1CLFNBQVEsc0JBQVM7SUFJL0MsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxFQUN4QyxTQUFTLEVBQ1Qsb0JBQW9CLEVBQ3BCLFlBQVksR0FDWTtRQUV4QixLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWpCLElBQUksQ0FBQyxHQUFHLEdBQUcsSUFBSSwyQkFBWSxDQUFDLElBQUksRUFBRSxjQUFjLEVBQUU7WUFDaEQsWUFBWSxFQUFFLFlBQVksSUFBSSxXQUFXO1NBQzFDLENBQUMsQ0FBQztRQUVILElBQUksQ0FBQyxHQUFHLEdBQUcsSUFBSSxxQkFBUyxDQUFDLElBQUksRUFBRSxXQUFXLEVBQUU7WUFDMUMsU0FBUztZQUNULHFCQUFxQixFQUFFLElBQUksQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLEVBQUU7WUFDMUMsb0JBQW9CO1NBQ3JCLENBQUMsQ0FBQztJQUNMLENBQUM7O0FBckJILGdEQXNCQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbnN0cnVjdCB9IGZyb20gJ2NvbnN0cnVjdHMnO1xuaW1wb3J0IHsgTWVkaWFMaXZlIH0gZnJvbSAnLi9NZWRpYUxpdmUnO1xuaW1wb3J0IHsgTWVkaWFQYWNrYWdlIH0gZnJvbSAnLi9NZWRpYVBhY2thZ2Un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9IG5ldyBNZWRpYUxpdmUodGhpcywgJ01lZGlhTGl2ZScsIHtcbiAgICAgIHNvdXJjZVVybCxcbiAgICAgIG1lZGlhUGFja2FnZUNoYW5uZWxJZDogdGhpcy5lbXAuY2hhbm5lbC5pZCxcbiAgICAgIHRpbWVjb2RlQnVybmluUHJlZml4LFxuICAgIH0pO1xuICB9XG59XG4iXX0=
LiveChannelFromMp4[_a] = { fqn: "awscdk-construct-live-channel-from-mp4-file.LiveChannelFromMp4", version: "0.0.5" };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTGl2ZUNoYW5uZWxGcm9tTXA0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL0xpdmVDaGFubmVsRnJvbU1wNC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDJDQUF1QztBQUN2QywyQ0FBd0M7QUFDeEMsaURBQThDO0FBWTlDLE1BQWEsa0JBQW1CLFNBQVEsc0JBQVM7SUFJL0MsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxFQUN4QyxTQUFTLEVBQ1QsWUFBWSxFQUNaLGtCQUFrQixFQUNsQixvQkFBb0IsRUFDcEIsc0JBQXNCLEVBQ3RCLHFCQUFxQixFQUNyQixZQUFZLEdBQ1k7UUFFeEIsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixJQUFJLENBQUMsR0FBRyxHQUFHLElBQUksMkJBQVksQ0FBQyxJQUFJLEVBQUUsY0FBYyxFQUFFO1lBQ2hELHNCQUFzQjtZQUN0QixxQkFBcUI7WUFDckIsWUFBWSxFQUFFLFlBQVk7U0FDM0IsQ0FBQyxDQUFDO1FBRUgsSUFBSSxDQUFDLEdBQUcsR0FBRyxJQUFJLHFCQUFTLENBQUMsSUFBSSxFQUFFLFdBQVcsRUFBRTtZQUMxQyxTQUFTO1lBQ1QscUJBQXFCLEVBQ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mVtbCA9IG5ldyBNZWRpYUxpdmUodGhpcywgJ01lZGlhTGl2ZScsIHtcbiAgICAgIHNvdXJjZVVybCxcbiAgICAgIG1lZGlhUGFja2FnZUNoYW5uZWxJZDogdGhpcy5lbXAuY2hhbm5lbC5pZCxcbiAgICAgIGNoYW5uZWxDbGFzcyxcbiAgICAgIGdvcExlbmd0aEluU2Vjb25kcyxcbiAgICAgIHRpbWVjb2RlQnVybmluUHJlZml4LFxuICAgIH0pO1xuICB9XG59XG4iXX0=

@@ -1,2 +0,2 @@

import { CfnChannel } from 'aws-cdk-lib/aws-medialive';
import { CfnInput, CfnChannel } from 'aws-cdk-lib/aws-medialive';
import { Construct } from 'constructs';

@@ -6,7 +6,10 @@ export interface MediaLiveProps {

readonly mediaPackageChannelId: string;
readonly channelClass?: string;
readonly gopLengthInSeconds?: number;
readonly timecodeBurninPrefix?: string;
}
export declare class MediaLive extends Construct {
readonly input: CfnInput;
readonly channel: CfnChannel;
constructor(scope: Construct, id: string, { sourceUrl, mediaPackageChannelId, timecodeBurninPrefix, }: MediaLiveProps);
constructor(scope: Construct, id: string, { sourceUrl, mediaPackageChannelId, channelClass, gopLengthInSeconds, timecodeBurninPrefix, }: MediaLiveProps);
}

@@ -10,21 +10,41 @@ "use strict";

class MediaLive extends constructs_1.Construct {
constructor(scope, id, { sourceUrl, mediaPackageChannelId, timecodeBurninPrefix, }) {
constructor(scope, id, { sourceUrl, mediaPackageChannelId, channelClass = 'SINGLE_PIPELINE', gopLengthInSeconds = 3, timecodeBurninPrefix, }) {
super(scope, id);
// Create MediaLive input
const input = new aws_medialive_1.CfnInput(this, 'MyCfnInput', {
// Create MediaLive MP4 input
const sources = Array.from({ length: channelClass === 'STANDARD' ? 2 : 1 }, () => ({ url: sourceUrl }));
this.input = new aws_medialive_1.CfnInput(this, 'MediaLive-CfnInput', {
name: aws_cdk_lib_1.Aws.STACK_NAME + '_EML-Input',
type: 'MP4_FILE',
sources: [
{
url: sourceUrl,
},
sources,
});
// Create IAM Policy for MediaLive to access MediaPackage and S3
const customPolicyMediaLive = new aws_cdk_lib_1.aws_iam.PolicyDocument({
statements: [
new aws_cdk_lib_1.aws_iam.PolicyStatement({
resources: [
'*',
],
actions: [
's3:ListBucket',
's3:GetObject',
'mediapackage:DescribeChannel',
],
}),
],
});
//Create a Role for MediaLive to access MediaPackage and S3
const role = new aws_cdk_lib_1.aws_iam.Role(this, 'MediaLiveAccessRole', {
inlinePolicies: {
policy: customPolicyMediaLive,
},
assumedBy: new aws_cdk_lib_1.aws_iam.ServicePrincipal('medialive.amazonaws.com'),
});
// Create MediaLive channel
this.channel = new aws_medialive_1.CfnChannel(this, 'MyCfnChannel', {
this.channel = new aws_medialive_1.CfnChannel(this, 'MediaLive-CfnChannel', {
name: aws_cdk_lib_1.Aws.STACK_NAME + '_EML-Channel',
channelClass: 'SINGLE_PIPELINE',
channelClass,
roleArn: role.roleArn,
inputAttachments: [
{
inputId: input.ref,
inputId: this.input.ref,
inputSettings: {

@@ -56,2 +76,25 @@ sourceEndBehavior: 'LOOP',

},
outputs: [
{
outputName: '_640x360',
outputSettings: {
mediaPackageOutputSettings: {},
},
videoDescriptionName: '_640x360',
},
{
outputName: '_960x540',
outputSettings: {
mediaPackageOutputSettings: {},
},
videoDescriptionName: '_960x540',
},
{
outputName: '_1280x720',
outputSettings: {
mediaPackageOutputSettings: {},
},
videoDescriptionName: '_1280x720',
},
],
},

@@ -61,3 +104,53 @@ ],

{
name: 'MyVideoDescription',
name: '_640x360',
width: 640,
height: 360,
codecSettings: {
h264Settings: {
framerateControl: 'SPECIFIED',
framerateNumerator: 30000,
framerateDenominator: 1001,
parControl: 'SPECIFIED',
parNumerator: 1,
parDenominator: 1,
rateControlMode: 'QVBR',
maxBitrate: 1000000,
gopSize: gopLengthInSeconds,
gopSizeUnits: 'SECONDS',
scanType: 'PROGRESSIVE',
timecodeBurninSettings: timecodeBurninPrefix ? {
position: 'TOP_CENTER',
prefix: `${timecodeBurninPrefix}_640x360`,
fontSize: 'SMALL_16',
} : undefined,
},
},
},
{
name: '_960x540',
width: 960,
height: 540,
codecSettings: {
h264Settings: {
framerateControl: 'SPECIFIED',
framerateNumerator: 30000,
framerateDenominator: 1001,
parControl: 'SPECIFIED',
parNumerator: 1,
parDenominator: 1,
rateControlMode: 'QVBR',
maxBitrate: 2000000,
gopSize: gopLengthInSeconds,
gopSizeUnits: 'SECONDS',
scanType: 'PROGRESSIVE',
timecodeBurninSettings: timecodeBurninPrefix ? {
position: 'TOP_CENTER',
prefix: `${timecodeBurninPrefix}_960x540`,
fontSize: 'MEDIUM_32',
} : undefined,
},
},
},
{
name: '_1280x720',
width: 1280,

@@ -67,14 +160,18 @@ height: 720,

h264Settings: {
framerateControl: 'SPECIFIED',
framerateNumerator: 30000,
framerateDenominator: 1001,
framerateControl: 'QVBR',
parControl: 'SPECIFIED',
parNumerator: 1,
parDenominator: 1,
rateControlMode: 'QVBR',
maxBitrate: 3000000,
gopSize: 3,
gopSize: gopLengthInSeconds,
gopSizeUnits: 'SECONDS',
scanType: 'PROGRESSIVE',
timecodeBurninSettings: {
timecodeBurninSettings: timecodeBurninPrefix ? {
position: 'TOP_CENTER',
prefix: timecodeBurninPrefix,
prefix: `${timecodeBurninPrefix}_1280x720`,
fontSize: 'LARGE_48',
},
} : undefined,
},

@@ -96,3 +193,3 @@ },

_a = JSII_RTTI_SYMBOL_1;
MediaLive[_a] = { fqn: "awscdk-construct-live-channel-from-mp4-file.MediaLive", version: "0.0.3" };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWVkaWFMaXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL01lZGlhTGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDZDQUVxQjtBQUVyQiw2REFHbUM7QUFFbkMsMkNBQXVDO0FBUXZDLE1BQWEsU0FBVSxTQUFRLHNCQUFTO0lBR3RDLFl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4gICAgICBjaGFubmVsQ2xhc3M6ICdTSU5HTEVfUElQRUxJTkUnLFxuICAgICAgaW5wdXRBdHRhY2htZW50czogW1xuICAgICAgICB7XG4gICAgICAgICAgaW5wdXRJZDogaW5wdXQucmVmLFxuICAgICAgICAgIGlucHV0U2V0dGluZ3M6IHtcbiAgICAgICAgICAgIHNvdXJjZUVuZEJlaGF2aW9yOiAnTE9PUCcsXG4gICAgICAgICAgfSxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgICBkZXN0aW5hdGlvbnM6IFtcbiAgICAgICAge1xuICAgICAgICAgIGlkOiAnTXlNZWRpYVBhY2thZ2VEZXN0aW5hdGlvbicsXG4gICAgICAgICAgbWVkaWFQYWNrYWdlU2V0dGluZ3M6IFtcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgY2hhbm5lbElkOiBtZWRpYVBhY2thZ2VDaGFubmVsSWQsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIF0sXG4gICAgICAgIH0sXG4gICAgICBdLFxuICAgICAgZW5jb2RlclNldHRpbmdzOiB7XG4gICAgICAgIG91dHB1dEdyb3VwczogW1xuICAgICAgICAgIHtcbiAgICAgICAgICAgIG5hbWU6ICdNeU91dHB1dEdyb3VwJyxcbiAgICAgICAgICAgIG91dHB1dEdyb3VwU2V0dGluZ3M6IHtcbiAgICAgICAgICAgICAgbWVkaWFQYWNrYWdlR3JvdXBTZXR0aW5nczoge1xuICAgICAgICAgICAgICAgIGRlc3RpbmF0aW9uOiB7XG4gICAgICAgICAgICAgICAgICBkZXN0aW5hdGlvblJlZklkOiAnTXlNZWRpYVBhY2thZ2VEZXN0aW5hdGlvbicsXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSxcbiAgICAgICAgXSxcbiAgICAgICAgdmlkZW9EZXNjcmlwdGlvbnM6IFtcbiAgICAgICAgICB7XG4gICAgICAgICAgICBuYW1lOiAnTXlWaWRlb0Rlc2NyaXB0aW9uJyxcbiAgICAgICAgICAgIHdpZHRoOiAxMjgwLFxuICAgICAgICAgICAgaGVpZ2h0OiA3MjAsXG4gICAgICAgICAgICBjb2RlY1NldHRpbmdzOiB7XG4gICAgICAgICAgICAgIGgyNjRTZXR0aW5nczoge1xuICAgICAgICAgICAgICAgIGZyYW1lcmF0ZU51bWVyYXRvcjogMzAwMDAsXG4gICAgICAgICAgICAgICAgZnJhbWVyYXRlRGVub21pbmF0b3I6IDEwMDEsXG4gICAgICAgICAgICAgICAgZnJhbWVyYXRlQ29udHJvbDogJ1FWQlInLFxuICAgICAgICAgICAgICAgIG1heEJpdHJhdGU6IDMwMDAwMDAsXG4gICAgICAgICAgICAgICAgZ29wU2l6ZTogMyxcbiAgICAgICAgICAgICAgICBnb3BTaXplVW5pdHM6ICdTRUNPTkRTJyxcbiAgICAgICAgICAgICAgICBzY2FuVHlwZTogJ1BST0dSRVNTSVZFJyxcbiAgICAgICAgICAgICAgICB0aW1lY29kZUJ1cm5pblNldHRpbmdzOiB7XG4gICAgICAgICAgICAgICAgICBwb3NpdGlvbjogJ1RPUF9DRU5URVInLFxuICAgICAgICAgICAgICAgICAgcHJlZml4OiB0aW1lY29kZUJ1cm5pblByZWZpeCxcbiAgICAgICAgICAgICAgICAgIGZvbnRTaXplOiAnTEFSR0VfNDgnLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0sXG4gICAgICAgIF0sXG4gICAgICAgIHRpbWVjb2RlQ29uZmlnOiB7XG4gICAgICAgICAgc291cmNlOiAnU1lTVEVNQ0xPQ0snLFxuICAgICAgICB9LFxuICAgICAgICBhdmFpbEJsYW5raW5nOiB7XG4gICAgICAgICAgc3RhdGU6ICdFTkFCTEVEJyxcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgfSk7XG4gIH1cbn0iXX0=
MediaLive[_a] = { fqn: "awscdk-construct-live-channel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G4gICAgICAgICAgaWQ6ICdNeU1lZGlhUGFja2FnZURlc3RpbmF0aW9uJyxcbiAgICAgICAgICBtZWRpYVBhY2thZ2VTZXR0aW5nczogW1xuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBjaGFubmVsSWQ6IG1lZGlhUGFja2FnZUNoYW5uZWxJZCxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgXSxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgICBlbmNvZGVyU2V0dGluZ3M6IHtcbiAgICAgICAgb3V0cHV0R3JvdXBzOiBbXG4gICAgICAgICAge1xuICAgICAgICAgICAgbmFtZTogJ015T3V0cHV0R3JvdXAnLFxuICAgICAgICAgICAgb3V0cHV0R3JvdXBTZXR0aW5nczoge1xuICAgICAgICAgICAgICBtZWRpYVBhY2thZ2VHcm91cFNldHRpbmdzOiB7XG4gICAgICAgICAgICAgICAgZGVzdGluYXRpb246IHtcbiAgICAgICAgICAgICAgICAgIGRlc3RpbmF0aW9uUmVmSWQ6ICdNeU1lZGlhUGFja2FnZURlc3RpbmF0aW9uJyxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG91dHB1dHM6IFtcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIG91dHB1dE5hbWU6ICdfNjQweDM2MCcsXG4gICAgICAgICAgICAgICAgb3V0cHV0U2V0dGluZ3M6IHtcbiAgICAgICAgICAgICAgICAgIG1lZGlhUGFja2FnZU91dHB1dFNldHRpbmdzOiB7fSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHZpZGVvRGVzY3JpcHRpb25OYW1lOiAnXzY0MHgzNjAnLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgb3V0cHV0TmFtZTogJ185NjB4NTQwJyxcbiAgICAgICAgICAgICAgICBvdXRwdXRTZXR0aW5nczoge1xuICAgICAgICAgICAgICAgICAgbWVkaWFQYWNrYWdlT3V0cHV0U2V0dGluZ3M6IHt9LFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgdmlkZW9EZXNjcmlwdGlvbk5hbWU6ICdfOTYweDU0MCcsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBvdXRwdXROYW1lOiAnXzEyODB4NzIwJyxcbiAgICAgICAgICAgICAgICBvdXRwdXRTZXR0aW5nczoge1xuICAgICAgICAgICAgICAgICAgbWVkaWFQYWNrYWdlT3V0cHV0U2V0dGluZ3M6IHt9LFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgdmlkZW9EZXNjcmlwdGlvbk5hbWU6ICdfMTI4MHg3MjAnLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgXSxcbiAgICAgICAgICB9LFxuICAgICAgICBdLFxuICAgICAgICB2aWRlb0Rlc2NyaXB0aW9uczogW1xuICAgICAgICAgIHtcbiAgICAgICAgICAgIG5hbWU6ICdfNjQweDM2MCcsXG4gICAgICAgICAgICB3aWR0aDogNjQwLFxuICAgICAgICAgICAgaGVpZ2h0OiAzNjAsXG4gICAgICAgICAgICBjb2RlY1NldHRpbmdzOiB7XG4gICAgICAgICAgICAgIGgyNjRTZXR0aW5nczoge1xuICAgICAgICAgICAgICAgIGZyYW1lcmF0ZUNvbnRyb2w6ICdTUEVDSUZJRUQnLFxuICAgICAgICAgICAgICAgIGZyYW1lcmF0ZU51bWVyYXRvcjogMzAwMDAsXG4gICAgICAgICAgICAgICAgZnJhbWVyYXRlRGVub21pbmF0b3I6IDEwMDEsXG4gICAgICAgICAgICAgICAgcGFyQ29udHJvbDogJ1NQRUNJRklFRCcsXG4gICAgICAgICAgICAgICAgcGFyTnVtZXJhdG9yOiAxLFxuICAgICAgICAgICAgICAgIHBhckRlbm9taW5hdG9yOiAxLFxuICAgICAgICAgICAgICAgIHJhdGVDb250cm9sTW9kZTogJ1FWQlInLFxuICAgICAgICAgICAgICAgIG1heEJpdHJhdGU6IDEwMDAwMDAsXG4gICAgICAgICAgICAgICAgZ29wU2l6ZTogZ29wTGVuZ3RoSW5TZWNvbmRzLFxuICAgICAgICAgICAgICAgIGdvcFNpemVVbml0czogJ1NFQ09ORFMnLFxuICAgICAgICAgICAgICAgIHNjYW5UeXBlOiAnUFJPR1JFU1NJVkUnLFxuICAgICAgICAgICAgICAgIHRpbWVjb2RlQnVybmluU2V0dGluZ3M6IHRpbWVjb2RlQnVybmluUHJlZml4ID8ge1xuICAgICAgICAgICAgICAgICAgcG9zaXRpb246ICdUT1BfQ0VOVEVSJyxcbiAgICAgICAgICAgICAgICAgIHByZWZpeDogYCR7dGltZWNvZGVCdXJuaW5QcmVmaXh9XzY0MHgzNjBgLFxuICAgICAgICAgICAgICAgICAgZm9udFNpemU6ICdTTUFMTF8xNicsXG4gICAgICAgICAgICAgICAgfSA6IHVuZGVmaW5lZCxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSxcbiAgICAgICAgICB7XG4gICAgICAgICAgICBuYW1lOiAnXzk2MHg1NDAnLFxuICAgICAgICAgICAgd2lkdGg6IDk2MCxcbiAgICAgICAgICAgIGhlaWdodDogNTQwLFxuICAgICAgICAgICAgY29kZWNTZXR0aW5nczoge1xuICAgICAgICAgICAgICBoMjY0U2V0dGluZ3M6IHtcbiAgICAgICAgICAgICAgICBmcmFtZXJhdGVDb250cm9sOiAnU1BFQ0lGSUVEJyxcbiAgICAgICAgICAgICAgICBmcmFtZXJhdGVOdW1lcmF0b3I6IDMwMDAwLFxuICAgICAgICAgICAgICAgIGZyYW1lcmF0ZURlbm9taW5hdG9yOiAxMDAxLFxuICAgICAgICAgICAgICAgIHBhckNvbnRyb2w6ICdTUEVDSUZJRUQnLFxuICAgICAgICAgICAgICAgIHBhck51bWVyYXRvcjogMSxcbiAgICAgICAgICAgICAgICBwYXJEZW5vbWluYXRvcjogMSxcbiAgICAgICAgICAgICAgICByYXRlQ29udHJvbE1vZGU6ICdRVkJSJyxcbiAgICAgICAgICAgICAgICBtYXhCaXRyYXRlOiAyMDAwMDAwLFxuICAgICAgICAgICAgICAgIGdvcFNpemU6IGdvcExlbmd0aEluU2Vjb25kcyxcbiAgICAgICAgICAgICAgICBnb3BTaXplVW5pdHM6ICdTRUNPTkRTJyxcbiAgICAgICAgICAgICAgICBzY2FuVHlwZTogJ1BST0dSRVNTSVZFJyxcbiAgICAgICAgICAgICAgICB0aW1lY29kZUJ1cm5pblNldHRpbmdzOiB0aW1lY29kZUJ1cm5pblByZWZpeCA/IHtcbiAgICAgICAgICAgICAgICAgIHBvc2l0aW9uOiAnVE9QX0NFTlRFUicsXG4gICAgICAgICAgICAgICAgICBwcmVmaXg6IGAke3RpbWVjb2RlQnVybmluUHJlZml4fV85NjB4NTQwYCxcbiAgICAgICAgICAgICAgICAgIGZvbnRTaXplOiAnTUVESVVNXzMyJyxcbiAgICAgICAgICAgICAgICB9IDogdW5kZWZpbmVkLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICB9LFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIG5hbWU6ICdfMTI4MHg3MjAnLFxuICAgICAgICAgICAgd2lkdGg6IDEyODAsXG4gICAgICAgICAgICBoZWlnaHQ6IDcyMCxcbiAgICAgICAgICAgIGNvZGVjU2V0dGluZ3M6IHtcbiAgICAgICAgICAgICAgaDI2NFNldHRpbmdzOiB7XG4gICAgICAgICAgICAgICAgZnJhbWVyYXRlQ29udHJvbDogJ1NQRUNJRklFRCcsXG4gICAgICAgICAgICAgICAgZnJhbWVyYXRlTnVtZXJhdG9yOiAzMDAwMCxcbiAgICAgICAgICAgICAgICBmcmFtZXJhdGVEZW5vbWluYXRvcjogMTAwMSxcbiAgICAgICAgICAgICAgICBwYXJDb250cm9sOiAnU1BFQ0lGSUVEJyxcbiAgICAgICAgICAgICAgICBwYXJOdW1lcmF0b3I6IDEsXG4gICAgICAgICAgICAgICAgcGFyRGVub21pbmF0b3I6IDEsXG4gICAgICAgICAgICAgICAgcmF0ZUNvbnRyb2xNb2RlOiAnUVZCUicsXG4gICAgICAgICAgICAgICAgbWF4Qml0cmF0ZTogMzAwMDAwMCxcbiAgICAgICAgICAgICAgICBnb3BTaXplOiBnb3BMZW5ndGhJblNlY29uZHMsXG4gICAgICAgICAgICAgICAgZ29wU2l6ZVVuaXRzOiAnU0VDT05EUycsXG4gICAgICAgICAgICAgICAgc2NhblR5cGU6ICdQUk9HUkVTU0lWRScsXG4gICAgICAgICAgICAgICAgdGltZWNvZGVCdXJuaW5TZXR0aW5nczogdGltZWNvZGVCdXJuaW5QcmVmaXggPyB7XG4gICAgICAgICAgICAgICAgICBwb3NpdGlvbjogJ1RPUF9DRU5URVInLFxuICAgICAgICAgICAgICAgICAgcHJlZml4OiBgJHt0aW1lY29kZUJ1cm5pblByZWZpeH1fMTI4MHg3MjBgLFxuICAgICAgICAgICAgICAgICAgZm9udFNpemU6ICdMQVJHRV80OCcsXG4gICAgICAgICAgICAgICAgfSA6IHVuZGVmaW5lZCxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSxcbiAgICAgICAgXSxcbiAgICAgICAgdGltZWNvZGVDb25maWc6IHtcbiAgICAgICAgICBzb3VyY2U6ICdTWVNURU1DTE9DSycsXG4gICAgICAgIH0sXG4gICAgICAgIGF2YWlsQmxhbmtpbmc6IHtcbiAgICAgICAgICBzdGF0ZTogJ0VOQUJMRUQnLFxuICAgICAgICB9LFxuICAgICAgfSxcbiAgICB9KTtcbiAgfVxufSJdfQ==
import { CfnChannel, CfnOriginEndpoint } from 'aws-cdk-lib/aws-mediapackage';
import { Construct } from 'constructs';
export interface MediaPakcageProps {
readonly hlsAdMarkers: string;
readonly segmentDurationSeconds?: number;
readonly manifestWindowSeconds?: number;
readonly hlsAdMarkers?: string;
}

@@ -15,3 +17,3 @@ export interface MediaPackageEndpointsTable {

readonly endpoints: MediaPackageEndpointsTable;
constructor(scope: Construct, id: string, { hlsAdMarkers, }: MediaPakcageProps);
constructor(scope: Construct, id: string, { segmentDurationSeconds, manifestWindowSeconds, hlsAdMarkers, }: MediaPakcageProps);
}

@@ -10,6 +10,6 @@ "use strict";

class MediaPackage extends constructs_1.Construct {
constructor(scope, id, { hlsAdMarkers, }) {
constructor(scope, id, { segmentDurationSeconds = 6, manifestWindowSeconds = 60, hlsAdMarkers = 'DATERANGE', }) {
super(scope, id);
// Create MediaPackage channel
this.channel = new aws_mediapackage_1.CfnChannel(this, 'MyCfnChannel', {
this.channel = new aws_mediapackage_1.CfnChannel(this, 'MediaPackage-CfnChannel', {
id: aws_cdk_lib_1.Aws.STACK_NAME + '_EMP-Channel',

@@ -20,3 +20,3 @@ description: 'MediaPackage channel for testing',

this.endpoints = {
hls: new aws_mediapackage_1.CfnOriginEndpoint(this, 'MyHLSEndpoint', {
hls: new aws_mediapackage_1.CfnOriginEndpoint(this, 'MMediaPackage-HLSEndpoint', {
channelId: this.channel.id,

@@ -26,4 +26,4 @@ id: aws_cdk_lib_1.Aws.STACK_NAME + '_EMP-HLSEndpoint',

hlsPackage: {
segmentDurationSeconds: 6,
playlistWindowSeconds: 60,
segmentDurationSeconds,
playlistWindowSeconds: manifestWindowSeconds,
adMarkers: hlsAdMarkers,

@@ -34,3 +34,3 @@ adTriggers: ['SPLICE_INSERT'],

}),
dash: new aws_mediapackage_1.CfnOriginEndpoint(this, 'MyDASHEndpoint', {
dash: new aws_mediapackage_1.CfnOriginEndpoint(this, 'MMediaPackage-DASHEndpoint', {
channelId: this.channel.id,

@@ -40,4 +40,4 @@ id: aws_cdk_lib_1.Aws.STACK_NAME + '_EMP-DASHEndpoint',

dashPackage: {
segmentDurationSeconds: 6,
manifestWindowSeconds: 60,
segmentDurationSeconds,
manifestWindowSeconds,
periodTriggers: ['ADS'],

@@ -47,3 +47,3 @@ adTriggers: ['SPLICE_INSERT'],

}),
cmaf: new aws_mediapackage_1.CfnOriginEndpoint(this, 'MyCMAFEndpoint', {
cmaf: new aws_mediapackage_1.CfnOriginEndpoint(this, 'MMediaPackage-CMAFEndpoint', {
channelId: this.channel.id,

@@ -53,6 +53,7 @@ id: aws_cdk_lib_1.Aws.STACK_NAME + '_EMP-CMAFEndpoint',

cmafPackage: {
segmentDurationSeconds: 6,
segmentDurationSeconds,
hlsManifests: [
{
id: '1',
playlistWindowSeconds: manifestWindowSeconds,
adMarkers: hlsAdMarkers,

@@ -65,7 +66,10 @@ adTriggers: ['SPLICE_INSERT'],

}),
mss: new aws_mediapackage_1.CfnOriginEndpoint(this, 'MyMSSEndpoint', {
mss: new aws_mediapackage_1.CfnOriginEndpoint(this, 'MMediaPackage-MSSEndpoint', {
channelId: this.channel.id,
id: aws_cdk_lib_1.Aws.STACK_NAME + '_EMP-MSSEndpoint',
description: 'MediaPackage MSS endpoint for testing',
mssPackage: {},
mssPackage: {
segmentDurationSeconds,
manifestWindowSeconds,
},
}),

@@ -77,3 +81,3 @@ };

_a = JSII_RTTI_SYMBOL_1;
MediaPackage[_a] = { fqn: "awscdk-construct-live-channel-from-mp4-file.MediaPackage", version: "0.0.3" };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWVkaWFQYWNrYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL01lZGlhUGFja2FnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDZDQUVxQjtBQUVyQixtRUFHc0M7QUFFdEMsMkNBQXVDO0FBYXZDLE1BQWEsWUFBYSxTQUFRLHNCQUFTO0lBSXpDLFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsRUFDeEMsWUFBWSxHQUNNO1FBRWxCLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsOEJBQThCO1FBQzlCLElBQ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ICAgICAgICB9LFxuICAgICAgfSksXG4gICAgICBtc3M6IG5ldyBDZm5PcmlnaW5FbmRwb2ludCh0aGlzLCAnTU1lZGlhUGFja2FnZS1NU1NFbmRwb2ludCcsIHtcbiAgICAgICAgY2hhbm5lbElkOiB0aGlzLmNoYW5uZWwuaWQsXG4gICAgICAgIGlkOiBBd3MuU1RBQ0tfTkFNRSArICdfRU1QLU1TU0VuZHBvaW50JyxcbiAgICAgICAgZGVzY3JpcHRpb246ICdNZWRpYVBhY2thZ2UgTVNTIGVuZHBvaW50IGZvciB0ZXN0aW5nJyxcbiAgICAgICAgbXNzUGFja2FnZToge1xuICAgICAgICAgIHNlZ21lbnREdXJhdGlvblNlY29uZHMsXG4gICAgICAgICAgbWFuaWZlc3RXaW5kb3dTZWNvbmRzLFxuICAgICAgICB9LFxuICAgICAgfSksXG4gICAgfTtcbiAgfVxufVxuIl19

@@ -74,3 +74,3 @@ {

"license": "MIT",
"version": "0.0.3",
"version": "0.0.5",
"jest": {

@@ -77,0 +77,0 @@ "testMatch": [

@@ -5,7 +5,12 @@ # awscdk-construct-live-channel-from-mp4-file

CDK Construct for setting up a simple live channel for testing
* The input is MP4 file with loop playback
* The input is an MP4 file with loop playback
* The output is a live channel with:
* a single-pipeline MediaLive channel
* a MediaLive channel with 29.97fps, 3x bitrates (720p/540p/360p)
* a MediaPackage v1 channel with HLS/DASH/MSS/CMAF endpoints
* You can overlay timecode with a prefix
* You can add timecode overay with a prefix for visual confirmation
* You can configure:
* Channel class: STANDARD or SINGLE_PIPELINE
* GOP length
* Segment length
* Manifest length

@@ -28,4 +33,8 @@ ## Install

sourceUrl: 'https://example.com/test.mp4',
timecodeBurninPrefix: 'Channel-1',
hlsAdMarkers: 'DATERANGE',
channelClass: 'STANDARD', // optional: default = 'SINGLE_PIPELINE'
gopLengthInSeconds: 2, // optional: default = 3
segmentDurationSeconds: 4, // optional: default = 6
manifestWindowSeconds: 20, // optional: default = 60
timecodeBurninPrefix: 'Channel-1', // optional: default = no timecode overlay
hlsAdMarkers: 'SCTE_ENHANCED', // optional: default = DATERANGE
});

@@ -32,0 +41,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc