init commit
This commit is contained in:
16
remotion/node_modules/@remotion/webcodecs/dist/get-default-audio-codec.js
generated
vendored
Normal file
16
remotion/node_modules/@remotion/webcodecs/dist/get-default-audio-codec.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getDefaultAudioCodec = void 0;
|
||||
const getDefaultAudioCodec = ({ container, }) => {
|
||||
if (container === 'webm') {
|
||||
return 'opus';
|
||||
}
|
||||
if (container === 'mp4') {
|
||||
return 'aac';
|
||||
}
|
||||
if (container === 'wav') {
|
||||
return 'wav';
|
||||
}
|
||||
throw new Error(`Unhandled container: ${container}`);
|
||||
};
|
||||
exports.getDefaultAudioCodec = getDefaultAudioCodec;
|
||||
Reference in New Issue
Block a user