🎥 Make videos programmatically with React
`@remotion/media-parser`: Support Big Buck Bunny VP9 video from Wikipedia
Jonny Burgerbdd4a9cf16ef
diff --git a/packages/docs/docs/media-parser/parse-media.mdx b/packages/docs/docs/media-parser/parse-media.mdxindex 657a125e9d..0fe5654861 100644--- a/packages/docs/docs/media-parser/parse-media.mdx+++ b/packages/docs/docs/media-parser/parse-media.mdx@@ -85,7 +85,7 @@ The frame rate of the video.#### `videoCodec`-The video codec of the video. One of `"h264"`, `"h265"`, `"vp8"`, `"av1"`, `"prores"` or `null` (in case of an unknown codec).+The video codec of the video. One of `"h264"`, `"h265"`, `"vp8"`, `"vp9"`, `"av1"`, `"prores"` or `null` (in case of an unknown codec).### `reader`diff --git a/packages/example/src/VideoParser/index.tsx b/packages/example/src/VideoParser/index.tsxindex e4ce3d85eb..cc3735613a 100644--- a/packages/example/src/VideoParser/index.tsx+++ b/packages/example/src/VideoParser/index.tsx@@ -8,10 +8,13 @@ const src = staticFile('blush-2x.mp4');export const VideoParser: React.FC = () => {useEffect(() => {const start = Date.now();- parseMedia(src, {- durationInSeconds: true,- dimensions: true,- }).then(({durationInSeconds, dimensions}) => {+ parseMedia(+ 'https://upload.wikimedia.org/wikipedia/commons/transcoded/c/c0/Big_Buck_Bunny_4K.webm/Big_Buck_Bunny_4K.webm.720p.vp9.webm',+ {+ durationInSeconds: true,+ dimensions: true,+ },+ ).then(({durationInSeconds, dimensions}) => {console.log('@remotion/media-parser',durationInSeconds,diff --git a/packages/media-parser/src/boxes/webm/parse-webm-header.ts b/packages/media-parser/src/boxes/webm/parse-webm-header.tsindex cfc65fc186..1659fe8fc0 100644--- a/packages/media-parser/src/boxes/webm/parse-webm-header.ts+++ b/packages/media-parser/src/boxes/webm/parse-webm-header.ts@@ -5,7 +5,7 @@ import {expectSegment} from './segments';// Parsing according to https://darkcoding.net/software/reading-mediarecorders-webm-opus-output/export const parseWebm = (counter: BufferIterator): ParseResult => {counter.discard(4);- const length = counter.getEBML();+ const length = counter.getVint();if (length !== 31) {throw new Error(`Expected header length 31, got ${length}`);diff --git a/packages/media-parser/src/boxes/webm/segments.ts b/packages/media-parser/src/boxes/webm/segments.tsindex f574ee2d36..1e373b158b 100644--- a/packages/media-parser/src/boxes/webm/segments.ts+++ b/packages/media-parser/src/boxes/webm/segments.ts@@ -22,8 +22,10 @@ import type {DefaultDurationSegment,FlagLacingSegment,HeightSegment,+ InterlacedSegment,LanguageSegment,MaxBlockAdditionId,+ TitleSegment,TrackEntrySegment,TrackNumberSegment,TrackTypeSegment,@@ -38,8 +40,10 @@ import {parseDefaultDurationSegment,parseFlagLacing,parseHeightSegment,+ parseInterlacedSegment,parseLanguageSegment,parseMaxBlockAdditionId,+ parseTitleSegment,parseTrackEntry,parseTrackNumber,parseTrackTypeSegment,@@ -82,7 +86,9 @@ export type MatroskaSegment =| HeightSegment| AlphaModeSegment| MaxBlockAdditionId- | ColorSegment;+ | ColorSegment+ | TitleSegment+ | InterlacedSegment;export const expectSegment = (iterator: BufferIterator): MatroskaSegment => {const segmentId = iterator.getMatroskaSegmentId();@@ -189,10 +195,18 @@ export const expectSegment = (iterator: BufferIterator): MatroskaSegment => {return parseHeightSegment(iterator);}+ if (segmentId === '0x9a') {+ return parseInterlacedSegment(iterator);+ }+if (segmentId === '0x53c0') {return parseAlphaModeSegment(iterator);}+ if (segmentId === '0x7ba9') {+ return parseTitleSegment(iterator);+ }+const length = iterator.getVint();const bytesRemaining = iterator.byteLength() - iterator.counter.getOffset();diff --git a/packages/media-parser/src/boxes/webm/segments/track-entry.ts b/packages/media-parser/src/boxes/webm/segments/track-entry.tsindex 8c8f898e63..25608e71cf 100644--- a/packages/media-parser/src/boxes/webm/segments/track-entry.ts+++ b/packages/media-parser/src/boxes/webm/segments/track-entry.ts@@ -51,10 +51,6 @@ export type TrackUIDSegment = {export const parseTrackUID = (iterator: BufferIterator): TrackUIDSegment => {const length = iterator.getVint();- // Observation: AV1 has 8 bytes, WebM has 7- if (length !== 8 && length !== 7) {- throw new Error('Expected track number to be 8 byte');- }const bytes = iterator.getSlice(length);@@ -187,16 +183,11 @@ export type VideoSegment = {};export const parseVideoSegment = (iterator: BufferIterator): VideoSegment => {- const offset = iterator.counter.getOffset();-const length = iterator.getVint();return {type: 'video-segment',- children: expectChildren(- iterator,- length - (iterator.counter.getOffset() - offset),- ),+ children: expectChildren(iterator, length),};};@@ -293,3 +284,39 @@ export const parseColorSegment = (iterator: BufferIterator): ColorSegment => {type: 'color-segment',};};++export type TitleSegment = {+ type: 'title-segment';+ title: string;+};++export const parseTitleSegment = (iterator: BufferIterator): TitleSegment => {+ const length = iterator.getVint();+ const title = iterator.getByteString(length);++ return {+ type: 'title-segment',+ title,+ };+};++export type InterlacedSegment = {+ type: 'interlaced-segment';+ interlaced: boolean;+};++export const parseInterlacedSegment = (+ iterator: BufferIterator,+): InterlacedSegment => {+ const length = iterator.getVint();+ if (length !== 1) {+ throw new Error('Expected interlaced segment to be 1 byte');+ }++ const interlaced = iterator.getUint8();++ return {+ type: 'interlaced-segment',+ interlaced: Boolean(interlaced),+ };+};diff --git a/packages/media-parser/src/buffer-iterator.ts b/packages/media-parser/src/buffer-iterator.tsindex 8856721637..d2a0acf2ad 100644--- a/packages/media-parser/src/buffer-iterator.ts+++ b/packages/media-parser/src/buffer-iterator.ts@@ -154,6 +154,7 @@ export const getArrayBufferIterator = (initialData: Uint8Array) => {'0xe0','0xb0','0xba',+ '0x9a',];if (knownIdsWithOneLength.includes(firstOneString)) {return firstOneString;@@ -172,6 +173,7 @@ export const getArrayBufferIterator = (initialData: Uint8Array) => {'0x4489','0x55ee','0x55b0',+ '0x7ba9',];const firstTwoString = `${firstOneString}${Array.from(diff --git a/packages/media-parser/src/get-video-codec.ts b/packages/media-parser/src/get-video-codec.tsindex 50c1315499..b2ef73d763 100644--- a/packages/media-parser/src/get-video-codec.ts+++ b/packages/media-parser/src/get-video-codec.ts@@ -82,6 +82,10 @@ export const getVideoCodec = (boxes: AnySegment[]): KnownVideoCodecs | null => {return 'vp8';}+ if (trackType.codec === 'V_VP9') {+ return 'vp9';+ }+if (trackType.codec === 'V_AV1') {return 'av1';}diff --git a/packages/media-parser/src/options.ts b/packages/media-parser/src/options.tsindex 7403d20a3d..4e5a858079 100644--- a/packages/media-parser/src/options.ts+++ b/packages/media-parser/src/options.ts@@ -2,7 +2,13 @@ import type {Dimensions} from './get-dimensions';import type {AnySegment} from './parse-result';import type {ReaderInterface} from './reader';-export type KnownVideoCodecs = 'h264' | 'h265' | 'vp8' | 'av1' | 'prores';+export type KnownVideoCodecs =+ | 'h264'+ | 'h265'+ | 'vp8'+ | 'vp9'+ | 'av1'+ | 'prores';export type Options<EnableDimensions extends boolean,diff --git a/packages/media-parser/src/test/stream-remote.test.ts b/packages/media-parser/src/test/stream-remote.test.tsindex cdea7d0ea2..903ece4db2 100644--- a/packages/media-parser/src/test/stream-remote.test.ts+++ b/packages/media-parser/src/test/stream-remote.test.ts@@ -19,3 +19,24 @@ test('Should stream', async () => {});expect(result.videoCodec).toEqual('h264');});++test('Should stream from Wikipedia', async () => {+ const result = await parseMedia(+ 'https://upload.wikimedia.org/wikipedia/commons/transcoded/c/c0/Big_Buck_Bunny_4K.webm/Big_Buck_Bunny_4K.webm.720p.vp9.webm',+ {+ boxes: true,+ durationInSeconds: true,+ fps: true,+ dimensions: true,+ videoCodec: true,+ },+ );+ expect(result.durationInSeconds).toBe(634.571);+ // TODO: Not yet implemented+ expect(result.fps).toBe(null);+ expect(result.dimensions).toEqual({+ width: 1280,+ height: 720,+ });+ expect(result.videoCodec).toEqual('vp9');+});diff --git a/vercel.json b/vercel.jsonindex df461470b6..9a20d2cc70 100644--- a/vercel.json+++ b/vercel.json@@ -1,331 +1,341 @@{- "headers": [- {- "source": "/img/gt-planar(.*)",- "headers": [- { "key": "Access-Control-Allow-Credentials", "value": "true" },- { "key": "Access-Control-Allow-Origin", "value": "*" },- {- "key": "Access-Control-Allow-Methods",- "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT"- },- {- "key": "Access-Control-Allow-Headers",- "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"- }- ]- }- ],- "redirects": [- {- "source": "/changelog",- "destination": "https://github.com/remotion-dev/remotion/releases",- "permanent": false- },- {- "source": "/discord",- "destination": "https://discord.gg/6VzzNDwUwV",- "permanent": false- },- {- "source": "/booking",- "destination": "https://cal.com/remotion",- "permanent": false- },- {- "source": "/coc",- "destination": "https://github.com/remotion-dev/remotion/blob/main/CODE-OF-CONDUCT.md",- "permanent": false- },- {- "source": "/license",- "destination": "https://github.com/remotion-dev/remotion/blob/main/LICENSE.md",- "permanent": false- },- {- "source": "/timeout",- "destination": "/docs/timeout",- "permanent": false- },- {- "source": "/acknowledgements",- "destination": "/docs/acknowledgements",- "permanent": false- },- {- "source": "/issue",- "destination": "https://github.com/remotion-dev/remotion/issues/new/choose",- "permanent": false- },- {- "source": "/skia",- "destination": "/docs/skia",- "permanent": false- },- {- "source": "/gif",- "destination": "/docs/gif",- "permanent": false- },- {- "source": "/lottie",- "destination": "/docs/lottie",- "permanent": false- },- {- "source": "/paths",- "destination": "/docs/paths",- "permanent": false- },- {- "source": "/shapes",- "destination": "/docs/shapes",- "permanent": false- },- {- "source": "/api",- "destination": "/docs/api",- "permanent": false- },- {- "source": "/terminology",- "destination": "/docs/terminology",- "permanent": false- },- {- "source": "/hacktoberfest",- "destination": "https://github.com/remotion-dev/remotion/issues/1365",- "permanent": false- },- {- "source": "/motion-blur",- "destination": "/docs/motion-blur",- "permanent": false- },- {- "source": "/noise",- "destination": "/docs/noise",- "permanent": false- },- {- "source": "/docs/get-audio-duration",- "destination": "/docs/get-audio-duration-in-seconds",- "permanent": true- },- {- "source": "/docs/get-compositions",- "destination": "/docs/renderer/get-compositions",- "permanent": true- },- {- "source": "/docs/stitch-frames-to-video",- "destination": "/docs/renderer/stitch-frames-to-video",- "permanent": true- },- {- "source": "/docs/render-still",- "destination": "/docs/renderer/render-still",- "permanent": true- },- {- "source": "/docs/render-frames",- "destination": "/docs/renderer/render-frames",- "permanent": true- },- {- "source": "/docs/motion-blur/motion-blur",- "destination": "/docs/motion-blur/trail",- "permanent": true- },- {- "source": "/support",- "destination": "/docs/support",- "permanent": true- },- {- "source": "/docs/player/api",- "destination": "/docs/player/player",- "permanent": true- },- {- "source": "/github",- "destination": "https://github.com/remotion-dev/remotion",- "permanent": false- },- {- "source": "/brand",- "destination": "https://github.com/remotion-dev/logo",- "permanent": false- },- {- "source": "/docs/lottie/after-effects",- "destination": "/docs/after-effects",- "permanent": false- },- {- "source": "/docs/miscellaneous/render-all",- "destination": "docs/render-all",- "permanent": false- },- {- "source": "/docs/overlays",- "destination": "/docs/overlay",- "permanent": false- },- {- "source": "/docs/cli/preview",- "destination": "/docs/cli/studio",- "permanent": false- },- {- "source": "/links",- "destination": "https://linktr.ee/remotion",- "permanent": false- },- {- "source": "/contributing",- "destination": "https://www.remotion.dev/docs/contributing",- "permanent": false- },- {- "source": "/resources",- "destination": "https://www.remotion.dev/docs/resources",- "permanent": false- },- {- "source": "/rive",- "destination": "https://www.remotion.dev/docs/rive",- "permanent": false- },- {- "source": "/zod-types",- "destination": "https://www.remotion.dev/docs/zod-types",- "permanent": false- },- {- "source": "/cloudrun",- "destination": "https://www.remotion.dev/docs/cloudrun",- "permanent": false- },- {- "source": "/layout-utils",- "destination": "https://www.remotion.dev/docs/layout-utils",- "permanent": false- },- {- "source": "/animation-utils",- "destination": "https://www.remotion.dev/docs/animation-utils",- "permanent": false- },- {- "source": "/get-help",- "destination": "https://www.remotion.dev/docs/get-help",- "permanent": false- },- {- "source": "/help",- "destination": "https://www.remotion.dev/docs/get-help",- "permanent": false- },- {- "source": "/native",- "destination": "https://remotion.dev/docs/react-native",- "permanent": false- },- {- "source": "/docs/parametrized-rendering",- "destination": "https://www.remotion.dev/docs/parameterized-rendering",- "permanent": false- },- {- "source": "/business",- "destination": "https://github.com/orgs/remotion-dev/projects/10",- "permanent": false- },- {- "source": "/docs/thorium-browser",- "destination": "/docs/miscellaneous/thorium-browser",- "permanent": false- },- {- "source": "/youtube",- "destination": "https://youtube.com/@remotion_dev",- "permanent": false- },- {- "source": "/bun",- "destination": "/docs/bun",- "permanent": false- },- {- "source": "/bounties",- "destination": "/docs/contributing/bounty",- "permanent": false- },- {- "source": "/transitions",- "destination": "/docs/transitioning",- "permanent": false- },- {- "source": "/repro",- "destination": "https://stackblitz.com/fork/github/remotion-dev/template-helloworld",- "permanent": false- },- {- "source": "/docs/timeline",- "destination": "/docs/studio",- "permanent": false- },- {- "source": "/studio",- "destination": "/docs/studio",- "permanent": false- },- {- "source": "/security",- "destination": "/docs/security",- "permanent": false- },- {- "source": "/standalone",- "destination": "/docs/standalone",- "permanent": false- },- {- "source": "/docs/deploy-studio",- "destination": "/docs/studio/deploy-server",- "permanent": false- },- {- "source": "/blog/faster-lambda-renders",- "destination": "/blog/faster-lambda",- "permanent": false- },- {- "source": "/docs/miscellaneous/thorium-browser",- "destination": "/docs/miscellaneous/chrome-headless-shell",- "permanent": false- },- {- "source": "/chrome-headless-shell",- "destination": "/docs/miscellaneous/chrome-headless-shell",- "permanent": false- },- {- "source": "/docs/chrome-headless-shell",- "destination": "/docs/miscellaneous/chrome-headless-shell",- "permanent": false- },- {- "source": "/recorder",- "destination": "/docs/recorder",- "permanent": false- },- {- "source": "/docs/miscellaneous/snippets/adding-animations",- "destination": "/docs/animation-math",- "permanent": false- }- ]+ "headers": [+ {+ "source": "/img/gt-planar(.*)",+ "headers": [+ {"key": "Access-Control-Allow-Credentials", "value": "true"},+ {"key": "Access-Control-Allow-Origin", "value": "*"},+ {+ "key": "Access-Control-Allow-Methods",+ "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT"+ },+ {+ "key": "Access-Control-Allow-Headers",+ "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"+ }+ ]+ }+ ],+ "redirects": [+ {+ "source": "/changelog",+ "destination": "https://github.com/remotion-dev/remotion/releases",+ "permanent": false+ },+ {+ "source": "/discord",+ "destination": "https://discord.gg/6VzzNDwUwV",+ "permanent": false+ },+ {+ "source": "/booking",+ "destination": "https://cal.com/remotion",+ "permanent": false+ },+ {+ "source": "/coc",+ "destination": "https://github.com/remotion-dev/remotion/blob/main/CODE-OF-CONDUCT.md",+ "permanent": false+ },+ {+ "source": "/license",+ "destination": "https://github.com/remotion-dev/remotion/blob/main/LICENSE.md",+ "permanent": false+ },+ {+ "source": "/timeout",+ "destination": "/docs/timeout",+ "permanent": false+ },+ {+ "source": "/acknowledgements",+ "destination": "/docs/acknowledgements",+ "permanent": false+ },+ {+ "source": "/issue",+ "destination": "https://github.com/remotion-dev/remotion/issues/new/choose",+ "permanent": false+ },+ {+ "source": "/skia",+ "destination": "/docs/skia",+ "permanent": false+ },+ {+ "source": "/gif",+ "destination": "/docs/gif",+ "permanent": false+ },+ {+ "source": "/lottie",+ "destination": "/docs/lottie",+ "permanent": false+ },+ {+ "source": "/paths",+ "destination": "/docs/paths",+ "permanent": false+ },+ {+ "source": "/shapes",+ "destination": "/docs/shapes",+ "permanent": false+ },+ {+ "source": "/api",+ "destination": "/docs/api",+ "permanent": false+ },+ {+ "source": "/terminology",+ "destination": "/docs/terminology",+ "permanent": false+ },+ {+ "source": "/hacktoberfest",+ "destination": "https://github.com/remotion-dev/remotion/issues/1365",+ "permanent": false+ },+ {+ "source": "/motion-blur",+ "destination": "/docs/motion-blur",+ "permanent": false+ },+ {+ "source": "/noise",+ "destination": "/docs/noise",+ "permanent": false+ },+ {+ "source": "/docs/get-audio-duration",+ "destination": "/docs/get-audio-duration-in-seconds",+ "permanent": true+ },+ {+ "source": "/docs/get-compositions",+ "destination": "/docs/renderer/get-compositions",+ "permanent": true+ },+ {+ "source": "/docs/stitch-frames-to-video",+ "destination": "/docs/renderer/stitch-frames-to-video",+ "permanent": true+ },+ {+ "source": "/docs/render-still",+ "destination": "/docs/renderer/render-still",+ "permanent": true+ },+ {+ "source": "/docs/render-frames",+ "destination": "/docs/renderer/render-frames",+ "permanent": true+ },+ {+ "source": "/docs/motion-blur/motion-blur",+ "destination": "/docs/motion-blur/trail",+ "permanent": true+ },+ {+ "source": "/support",+ "destination": "/docs/support",+ "permanent": true+ },+ {+ "source": "/docs/player/api",+ "destination": "/docs/player/player",+ "permanent": true+ },+ {+ "source": "/github",+ "destination": "https://github.com/remotion-dev/remotion",+ "permanent": false+ },+ {+ "source": "/brand",+ "destination": "https://github.com/remotion-dev/logo",+ "permanent": false+ },+ {+ "source": "/docs/lottie/after-effects",+ "destination": "/docs/after-effects",+ "permanent": false+ },+ {+ "source": "/docs/miscellaneous/render-all",+ "destination": "docs/render-all",+ "permanent": false+ },+ {+ "source": "/docs/overlays",+ "destination": "/docs/overlay",+ "permanent": false+ },+ {+ "source": "/docs/cli/preview",+ "destination": "/docs/cli/studio",+ "permanent": false+ },+ {+ "source": "/links",+ "destination": "https://linktr.ee/remotion",+ "permanent": false+ },+ {+ "source": "/contributing",+ "destination": "https://www.remotion.dev/docs/contributing",+ "permanent": false+ },+ {+ "source": "/resources",+ "destination": "https://www.remotion.dev/docs/resources",+ "permanent": false+ },+ {+ "source": "/rive",+ "destination": "https://www.remotion.dev/docs/rive",+ "permanent": false+ },+ {+ "source": "/zod-types",+ "destination": "https://www.remotion.dev/docs/zod-types",+ "permanent": false+ },+ {+ "source": "/cloudrun",+ "destination": "https://www.remotion.dev/docs/cloudrun",+ "permanent": false+ },+ {+ "source": "/layout-utils",+ "destination": "https://www.remotion.dev/docs/layout-utils",+ "permanent": false+ },+ {+ "source": "/animation-utils",+ "destination": "https://www.remotion.dev/docs/animation-utils",+ "permanent": false+ },+ {+ "source": "/get-help",+ "destination": "https://www.remotion.dev/docs/get-help",+ "permanent": false+ },+ {+ "source": "/help",+ "destination": "https://www.remotion.dev/docs/get-help",+ "permanent": false+ },+ {+ "source": "/native",+ "destination": "https://remotion.dev/docs/react-native",+ "permanent": false+ },+ {+ "source": "/docs/parametrized-rendering",+ "destination": "https://www.remotion.dev/docs/parameterized-rendering",+ "permanent": false+ },+ {+ "source": "/business",+ "destination": "https://github.com/orgs/remotion-dev/projects/10",+ "permanent": false+ },+ {+ "source": "/docs/thorium-browser",+ "destination": "/docs/miscellaneous/thorium-browser",+ "permanent": false+ },+ {+ "source": "/youtube",+ "destination": "https://youtube.com/@remotion_dev",+ "permanent": false+ },+ {+ "source": "/bun",+ "destination": "/docs/bun",+ "permanent": false+ },+ {+ "source": "/bounties",+ "destination": "/docs/contributing/bounty",+ "permanent": false+ },+ {+ "source": "/transitions",+ "destination": "/docs/transitioning",+ "permanent": false+ },+ {+ "source": "/repro",+ "destination": "https://stackblitz.com/fork/github/remotion-dev/template-helloworld",+ "permanent": false+ },+ {+ "source": "/docs/timeline",+ "destination": "/docs/studio",+ "permanent": false+ },+ {+ "source": "/studio",+ "destination": "/docs/studio",+ "permanent": false+ },+ {+ "source": "/security",+ "destination": "/docs/security",+ "permanent": false+ },+ {+ "source": "/standalone",+ "destination": "/docs/standalone",+ "permanent": false+ },+ {+ "source": "/docs/deploy-studio",+ "destination": "/docs/studio/deploy-server",+ "permanent": false+ },+ {+ "source": "/blog/faster-lambda-renders",+ "destination": "/blog/faster-lambda",+ "permanent": false+ },+ {+ "source": "/docs/miscellaneous/thorium-browser",+ "destination": "/docs/miscellaneous/chrome-headless-shell",+ "permanent": false+ },+ {+ "source": "/chrome-headless-shell",+ "destination": "/docs/miscellaneous/chrome-headless-shell",+ "permanent": false+ },+ {+ "source": "/docs/chrome-headless-shell",+ "destination": "/docs/miscellaneous/chrome-headless-shell",+ "permanent": false+ },+ {+ "source": "/recorder",+ "destination": "/docs/recorder",+ "permanent": false+ },+ {+ "source": "/docs/miscellaneous/snippets/adding-animations",+ "destination": "/docs/animation-math",+ "permanent": false+ },+ {+ "source": "/bbb.webm",+ "destination": "https://upload.wikimedia.org/wikipedia/commons/transcoded/c/c0/Big_Buck_Bunny_4K.webm/Big_Buck_Bunny_4K.webm.720p.vp9.webm",+ "permanent": false+ },+ {+ "source": "/bbb.mp4",+ "destination": "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",+ "permanent": false+ }+ ]}