Skip to content

🎥 Make videos programmatically with React

libopus

Jonny Burger05b36e1dae6b
diff --git a/packages/docs/docs/lambda/changelog.md b/packages/docs/docs/lambda/changelog.md
index 8dd9b03d27..4f6ca1f41d 100644
--- a/packages/docs/docs/lambda/changelog.md
+++ b/packages/docs/docs/lambda/changelog.md
@@ -10,6 +10,15 @@ Keep track of changes to the APIs of Remotion Lambda here.
[Upgrading](/docs/lambda/upgrading)
+## February 4th, 2022 (3)
+
+Version hash: `xxx`
+Lambda version: '2022-02-06'
+
+Fixes regressions:
+
+- Fixes not being able to render transparent WebM on Lamba.
+
## February 4th, 2022 (2)
Version hash: `3.0.0-lambda.329+f23080b59`
diff --git a/packages/lambda/remotionlambda.zip b/packages/lambda/remotionlambda.zip
index abdea0b783..e4993129f6 100644
Binary files a/packages/lambda/remotionlambda.zip and b/packages/lambda/remotionlambda.zip differ
diff --git a/packages/lambda/src/shared/constants.ts b/packages/lambda/src/shared/constants.ts
index b6d426e155..cc528d1eab 100644
--- a/packages/lambda/src/shared/constants.ts
+++ b/packages/lambda/src/shared/constants.ts
@@ -285,6 +285,7 @@ export type RenderMetadata = {
};
export type LambdaVersions =
+ | '2022-02-06'
| '2022-02-05'
| '2022-02-04'
| '2022-02-03'
@@ -330,7 +331,7 @@ export type LambdaVersions =
| '2021-06-23'
| 'n/a';
-export const CURRENT_VERSION: LambdaVersions = '2022-01-05';
+export const CURRENT_VERSION: LambdaVersions = '2022-02-06';
export type PostRenderData = {
cost: {
diff --git a/packages/renderer/src/get-audio-codec-name.ts b/packages/renderer/src/get-audio-codec-name.ts
index 8972f6092e..df14487a5c 100644
--- a/packages/renderer/src/get-audio-codec-name.ts
+++ b/packages/renderer/src/get-audio-codec-name.ts
@@ -9,7 +9,7 @@ export const getAudioCodecName = (codec: Codec): string | null => {
}
if (codec === 'vp8' || codec === 'vp9') {
- return 'libvorbis';
+ return 'libopus';
}
return 'aac';
diff --git a/packages/renderer/src/sample-rate.ts b/packages/renderer/src/sample-rate.ts
index 568550d111..dda31502de 100644
--- a/packages/renderer/src/sample-rate.ts
+++ b/packages/renderer/src/sample-rate.ts
@@ -1 +1 @@
-export const DEFAULT_SAMPLE_RATE = 44100;
+export const DEFAULT_SAMPLE_RATE = 48000;
diff --git a/tests/integration/rendering.test.ts b/tests/integration/rendering.test.ts
index e834bbf6b9..815130a893 100644
--- a/tests/integration/rendering.test.ts
+++ b/tests/integration/rendering.test.ts
@@ -187,7 +187,7 @@ test("Should be able to render a WAV audio file", async () => {
expect(data).toContain("pcm_s16le");
expect(data).toContain("2 channels");
expect(data).toContain("Kevin MacLeod");
- expect(data).toContain("bitrate: 1411 kb/s");
+ expect(data).toContain("bitrate: 1536 kb/s");
expect(data).toContain("Stream #0");
expect(data).not.toContain("Stream #1");
fs.unlinkSync(out);
@@ -239,7 +239,7 @@ test("Should be able to render a AAC audio file", async () => {
expect(data).toContain("stereo");
expect(data).toContain("fltp");
expect(data).not.toContain("Kevin MacLeod");
- expect(data).toContain("4 kb/s");
+ expect(data).toContain("5 kb/s");
expect(data).toContain("Stream #0");
expect(data).not.toContain("Stream #1");
fs.unlinkSync(out);
@@ -281,7 +281,7 @@ test("Should render a video with Offline Audio-context", async () => {
const info = await execa("ffprobe", [out]);
const data = info.stderr;
expect(data).toContain("Stream #0:0: Audio: mp3");
- expect(data).toContain("44100 Hz, stereo");
+ expect(data).toContain("48000 Hz, stereo");
fs.unlinkSync(out);
});
@@ -298,8 +298,8 @@ test("Should fail to render an audio file that doesn't have any audio inputs", a
expect(task.exitCode).toBe(0);
const info = await execa("ffprobe", [out]);
const data = info.stderr;
- expect(data).toContain("Duration: 00:00:00.37");
- expect(data).toContain("Audio: mp3, 44100 Hz");
+ expect(data).toContain("Duration: 00:00:00.36");
+ expect(data).toContain("Audio: mp3, 48000 Hz");
fs.unlinkSync(out);
});