@remotion/renderer 3.3.11 → 3.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  import type { Codec } from './codec';
2
- export declare const getFileExtensionFromCodec: (codec: Codec, type: 'chunk' | 'final') => "mp3" | "aac" | "wav" | "gif" | "webm" | "mp4" | "mov" | "mkv";
2
+ export declare const getFileExtensionFromCodec: (codec: Codec, type: 'chunk' | 'final') => "mp3" | "aac" | "wav" | "gif" | "mp4" | "mkv" | "mov" | "webm";
@@ -2,4 +2,4 @@ export declare const guessExtensionForVideo: ({ src, remotionRoot, ffprobeBinary
2
2
  src: string;
3
3
  remotionRoot: string;
4
4
  ffprobeBinary: string | null;
5
- }) => Promise<"mp3" | "wav" | "webm" | "mp4">;
5
+ }) => Promise<"mp3" | "wav" | "mp4" | "webm">;
package/dist/index.d.ts CHANGED
@@ -61,7 +61,7 @@ export declare const RenderInternals: {
61
61
  scale: number;
62
62
  codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
63
63
  }) => void;
64
- getFileExtensionFromCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif", type: "chunk" | "final") => "mp3" | "aac" | "wav" | "gif" | "webm" | "mp4" | "mov" | "mkv";
64
+ getFileExtensionFromCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif", type: "chunk" | "final") => "mp3" | "aac" | "wav" | "gif" | "mp4" | "mkv" | "mov" | "webm";
65
65
  tmpDir: (str: string) => string;
66
66
  deleteDirectory: (directory: string) => Promise<void>;
67
67
  isServeUrl: (potentialUrl: string) => boolean;
@@ -115,8 +115,8 @@ export declare const RenderInternals: {
115
115
  validPixelFormats: readonly ["yuv420p", "yuva420p", "yuv422p", "yuv444p", "yuv420p10le", "yuv422p10le", "yuv444p10le", "yuva444p10le"];
116
116
  DEFAULT_BROWSER: import("./browser").Browser;
117
117
  validateFrameRange: (frameRange: import("./frame-range").FrameRange | null) => void;
118
- DEFAULT_OPENGL_RENDERER: "angle" | "swangle" | "egl" | "swiftshader" | null;
119
- validateOpenGlRenderer: (option: "angle" | "swangle" | "egl" | "swiftshader" | null) => "angle" | "swangle" | "egl" | "swiftshader" | null;
118
+ DEFAULT_OPENGL_RENDERER: "swangle" | "angle" | "egl" | "swiftshader" | null;
119
+ validateOpenGlRenderer: (option: "swangle" | "angle" | "egl" | "swiftshader" | null) => "swangle" | "angle" | "egl" | "swiftshader" | null;
120
120
  validImageFormats: readonly ["png", "jpeg", "none"];
121
121
  validCodecs: readonly ["h264", "h265", "vp8", "vp9", "mp3", "aac", "wav", "prores", "h264-mkv", "gif"];
122
122
  DEFAULT_PIXEL_FORMAT: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
@@ -126,7 +126,7 @@ export declare const RenderInternals: {
126
126
  DEFAULT_CODEC: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif";
127
127
  isAudioCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv" | "gif" | undefined) => boolean;
128
128
  logLevels: readonly ["verbose", "info", "warn", "error"];
129
- isEqualOrBelowLogLevel: (currentLevel: "error" | "verbose" | "info" | "warn", level: "error" | "verbose" | "info" | "warn") => boolean;
129
+ isEqualOrBelowLogLevel: (currentLevel: "verbose" | "info" | "warn" | "error", level: "verbose" | "info" | "warn" | "error") => boolean;
130
130
  isValidLogLevel: (level: string) => boolean;
131
131
  perf: typeof perf;
132
132
  makeDownloadMap: () => import("./assets/download-map").DownloadMap;
@@ -3,15 +3,12 @@ import type { Browser as PuppeteerBrowser } from './browser/Browser';
3
3
  import type { Viewport } from './browser/PuppeteerViewport';
4
4
  declare const validRenderers: readonly ["swangle", "angle", "egl", "swiftshader"];
5
5
  declare type OpenGlRenderer = typeof validRenderers[number];
6
- export declare type LambdaChromiumOptions = {
6
+ export declare type ChromiumOptions = {
7
7
  ignoreCertificateErrors?: boolean;
8
8
  disableWebSecurity?: boolean;
9
9
  gl?: OpenGlRenderer | null;
10
10
  headless?: boolean;
11
11
  };
12
- export declare type ChromiumOptions = LambdaChromiumOptions & {
13
- enableExtensions?: boolean;
14
- };
15
12
  export declare const killAllBrowsers: () => Promise<void>;
16
13
  export declare const openBrowser: (browser: Browser, options?: {
17
14
  shouldDumpIo?: boolean;
@@ -28,7 +28,7 @@ const killAllBrowsers = async () => {
28
28
  };
29
29
  exports.killAllBrowsers = killAllBrowsers;
30
30
  const openBrowser = async (browser, options) => {
31
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
31
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
32
32
  if (browser === 'firefox') {
33
33
  throw new TypeError('Firefox supported is not yet turned on. Stay tuned for the future.');
34
34
  }
@@ -51,13 +51,11 @@ const openBrowser = async (browser, options) => {
51
51
  '--disable-component-extensions-with-background-pages',
52
52
  '--disable-default-apps',
53
53
  '--disable-dev-shm-usage',
54
- ((_f = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _f === void 0 ? void 0 : _f.enableExtensions)
55
- ? null
56
- : '--disable-extensions',
57
54
  '--no-proxy-server',
58
55
  "--proxy-server='direct://'",
59
56
  '--proxy-bypass-list=*',
60
57
  '--disable-hang-monitor',
58
+ '--disable-extensions',
61
59
  '--disable-ipc-flooding-protection',
62
60
  '--disable-popup-blocking',
63
61
  '--disable-prompt-on-repost',
@@ -73,7 +71,7 @@ const openBrowser = async (browser, options) => {
73
71
  '--enable-blink-features=IdleDetection',
74
72
  '--export-tagged-pdf',
75
73
  '--intensive-wake-up-throttling-policy=0',
76
- ((_h = (_g = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _g === void 0 ? void 0 : _g.headless) !== null && _h !== void 0 ? _h : true) ? '--headless' : null,
74
+ ((_g = (_f = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _f === void 0 ? void 0 : _f.headless) !== null && _g !== void 0 ? _g : true) ? '--headless' : null,
77
75
  '--no-sandbox',
78
76
  '--disable-setuid-sandbox',
79
77
  ...customGlRenderer,
@@ -94,14 +92,14 @@ const openBrowser = async (browser, options) => {
94
92
  (options === null || options === void 0 ? void 0 : options.forceDeviceScaleFactor)
95
93
  ? `--force-device-scale-factor=${options.forceDeviceScaleFactor}`
96
94
  : null,
97
- ((_j = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _j === void 0 ? void 0 : _j.ignoreCertificateErrors)
95
+ ((_h = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _h === void 0 ? void 0 : _h.ignoreCertificateErrors)
98
96
  ? '--ignore-certificate-errors'
99
97
  : null,
100
- ...(((_k = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _k === void 0 ? void 0 : _k.disableWebSecurity)
98
+ ...(((_j = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _j === void 0 ? void 0 : _j.disableWebSecurity)
101
99
  ? ['--disable-web-security']
102
100
  : []),
103
101
  ].filter(Boolean),
104
- defaultViewport: (_l = options === null || options === void 0 ? void 0 : options.viewport) !== null && _l !== void 0 ? _l : {
102
+ defaultViewport: (_k = options === null || options === void 0 ? void 0 : options.viewport) !== null && _k !== void 0 ? _k : {
105
103
  height: 720,
106
104
  width: 1280,
107
105
  deviceScaleFactor: 1,
@@ -20,7 +20,8 @@ const stringifyFfmpegFilter = ({ trimLeft, trimRight, channels, startInVideo, vo
20
20
  const actualTrimRight = assetDuration
21
21
  ? Math.min(trimRight, assetDuration)
22
22
  : trimRight;
23
- const padAtEnd = chunkLength - (actualTrimRight - trimLeft) - startInVideoSeconds;
23
+ const audibleDuration = (actualTrimRight - trimLeft) / playbackRate;
24
+ const padAtEnd = chunkLength - audibleDuration - startInVideoSeconds;
24
25
  return (`[0:a]` +
25
26
  [
26
27
  `aformat=sample_fmts=s32:sample_rates=${sample_rate_1.DEFAULT_SAMPLE_RATE}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/renderer",
3
- "version": "3.3.11",
3
+ "version": "3.3.13",
4
4
  "description": "Renderer for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "execa": "5.1.1",
24
24
  "extract-zip": "2.0.1",
25
- "remotion": "3.3.11",
25
+ "remotion": "3.3.13",
26
26
  "source-map": "^0.8.0-beta.0",
27
27
  "ws": "8.7.0"
28
28
  },
@@ -57,5 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "08404196c439c2bf1f06bbb7a99a6fd84d5158e1"
60
+ "gitHead": "5149292492bbbd27d48935e0aea371251c21588d"
61
61
  }