Skip to content

Video export settings and audio export settings are two separate properties. #2

@jacobsologub

Description

@jacobsologub

composition.videoExportSettings = {
video: {
averageBitRate: bitrate * 1000 * 1000 * 8, // convert to bits per second
profileLevel: "H264High41"
},
audio: {
numberOfChannels: 2,
sampleRate: 44100,
bitRate: 64000
}
}

https://jacobsologub.s3.amazonaws.com/hypno/doc/classes/_hypno_.hypno.composition.html#videoexportsettings

Video export settings and audio export settings are two separate properties. So the code should be:

composition.videoExportSettings = {
    averageBitRate: bitrate * 1000 * 1000 * 8, // convert to bits per second
    profileLevel: hypno.H264High41
};

composition.audioExportSettings = {
    numberOfChannels: 2,
    sampleRate: 44100,
    bitRate: 64000
};

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions