|
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
};
nyx-tutorials/api-v2/Script Examples v2/Blends-And-Transitions-v2/Blends-And-Transitions-api-2.js
Lines 73 to 83 in 46eb629
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: