@remotion/lambda 4.0.0-fastlambda.9 → 4.0.0-imgloading.2
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.
- package/dist/admin/make-layer-public.js +3 -3
- package/dist/api/clean-items.js +2 -5
- package/dist/api/upload-dir.js +2 -2
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts +4 -1
- package/dist/functions/chunk-optimization/optimize-profile.d.ts +8 -2
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts +4 -1
- package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts +4 -1
- package/dist/functions/helpers/get-browser-instance.js +3 -1
- package/dist/functions/helpers/io.js +5 -0
- package/dist/shared/constants.d.ts +1 -1
- package/dist/shared/constants.js +1 -1
- package/dist/shared/hosted-layers.js +60 -60
- package/dist/shared/p-limit.d.ts +1 -0
- package/dist/shared/p-limit.js +57 -0
- package/package.json +8 -7
- package/remotionlambda.zip +0 -0
- package/dist/admin/bundle-lambda.d.ts.map +0 -1
- package/dist/admin/bundle-lambda.js.map +0 -1
- package/dist/admin/make-layer-public.d.ts.map +0 -1
- package/dist/admin/make-layer-public.js.map +0 -1
- package/dist/api/bucket-exists.d.ts.map +0 -1
- package/dist/api/bucket-exists.js.map +0 -1
- package/dist/api/clean-items.d.ts.map +0 -1
- package/dist/api/clean-items.js.map +0 -1
- package/dist/api/create-bucket.d.ts.map +0 -1
- package/dist/api/create-bucket.js.map +0 -1
- package/dist/api/create-function.d.ts.map +0 -1
- package/dist/api/create-function.js.map +0 -1
- package/dist/api/delete-function.d.ts.map +0 -1
- package/dist/api/delete-function.js.map +0 -1
- package/dist/api/delete-site.d.ts.map +0 -1
- package/dist/api/delete-site.js.map +0 -1
- package/dist/api/deploy-function.d.ts.map +0 -1
- package/dist/api/deploy-function.js.map +0 -1
- package/dist/api/deploy-site.d.ts.map +0 -1
- package/dist/api/deploy-site.js.map +0 -1
- package/dist/api/download-media.d.ts.map +0 -1
- package/dist/api/download-media.js.map +0 -1
- package/dist/api/enable-s3-website.d.ts.map +0 -1
- package/dist/api/enable-s3-website.js.map +0 -1
- package/dist/api/estimate-price.d.ts.map +0 -1
- package/dist/api/estimate-price.js.map +0 -1
- package/dist/api/get-aws-client.d.ts.map +0 -1
- package/dist/api/get-aws-client.js.map +0 -1
- package/dist/api/get-buckets.d.ts.map +0 -1
- package/dist/api/get-buckets.js.map +0 -1
- package/dist/api/get-function-info.d.ts.map +0 -1
- package/dist/api/get-function-info.js.map +0 -1
- package/dist/api/get-functions.d.ts.map +0 -1
- package/dist/api/get-functions.js.map +0 -1
- package/dist/api/get-or-create-bucket.d.ts.map +0 -1
- package/dist/api/get-or-create-bucket.js.map +0 -1
- package/dist/api/get-regions.d.ts.map +0 -1
- package/dist/api/get-regions.js.map +0 -1
- package/dist/api/get-render-progress.d.ts.map +0 -1
- package/dist/api/get-render-progress.js.map +0 -1
- package/dist/api/get-sites.d.ts.map +0 -1
- package/dist/api/get-sites.js.map +0 -1
- package/dist/api/iam-validation/role-permissions.d.ts.map +0 -1
- package/dist/api/iam-validation/role-permissions.js.map +0 -1
- package/dist/api/iam-validation/simulate-rule.d.ts.map +0 -1
- package/dist/api/iam-validation/simulate-rule.js.map +0 -1
- package/dist/api/iam-validation/simulate.d.ts.map +0 -1
- package/dist/api/iam-validation/simulate.js.map +0 -1
- package/dist/api/iam-validation/suggested-policy.d.ts.map +0 -1
- package/dist/api/iam-validation/suggested-policy.js.map +0 -1
- package/dist/api/iam-validation/user-permissions.d.ts.map +0 -1
- package/dist/api/iam-validation/user-permissions.js.map +0 -1
- package/dist/api/mock-functions.d.ts.map +0 -1
- package/dist/api/mock-functions.js.map +0 -1
- package/dist/api/presign-url.d.ts.map +0 -1
- package/dist/api/presign-url.js.map +0 -1
- package/dist/api/render-media-on-lambda.d.ts.map +0 -1
- package/dist/api/render-media-on-lambda.js.map +0 -1
- package/dist/api/render-still-on-lambda.d.ts.map +0 -1
- package/dist/api/render-still-on-lambda.js.map +0 -1
- package/dist/api/upload-dir.d.ts.map +0 -1
- package/dist/api/upload-dir.js.map +0 -1
- package/dist/cli/args.d.ts.map +0 -1
- package/dist/cli/args.js.map +0 -1
- package/dist/cli/commands/functions/deploy.d.ts.map +0 -1
- package/dist/cli/commands/functions/deploy.js.map +0 -1
- package/dist/cli/commands/functions/index.d.ts.map +0 -1
- package/dist/cli/commands/functions/index.js.map +0 -1
- package/dist/cli/commands/functions/ls.d.ts.map +0 -1
- package/dist/cli/commands/functions/ls.js.map +0 -1
- package/dist/cli/commands/functions/rm.d.ts.map +0 -1
- package/dist/cli/commands/functions/rm.js.map +0 -1
- package/dist/cli/commands/functions/rmall.d.ts.map +0 -1
- package/dist/cli/commands/functions/rmall.js.map +0 -1
- package/dist/cli/commands/policies/policies.d.ts.map +0 -1
- package/dist/cli/commands/policies/policies.js.map +0 -1
- package/dist/cli/commands/policies/role.d.ts.map +0 -1
- package/dist/cli/commands/policies/role.js.map +0 -1
- package/dist/cli/commands/policies/user.d.ts.map +0 -1
- package/dist/cli/commands/policies/user.js.map +0 -1
- package/dist/cli/commands/policies/validate.d.ts.map +0 -1
- package/dist/cli/commands/policies/validate.js.map +0 -1
- package/dist/cli/commands/quotas/increase.d.ts.map +0 -1
- package/dist/cli/commands/quotas/increase.js.map +0 -1
- package/dist/cli/commands/quotas/index.d.ts.map +0 -1
- package/dist/cli/commands/quotas/index.js.map +0 -1
- package/dist/cli/commands/quotas/list.d.ts.map +0 -1
- package/dist/cli/commands/quotas/list.js.map +0 -1
- package/dist/cli/commands/regions.d.ts.map +0 -1
- package/dist/cli/commands/regions.js.map +0 -1
- package/dist/cli/commands/render/progress.d.ts.map +0 -1
- package/dist/cli/commands/render/progress.js.map +0 -1
- package/dist/cli/commands/render/render.d.ts.map +0 -1
- package/dist/cli/commands/render/render.js.map +0 -1
- package/dist/cli/commands/sites/create.d.ts.map +0 -1
- package/dist/cli/commands/sites/create.js.map +0 -1
- package/dist/cli/commands/sites/index.d.ts.map +0 -1
- package/dist/cli/commands/sites/index.js.map +0 -1
- package/dist/cli/commands/sites/ls.d.ts.map +0 -1
- package/dist/cli/commands/sites/ls.js.map +0 -1
- package/dist/cli/commands/sites/rm.d.ts.map +0 -1
- package/dist/cli/commands/sites/rm.js.map +0 -1
- package/dist/cli/commands/sites/rmall.d.ts.map +0 -1
- package/dist/cli/commands/sites/rmall.js.map +0 -1
- package/dist/cli/commands/still.d.ts.map +0 -1
- package/dist/cli/commands/still.js.map +0 -1
- package/dist/cli/get-aws-region.d.ts.map +0 -1
- package/dist/cli/get-aws-region.js.map +0 -1
- package/dist/cli/help.d.ts.map +0 -1
- package/dist/cli/help.js.map +0 -1
- package/dist/cli/helpers/confirm.d.ts.map +0 -1
- package/dist/cli/helpers/confirm.js.map +0 -1
- package/dist/cli/helpers/date-string.d.ts.map +0 -1
- package/dist/cli/helpers/date-string.js.map +0 -1
- package/dist/cli/helpers/find-function-name.d.ts.map +0 -1
- package/dist/cli/helpers/find-function-name.js.map +0 -1
- package/dist/cli/helpers/format-bytes.d.ts.map +0 -1
- package/dist/cli/helpers/format-bytes.js.map +0 -1
- package/dist/cli/helpers/get-cloudwatch-stream-url.d.ts.map +0 -1
- package/dist/cli/helpers/get-cloudwatch-stream-url.js.map +0 -1
- package/dist/cli/helpers/progress-bar.d.ts.map +0 -1
- package/dist/cli/helpers/progress-bar.js.map +0 -1
- package/dist/cli/helpers/quit.d.ts.map +0 -1
- package/dist/cli/helpers/quit.js.map +0 -1
- package/dist/cli/helpers/yes-or-no.d.ts.map +0 -1
- package/dist/cli/helpers/yes-or-no.js.map +0 -1
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/is-cli.d.ts.map +0 -1
- package/dist/cli/is-cli.js.map +0 -1
- package/dist/cli/log.d.ts.map +0 -1
- package/dist/cli/log.js.map +0 -1
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/defaults.d.ts.map +0 -1
- package/dist/defaults.js.map +0 -1
- package/dist/functions/chunk-optimization/can-use-optimization.d.ts.map +0 -1
- package/dist/functions/chunk-optimization/can-use-optimization.js.map +0 -1
- package/dist/functions/chunk-optimization/collect-data.d.ts.map +0 -1
- package/dist/functions/chunk-optimization/collect-data.js.map +0 -1
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.d.ts.map +0 -1
- package/dist/functions/chunk-optimization/get-frame-ranges-from-profile.js.map +0 -1
- package/dist/functions/chunk-optimization/get-profile-duration.d.ts.map +0 -1
- package/dist/functions/chunk-optimization/get-profile-duration.js.map +0 -1
- package/dist/functions/chunk-optimization/is-valid-profile.d.ts.map +0 -1
- package/dist/functions/chunk-optimization/is-valid-profile.js.map +0 -1
- package/dist/functions/chunk-optimization/optimize-invocation-order.d.ts.map +0 -1
- package/dist/functions/chunk-optimization/optimize-invocation-order.js.map +0 -1
- package/dist/functions/chunk-optimization/optimize-profile.d.ts.map +0 -1
- package/dist/functions/chunk-optimization/optimize-profile.js.map +0 -1
- package/dist/functions/chunk-optimization/plan-frame-ranges.d.ts.map +0 -1
- package/dist/functions/chunk-optimization/plan-frame-ranges.js.map +0 -1
- package/dist/functions/chunk-optimization/s3-optimization-file.d.ts.map +0 -1
- package/dist/functions/chunk-optimization/s3-optimization-file.js.map +0 -1
- package/dist/functions/chunk-optimization/simulate-frame-ranges.d.ts.map +0 -1
- package/dist/functions/chunk-optimization/simulate-frame-ranges.js.map +0 -1
- package/dist/functions/chunk-optimization/sort-by-duration.d.ts.map +0 -1
- package/dist/functions/chunk-optimization/sort-by-duration.js.map +0 -1
- package/dist/functions/chunk-optimization/types.d.ts.map +0 -1
- package/dist/functions/chunk-optimization/types.js.map +0 -1
- package/dist/functions/helpers/best-frames-per-lambda-param.d.ts.map +0 -1
- package/dist/functions/helpers/best-frames-per-lambda-param.js.map +0 -1
- package/dist/functions/helpers/calculate-chunk-times.d.ts.map +0 -1
- package/dist/functions/helpers/calculate-chunk-times.js.map +0 -1
- package/dist/functions/helpers/calculate-price-from-bucket.d.ts.map +0 -1
- package/dist/functions/helpers/calculate-price-from-bucket.js.map +0 -1
- package/dist/functions/helpers/clean-tmpdir.d.ts.map +0 -1
- package/dist/functions/helpers/clean-tmpdir.js.map +0 -1
- package/dist/functions/helpers/concat-videos.d.ts.map +0 -1
- package/dist/functions/helpers/concat-videos.js.map +0 -1
- package/dist/functions/helpers/create-post-render-data.d.ts.map +0 -1
- package/dist/functions/helpers/create-post-render-data.js.map +0 -1
- package/dist/functions/helpers/delete-chunks.d.ts.map +0 -1
- package/dist/functions/helpers/delete-chunks.js.map +0 -1
- package/dist/functions/helpers/expected-out-name.d.ts.map +0 -1
- package/dist/functions/helpers/expected-out-name.js.map +0 -1
- package/dist/functions/helpers/find-output-file-in-bucket.d.ts.map +0 -1
- package/dist/functions/helpers/find-output-file-in-bucket.js.map +0 -1
- package/dist/functions/helpers/format-costs-info.d.ts.map +0 -1
- package/dist/functions/helpers/format-costs-info.js.map +0 -1
- package/dist/functions/helpers/get-browser-instance.d.ts.map +0 -1
- package/dist/functions/helpers/get-browser-instance.js.map +0 -1
- package/dist/functions/helpers/get-chromium-executable-path.d.ts.map +0 -1
- package/dist/functions/helpers/get-chromium-executable-path.js.map +0 -1
- package/dist/functions/helpers/get-cleanup-progress.d.ts.map +0 -1
- package/dist/functions/helpers/get-cleanup-progress.js.map +0 -1
- package/dist/functions/helpers/get-current-architecture.d.ts.map +0 -1
- package/dist/functions/helpers/get-current-architecture.js.map +0 -1
- package/dist/functions/helpers/get-current-region.d.ts.map +0 -1
- package/dist/functions/helpers/get-current-region.js.map +0 -1
- package/dist/functions/helpers/get-encoding-metadata.d.ts.map +0 -1
- package/dist/functions/helpers/get-encoding-metadata.js.map +0 -1
- package/dist/functions/helpers/get-files-in-folder.d.ts.map +0 -1
- package/dist/functions/helpers/get-files-in-folder.js.map +0 -1
- package/dist/functions/helpers/get-files-to-delete.d.ts.map +0 -1
- package/dist/functions/helpers/get-files-to-delete.js.map +0 -1
- package/dist/functions/helpers/get-final-encoding-status.d.ts.map +0 -1
- package/dist/functions/helpers/get-final-encoding-status.js.map +0 -1
- package/dist/functions/helpers/get-folder-size.d.ts.map +0 -1
- package/dist/functions/helpers/get-folder-size.js.map +0 -1
- package/dist/functions/helpers/get-lambdas-invoked-stats.d.ts.map +0 -1
- package/dist/functions/helpers/get-lambdas-invoked-stats.js.map +0 -1
- package/dist/functions/helpers/get-output-url-from-metadata.d.ts.map +0 -1
- package/dist/functions/helpers/get-output-url-from-metadata.js.map +0 -1
- package/dist/functions/helpers/get-overall-progress.d.ts.map +0 -1
- package/dist/functions/helpers/get-overall-progress.js.map +0 -1
- package/dist/functions/helpers/get-post-render-data.d.ts.map +0 -1
- package/dist/functions/helpers/get-post-render-data.js.map +0 -1
- package/dist/functions/helpers/get-progress.d.ts.map +0 -1
- package/dist/functions/helpers/get-progress.js.map +0 -1
- package/dist/functions/helpers/get-render-metadata.d.ts.map +0 -1
- package/dist/functions/helpers/get-render-metadata.js.map +0 -1
- package/dist/functions/helpers/get-retry-stats.d.ts.map +0 -1
- package/dist/functions/helpers/get-retry-stats.js.map +0 -1
- package/dist/functions/helpers/get-time-to-finish.d.ts.map +0 -1
- package/dist/functions/helpers/get-time-to-finish.js.map +0 -1
- package/dist/functions/helpers/inspect-errors.d.ts.map +0 -1
- package/dist/functions/helpers/inspect-errors.js.map +0 -1
- package/dist/functions/helpers/io.d.ts.map +0 -1
- package/dist/functions/helpers/io.js.map +0 -1
- package/dist/functions/helpers/is-enosp-err.d.ts.map +0 -1
- package/dist/functions/helpers/is-enosp-err.js.map +0 -1
- package/dist/functions/helpers/is-warm.d.ts.map +0 -1
- package/dist/functions/helpers/is-warm.js.map +0 -1
- package/dist/functions/helpers/min-max.d.ts.map +0 -1
- package/dist/functions/helpers/min-max.js.map +0 -1
- package/dist/functions/helpers/print-cloudwatch-helper.d.ts.map +0 -1
- package/dist/functions/helpers/print-cloudwatch-helper.js.map +0 -1
- package/dist/functions/helpers/print-concurrency-curve.d.ts.map +0 -1
- package/dist/functions/helpers/print-concurrency-curve.js.map +0 -1
- package/dist/functions/helpers/read-with-progress.d.ts.map +0 -1
- package/dist/functions/helpers/read-with-progress.js.map +0 -1
- package/dist/functions/helpers/timer.d.ts.map +0 -1
- package/dist/functions/helpers/timer.js.map +0 -1
- package/dist/functions/helpers/validate-composition.d.ts.map +0 -1
- package/dist/functions/helpers/validate-composition.js.map +0 -1
- package/dist/functions/helpers/write-lambda-error.d.ts.map +0 -1
- package/dist/functions/helpers/write-lambda-error.js.map +0 -1
- package/dist/functions/helpers/write-post-render-data.d.ts.map +0 -1
- package/dist/functions/helpers/write-post-render-data.js.map +0 -1
- package/dist/functions/index.d.ts.map +0 -1
- package/dist/functions/index.js.map +0 -1
- package/dist/functions/info.d.ts.map +0 -1
- package/dist/functions/info.js.map +0 -1
- package/dist/functions/launch.d.ts.map +0 -1
- package/dist/functions/launch.js.map +0 -1
- package/dist/functions/progress.d.ts.map +0 -1
- package/dist/functions/progress.js.map +0 -1
- package/dist/functions/renderer.d.ts.map +0 -1
- package/dist/functions/renderer.js.map +0 -1
- package/dist/functions/start.d.ts.map +0 -1
- package/dist/functions/start.js.map +0 -1
- package/dist/functions/still.d.ts.map +0 -1
- package/dist/functions/still.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/internals.d.ts.map +0 -1
- package/dist/internals.js.map +0 -1
- package/dist/pricing/aws-regions.d.ts.map +0 -1
- package/dist/pricing/aws-regions.js.map +0 -1
- package/dist/pricing/price-per-1-s.d.ts.map +0 -1
- package/dist/pricing/price-per-1-s.js.map +0 -1
- package/dist/regions.d.ts.map +0 -1
- package/dist/regions.js.map +0 -1
- package/dist/shared/await.d.ts.map +0 -1
- package/dist/shared/await.js.map +0 -1
- package/dist/shared/aws-clients.d.ts.map +0 -1
- package/dist/shared/aws-clients.js.map +0 -1
- package/dist/shared/bundle-site.d.ts.map +0 -1
- package/dist/shared/bundle-site.js.map +0 -1
- package/dist/shared/call-lambda.d.ts.map +0 -1
- package/dist/shared/call-lambda.js.map +0 -1
- package/dist/shared/check-credentials.d.ts.map +0 -1
- package/dist/shared/check-credentials.js.map +0 -1
- package/dist/shared/chunk.d.ts.map +0 -1
- package/dist/shared/chunk.js.map +0 -1
- package/dist/shared/constants.d.ts.map +0 -1
- package/dist/shared/constants.js.map +0 -1
- package/dist/shared/convert-to-serve-url.d.ts.map +0 -1
- package/dist/shared/convert-to-serve-url.js.map +0 -1
- package/dist/shared/docs-url.d.ts.map +0 -1
- package/dist/shared/docs-url.js.map +0 -1
- package/dist/shared/function-zip-path.d.ts.map +0 -1
- package/dist/shared/function-zip-path.js.map +0 -1
- package/dist/shared/get-account-id.d.ts.map +0 -1
- package/dist/shared/get-account-id.js.map +0 -1
- package/dist/shared/get-function-version.d.ts.map +0 -1
- package/dist/shared/get-function-version.js.map +0 -1
- package/dist/shared/hosted-layers.d.ts.map +0 -1
- package/dist/shared/hosted-layers.js.map +0 -1
- package/dist/shared/is-in-lambda.d.ts.map +0 -1
- package/dist/shared/is-in-lambda.js.map +0 -1
- package/dist/shared/make-s3-url.d.ts.map +0 -1
- package/dist/shared/make-s3-url.js.map +0 -1
- package/dist/shared/parse-lambda-initialized-key.d.ts.map +0 -1
- package/dist/shared/parse-lambda-initialized-key.js.map +0 -1
- package/dist/shared/parse-lambda-timings-key.d.ts.map +0 -1
- package/dist/shared/parse-lambda-timings-key.js.map +0 -1
- package/dist/shared/random-hash.d.ts.map +0 -1
- package/dist/shared/random-hash.js.map +0 -1
- package/dist/shared/return-values.d.ts.map +0 -1
- package/dist/shared/return-values.js.map +0 -1
- package/dist/shared/sleep.d.ts.map +0 -1
- package/dist/shared/sleep.js.map +0 -1
- package/dist/shared/stream-to-string.d.ts.map +0 -1
- package/dist/shared/stream-to-string.js.map +0 -1
- package/dist/shared/validate-architecture.d.ts.map +0 -1
- package/dist/shared/validate-architecture.js.map +0 -1
- package/dist/shared/validate-aws-region.d.ts.map +0 -1
- package/dist/shared/validate-aws-region.js.map +0 -1
- package/dist/shared/validate-bucketname.d.ts.map +0 -1
- package/dist/shared/validate-bucketname.js.map +0 -1
- package/dist/shared/validate-disk-size-in-mb.d.ts.map +0 -1
- package/dist/shared/validate-disk-size-in-mb.js.map +0 -1
- package/dist/shared/validate-frames-per-lambda.d.ts.map +0 -1
- package/dist/shared/validate-frames-per-lambda.js.map +0 -1
- package/dist/shared/validate-memory-size.d.ts.map +0 -1
- package/dist/shared/validate-memory-size.js.map +0 -1
- package/dist/shared/validate-outname.d.ts.map +0 -1
- package/dist/shared/validate-outname.js.map +0 -1
- package/dist/shared/validate-presign-expiration.d.ts.map +0 -1
- package/dist/shared/validate-presign-expiration.js.map +0 -1
- package/dist/shared/validate-privacy.d.ts.map +0 -1
- package/dist/shared/validate-privacy.js.map +0 -1
- package/dist/shared/validate-retention-period.d.ts.map +0 -1
- package/dist/shared/validate-retention-period.js.map +0 -1
- package/dist/shared/validate-retries.d.ts.map +0 -1
- package/dist/shared/validate-retries.js.map +0 -1
- package/dist/shared/validate-serveurl.d.ts.map +0 -1
- package/dist/shared/validate-serveurl.js.map +0 -1
- package/dist/shared/validate-site-name.d.ts.map +0 -1
- package/dist/shared/validate-site-name.js.map +0 -1
- package/dist/shared/validate-timeout.d.ts.map +0 -1
- package/dist/shared/validate-timeout.js.map +0 -1
|
@@ -43,14 +43,14 @@ const makeLayerPublic = async () => {
|
|
|
43
43
|
const { Version, LayerArn } = await (0, aws_clients_1.getLambdaClient)(region).send(new client_lambda_1.PublishLayerVersionCommand({
|
|
44
44
|
Content: {
|
|
45
45
|
S3Bucket: 'remotionlambda-binaries-' + region,
|
|
46
|
-
S3Key: `remotion-layer-${layer}-
|
|
46
|
+
S3Key: `remotion-layer-${layer}-v5-${architecture}.zip`,
|
|
47
47
|
},
|
|
48
48
|
LayerName: layerName,
|
|
49
49
|
LicenseInfo: layer === 'chromium'
|
|
50
|
-
? '
|
|
50
|
+
? 'Chromium 101, compiled from source. Read Chromium License: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/LICENSE'
|
|
51
51
|
: layer === 'ffmpeg'
|
|
52
52
|
? 'Compiled from FFMPEG source. Read FFMPEG license: https://ffmpeg.org/legal.html'
|
|
53
|
-
: 'Contains
|
|
53
|
+
: 'Contains Amazon Linux .so files and Noto Sans font. Read Noto Sans License: https://fonts.google.com/noto/specimen/Noto+Sans/about',
|
|
54
54
|
CompatibleRuntimes: runtimes,
|
|
55
55
|
Description: constants_1.CURRENT_VERSION,
|
|
56
56
|
}));
|
package/dist/api/clean-items.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.cleanItems = void 0;
|
|
7
4
|
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
8
|
-
const p_limit_1 = __importDefault(require("p-limit"));
|
|
9
5
|
const aws_clients_1 = require("../shared/aws-clients");
|
|
10
|
-
const
|
|
6
|
+
const p_limit_1 = require("../shared/p-limit");
|
|
7
|
+
const limit = (0, p_limit_1.pLimit)(10);
|
|
11
8
|
const cleanItems = async ({ bucket, onAfterItemDeleted, onBeforeItemDeleted, region, list, }) => {
|
|
12
9
|
return Promise.all(list.map((object) => limit(async () => {
|
|
13
10
|
onBeforeItemDeleted({
|
package/dist/api/upload-dir.js
CHANGED
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.uploadDir = exports.getDirFiles = void 0;
|
|
7
7
|
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
8
8
|
const lib_storage_1 = require("@aws-sdk/lib-storage");
|
|
9
|
-
const bundler_1 = require("@remotion/bundler");
|
|
10
9
|
const fs_1 = require("fs");
|
|
10
|
+
const mime_types_1 = __importDefault(require("mime-types"));
|
|
11
11
|
const path_1 = __importDefault(require("path"));
|
|
12
12
|
const aws_clients_1 = require("../shared/aws-clients");
|
|
13
13
|
const getDirFiles = (entry) => {
|
|
@@ -40,7 +40,7 @@ const uploadDir = async ({ bucket, region, dir, onProgress, folder, privacy, })
|
|
|
40
40
|
const uploads = files.map(async (filePath) => {
|
|
41
41
|
const Key = `${folder}/${path_1.default.relative(dir, filePath.name)}`;
|
|
42
42
|
const Body = (0, fs_1.createReadStream)(filePath.name);
|
|
43
|
-
const ContentType =
|
|
43
|
+
const ContentType = mime_types_1.default.lookup(Key) || 'application/octet-stream';
|
|
44
44
|
const ACL = privacy === 'private' ? 'private' : 'public-read';
|
|
45
45
|
if (filePath.size > 5 * 1024 * 1024) {
|
|
46
46
|
const paralellUploads3 = new lib_storage_1.Upload({
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { TimingProfile } from './types';
|
|
2
|
-
export declare const getFrameRangesFromProfile: (profile: TimingProfile) => [
|
|
2
|
+
export declare const getFrameRangesFromProfile: (profile: TimingProfile) => [
|
|
3
|
+
number,
|
|
4
|
+
number
|
|
5
|
+
][];
|
|
3
6
|
export declare const sortProfileByFrameRanges: (profile: TimingProfile) => import("./types").ChunkTimingData[];
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { TimingProfile } from './types';
|
|
2
2
|
export declare const assignFrameToOther: ({ frameRanges, fromChunk, toChunk, framesToShift, }: {
|
|
3
|
-
frameRanges: [
|
|
3
|
+
frameRanges: [
|
|
4
|
+
number,
|
|
5
|
+
number
|
|
6
|
+
][];
|
|
4
7
|
fromChunk: number;
|
|
5
8
|
toChunk: number;
|
|
6
9
|
framesToShift: number;
|
|
7
|
-
}) => [
|
|
10
|
+
}) => [
|
|
11
|
+
number,
|
|
12
|
+
number
|
|
13
|
+
][];
|
|
8
14
|
export declare const optimizeProfile: (_profile: TimingProfile) => TimingProfile;
|
|
9
15
|
export declare const optimizeProfileRecursively: (profile: TimingProfile, amount: number) => TimingProfile;
|
|
@@ -6,6 +6,9 @@ export declare const planFrameRanges: ({ chunkCount, framesPerLambda, optimizati
|
|
|
6
6
|
shouldUseOptimization: boolean;
|
|
7
7
|
frameRange: [number, number];
|
|
8
8
|
}) => {
|
|
9
|
-
chunks: [
|
|
9
|
+
chunks: [
|
|
10
|
+
number,
|
|
11
|
+
number
|
|
12
|
+
][];
|
|
10
13
|
didUseOptimization: boolean;
|
|
11
14
|
};
|
|
@@ -3,5 +3,8 @@ export declare const getTimingForFrame: (profile: TimingProfile, frame: number)
|
|
|
3
3
|
export declare const getSimulatedTimingForFrameRange: (profile: TimingProfile, frameRange: [number, number]) => ChunkTimingData['timings'];
|
|
4
4
|
export declare const simulateFrameRanges: ({ profile, newFrameRanges, }: {
|
|
5
5
|
profile: TimingProfile;
|
|
6
|
-
newFrameRanges: [
|
|
6
|
+
newFrameRanges: [
|
|
7
|
+
number,
|
|
8
|
+
number
|
|
9
|
+
][];
|
|
7
10
|
}) => TimingProfile;
|
|
@@ -20,6 +20,7 @@ const waitForLaunched = () => {
|
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
const getBrowserInstance = async (shouldDumpIo, chromiumOptions) => {
|
|
23
|
+
var _a;
|
|
23
24
|
if (launching) {
|
|
24
25
|
await waitForLaunched();
|
|
25
26
|
if (!_browserInstance) {
|
|
@@ -33,8 +34,9 @@ const getBrowserInstance = async (shouldDumpIo, chromiumOptions) => {
|
|
|
33
34
|
launching = true;
|
|
34
35
|
const execPath = await (0, get_chromium_executable_path_1.executablePath)();
|
|
35
36
|
const actualChromiumOptions = {
|
|
36
|
-
gl: 'swiftshader',
|
|
37
37
|
...chromiumOptions,
|
|
38
|
+
// Override the `null` value, which might come from CLI with swANGLE
|
|
39
|
+
gl: (_a = chromiumOptions.gl) !== null && _a !== void 0 ? _a : 'swangle',
|
|
38
40
|
};
|
|
39
41
|
_browserInstance = await (0, renderer_1.openBrowser)('chrome', {
|
|
40
42
|
browserExecutable: execPath,
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.lambdaReadFile = exports.lambdaWriteFile = exports.lambdaLs = void 0;
|
|
4
7
|
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
8
|
+
const mime_types_1 = __importDefault(require("mime-types"));
|
|
5
9
|
const aws_clients_1 = require("../../shared/aws-clients");
|
|
6
10
|
const lambdaLs = async ({ bucketName, prefix, region, expectedBucketOwner, continuationToken, }) => {
|
|
7
11
|
var _a, _b, _c;
|
|
@@ -49,6 +53,7 @@ const lambdaWriteFile = async ({ bucketName, key, body, region, privacy, expecte
|
|
|
49
53
|
Body: body,
|
|
50
54
|
ACL: privacy === 'private' ? 'private' : 'public-read',
|
|
51
55
|
ExpectedBucketOwner: expectedBucketOwner !== null && expectedBucketOwner !== void 0 ? expectedBucketOwner : undefined,
|
|
56
|
+
ContentType: mime_types_1.default.lookup(key) || 'application/octet-stream',
|
|
52
57
|
}));
|
|
53
58
|
};
|
|
54
59
|
exports.lambdaWriteFile = lambdaWriteFile;
|
|
@@ -210,7 +210,7 @@ export declare type RenderMetadata = {
|
|
|
210
210
|
renderId: string;
|
|
211
211
|
outName: OutNameInput | undefined;
|
|
212
212
|
};
|
|
213
|
-
export declare type LambdaVersions = '2099-05-
|
|
213
|
+
export declare type LambdaVersions = '2099-05-20' | '2022-05-19' | '2022-05-16' | '2022-05-11' | '2022-05-07' | '2022-05-06' | '2022-05-03' | '2022-04-20' | '2022-04-19' | '2022-04-18' | '2022-04-09' | '2022-04-08' | '2022-04-05' | '2022-04-02' | '2022-03-29' | '2022-03-17' | '2022-03-02' | '2022-03-01' | '2022-02-27' | '2022-02-14' | '2022-02-12' | '2022-02-09' | '2022-02-08' | '2022-02-07' | '2022-02-06' | '2022-02-05' | '2022-02-04' | '2022-02-03' | '2022-01-23' | '2022-01-19' | '2022-01-11' | '2022-01-10' | '2022-01-09' | '2022-01-06' | '2022-01-05' | '2021-12-22' | '2021-12-17' | '2021-12-16' | '2021-12-15' | '2021-12-14' | '2021-12-13' | '2021-12-11' | '2021-12-10' | '2021-12-04' | '2021-11-29' | '2021-11-27' | '2021-11-24' | '2021-11-22' | '2021-11-19' | '2021-11-18' | '2021-11-15' | '2021-11-12' | '2021-11-10' | '2021-11-01' | '2021-10-29' | '2021-10-27' | '2021-10-21' | '2021-10-19' | '2021-10-07' | '2021-10-03' | '2021-10-01' | '2021-09-15' | '2021-09-06' | '2021-08-06' | '2021-07-14' | '2021-07-05' | '2021-07-02' | '2021-06-23' | 'n/a';
|
|
214
214
|
export declare const CURRENT_VERSION: LambdaVersions;
|
|
215
215
|
export declare type PostRenderData = {
|
|
216
216
|
cost: {
|
package/dist/shared/constants.js
CHANGED
|
@@ -84,6 +84,6 @@ var LambdaRoutines;
|
|
|
84
84
|
LambdaRoutines["renderer"] = "renderer";
|
|
85
85
|
LambdaRoutines["still"] = "still";
|
|
86
86
|
})(LambdaRoutines = exports.LambdaRoutines || (exports.LambdaRoutines = {}));
|
|
87
|
-
exports.CURRENT_VERSION = '2099-05-
|
|
87
|
+
exports.CURRENT_VERSION = '2099-05-20';
|
|
88
88
|
exports.LAMBDA_CONCURRENCY_LIMIT_QUOTA = 'L-B99A9384';
|
|
89
89
|
exports.LAMBDA_BURST_LIMIT_QUOTA = 'L-548AE339';
|
|
@@ -7,141 +7,141 @@ exports.hostedLayers = {
|
|
|
7
7
|
'ap-northeast-1': [
|
|
8
8
|
{
|
|
9
9
|
layerArn: 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-remotion-arm64',
|
|
10
|
-
version:
|
|
10
|
+
version: 4,
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
layerArn: 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
|
|
14
|
-
version:
|
|
14
|
+
version: 4,
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
layerArn: 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-chromium-arm64',
|
|
18
|
-
version:
|
|
18
|
+
version: 4,
|
|
19
19
|
},
|
|
20
20
|
],
|
|
21
21
|
'ap-south-1': [
|
|
22
22
|
{
|
|
23
23
|
layerArn: 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-remotion-arm64',
|
|
24
|
-
version:
|
|
24
|
+
version: 4,
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
layerArn: 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
|
|
28
|
-
version:
|
|
28
|
+
version: 4,
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
layerArn: 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-chromium-arm64',
|
|
32
|
-
version:
|
|
32
|
+
version: 4,
|
|
33
33
|
},
|
|
34
34
|
],
|
|
35
35
|
'ap-southeast-1': [
|
|
36
36
|
{
|
|
37
37
|
layerArn: 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-remotion-arm64',
|
|
38
|
-
version:
|
|
38
|
+
version: 4,
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
layerArn: 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
|
|
42
|
-
version:
|
|
42
|
+
version: 4,
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
layerArn: 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-chromium-arm64',
|
|
46
|
-
version:
|
|
46
|
+
version: 4,
|
|
47
47
|
},
|
|
48
48
|
],
|
|
49
49
|
'ap-southeast-2': [
|
|
50
50
|
{
|
|
51
51
|
layerArn: 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-remotion-arm64',
|
|
52
|
-
version:
|
|
52
|
+
version: 4,
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
layerArn: 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
|
|
56
|
-
version:
|
|
56
|
+
version: 4,
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
layerArn: 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-chromium-arm64',
|
|
60
|
-
version:
|
|
60
|
+
version: 4,
|
|
61
61
|
},
|
|
62
62
|
],
|
|
63
63
|
'eu-central-1': [
|
|
64
64
|
{
|
|
65
65
|
layerArn: 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-remotion-arm64',
|
|
66
|
-
version:
|
|
66
|
+
version: 4,
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
layerArn: 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
|
|
70
|
-
version:
|
|
70
|
+
version: 4,
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
layerArn: 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-chromium-arm64',
|
|
74
|
-
version:
|
|
74
|
+
version: 4,
|
|
75
75
|
},
|
|
76
76
|
],
|
|
77
77
|
'eu-west-1': [
|
|
78
78
|
{
|
|
79
79
|
layerArn: 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-remotion-arm64',
|
|
80
|
-
version:
|
|
80
|
+
version: 4,
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
layerArn: 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
|
|
84
|
-
version:
|
|
84
|
+
version: 4,
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
layerArn: 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-chromium-arm64',
|
|
88
|
-
version:
|
|
88
|
+
version: 4,
|
|
89
89
|
},
|
|
90
90
|
],
|
|
91
91
|
'eu-west-2': [
|
|
92
92
|
{
|
|
93
93
|
layerArn: 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-remotion-arm64',
|
|
94
|
-
version:
|
|
94
|
+
version: 4,
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
layerArn: 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
|
|
98
|
-
version:
|
|
98
|
+
version: 4,
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
layerArn: 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-chromium-arm64',
|
|
102
|
-
version:
|
|
102
|
+
version: 4,
|
|
103
103
|
},
|
|
104
104
|
],
|
|
105
105
|
'us-east-1': [
|
|
106
106
|
{
|
|
107
107
|
layerArn: 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-remotion-arm64',
|
|
108
|
-
version:
|
|
108
|
+
version: 8,
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
layerArn: 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-ffmpeg-arm64',
|
|
112
|
-
version:
|
|
112
|
+
version: 8,
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
layerArn: 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-chromium-arm64',
|
|
116
|
-
version:
|
|
116
|
+
version: 8,
|
|
117
117
|
},
|
|
118
118
|
],
|
|
119
119
|
'us-east-2': [
|
|
120
120
|
{
|
|
121
121
|
layerArn: 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-remotion-arm64',
|
|
122
|
-
version:
|
|
122
|
+
version: 4,
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
layerArn: 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
|
|
126
|
-
version:
|
|
126
|
+
version: 4,
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
layerArn: 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-chromium-arm64',
|
|
130
|
-
version:
|
|
130
|
+
version: 4,
|
|
131
131
|
},
|
|
132
132
|
],
|
|
133
133
|
'us-west-2': [
|
|
134
134
|
{
|
|
135
135
|
layerArn: 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-remotion-arm64',
|
|
136
|
-
version:
|
|
136
|
+
version: 4,
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
layerArn: 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-ffmpeg-arm64',
|
|
140
|
-
version:
|
|
140
|
+
version: 4,
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
layerArn: 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-chromium-arm64',
|
|
144
|
-
version:
|
|
144
|
+
version: 4,
|
|
145
145
|
},
|
|
146
146
|
],
|
|
147
147
|
},
|
|
@@ -149,141 +149,141 @@ exports.hostedLayers = {
|
|
|
149
149
|
'ap-northeast-1': [
|
|
150
150
|
{
|
|
151
151
|
layerArn: 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-remotion-x86_64',
|
|
152
|
-
version:
|
|
152
|
+
version: 4,
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
layerArn: 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
|
|
156
|
-
version:
|
|
156
|
+
version: 4,
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
layerArn: 'arn:aws:lambda:ap-northeast-1:678892195805:layer:remotion-binaries-chromium-x86_64',
|
|
160
|
-
version:
|
|
160
|
+
version: 4,
|
|
161
161
|
},
|
|
162
162
|
],
|
|
163
163
|
'ap-south-1': [
|
|
164
164
|
{
|
|
165
165
|
layerArn: 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-remotion-x86_64',
|
|
166
|
-
version:
|
|
166
|
+
version: 4,
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
layerArn: 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
|
|
170
|
-
version:
|
|
170
|
+
version: 4,
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
layerArn: 'arn:aws:lambda:ap-south-1:678892195805:layer:remotion-binaries-chromium-x86_64',
|
|
174
|
-
version:
|
|
174
|
+
version: 4,
|
|
175
175
|
},
|
|
176
176
|
],
|
|
177
177
|
'ap-southeast-1': [
|
|
178
178
|
{
|
|
179
179
|
layerArn: 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-remotion-x86_64',
|
|
180
|
-
version:
|
|
180
|
+
version: 4,
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
layerArn: 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
|
|
184
|
-
version:
|
|
184
|
+
version: 4,
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
187
|
layerArn: 'arn:aws:lambda:ap-southeast-1:678892195805:layer:remotion-binaries-chromium-x86_64',
|
|
188
|
-
version:
|
|
188
|
+
version: 4,
|
|
189
189
|
},
|
|
190
190
|
],
|
|
191
191
|
'ap-southeast-2': [
|
|
192
192
|
{
|
|
193
193
|
layerArn: 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-remotion-x86_64',
|
|
194
|
-
version:
|
|
194
|
+
version: 4,
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
layerArn: 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
|
|
198
|
-
version:
|
|
198
|
+
version: 4,
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
layerArn: 'arn:aws:lambda:ap-southeast-2:678892195805:layer:remotion-binaries-chromium-x86_64',
|
|
202
|
-
version:
|
|
202
|
+
version: 4,
|
|
203
203
|
},
|
|
204
204
|
],
|
|
205
205
|
'eu-central-1': [
|
|
206
206
|
{
|
|
207
207
|
layerArn: 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-remotion-x86_64',
|
|
208
|
-
version:
|
|
208
|
+
version: 4,
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
layerArn: 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
|
|
212
|
-
version:
|
|
212
|
+
version: 4,
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
layerArn: 'arn:aws:lambda:eu-central-1:678892195805:layer:remotion-binaries-chromium-x86_64',
|
|
216
|
-
version:
|
|
216
|
+
version: 4,
|
|
217
217
|
},
|
|
218
218
|
],
|
|
219
219
|
'eu-west-1': [
|
|
220
220
|
{
|
|
221
221
|
layerArn: 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-remotion-x86_64',
|
|
222
|
-
version:
|
|
222
|
+
version: 4,
|
|
223
223
|
},
|
|
224
224
|
{
|
|
225
225
|
layerArn: 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
|
|
226
|
-
version:
|
|
226
|
+
version: 4,
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
layerArn: 'arn:aws:lambda:eu-west-1:678892195805:layer:remotion-binaries-chromium-x86_64',
|
|
230
|
-
version:
|
|
230
|
+
version: 4,
|
|
231
231
|
},
|
|
232
232
|
],
|
|
233
233
|
'eu-west-2': [
|
|
234
234
|
{
|
|
235
235
|
layerArn: 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-remotion-x86_64',
|
|
236
|
-
version:
|
|
236
|
+
version: 4,
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
239
|
layerArn: 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
|
|
240
|
-
version:
|
|
240
|
+
version: 4,
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
layerArn: 'arn:aws:lambda:eu-west-2:678892195805:layer:remotion-binaries-chromium-x86_64',
|
|
244
|
-
version:
|
|
244
|
+
version: 4,
|
|
245
245
|
},
|
|
246
246
|
],
|
|
247
247
|
'us-east-1': [
|
|
248
248
|
{
|
|
249
249
|
layerArn: 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-remotion-x86_64',
|
|
250
|
-
version:
|
|
250
|
+
version: 8,
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
layerArn: 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
|
|
254
|
-
version:
|
|
254
|
+
version: 8,
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
257
|
layerArn: 'arn:aws:lambda:us-east-1:678892195805:layer:remotion-binaries-chromium-x86_64',
|
|
258
|
-
version:
|
|
258
|
+
version: 8,
|
|
259
259
|
},
|
|
260
260
|
],
|
|
261
261
|
'us-east-2': [
|
|
262
262
|
{
|
|
263
263
|
layerArn: 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-remotion-x86_64',
|
|
264
|
-
version:
|
|
264
|
+
version: 4,
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
267
|
layerArn: 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
|
|
268
|
-
version:
|
|
268
|
+
version: 4,
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
271
|
layerArn: 'arn:aws:lambda:us-east-2:678892195805:layer:remotion-binaries-chromium-x86_64',
|
|
272
|
-
version:
|
|
272
|
+
version: 4,
|
|
273
273
|
},
|
|
274
274
|
],
|
|
275
275
|
'us-west-2': [
|
|
276
276
|
{
|
|
277
277
|
layerArn: 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-remotion-x86_64',
|
|
278
|
-
version:
|
|
278
|
+
version: 4,
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
281
|
layerArn: 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-ffmpeg-x86_64',
|
|
282
|
-
version:
|
|
282
|
+
version: 4,
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
285
|
layerArn: 'arn:aws:lambda:us-west-2:678892195805:layer:remotion-binaries-chromium-x86_64',
|
|
286
|
-
version:
|
|
286
|
+
version: 4,
|
|
287
287
|
},
|
|
288
288
|
],
|
|
289
289
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pLimit: (concurrency: number) => <Arguments extends unknown[], ReturnType_1>(fn: (..._arguments: Arguments) => ReturnType_1 | PromiseLike<ReturnType_1>, ...args: Arguments) => Promise<ReturnType_1>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pLimit = void 0;
|
|
4
|
+
const pLimit = (concurrency) => {
|
|
5
|
+
const queue = [];
|
|
6
|
+
let activeCount = 0;
|
|
7
|
+
const next = () => {
|
|
8
|
+
var _a;
|
|
9
|
+
activeCount--;
|
|
10
|
+
if (queue.length > 0) {
|
|
11
|
+
(_a = queue.shift()) === null || _a === void 0 ? void 0 : _a();
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const run = async (fn, resolve, ...args) => {
|
|
15
|
+
activeCount++;
|
|
16
|
+
// eslint-disable-next-line require-await
|
|
17
|
+
const result = (async () => fn(...args))();
|
|
18
|
+
resolve(result);
|
|
19
|
+
try {
|
|
20
|
+
await result;
|
|
21
|
+
}
|
|
22
|
+
catch (_a) { }
|
|
23
|
+
next();
|
|
24
|
+
};
|
|
25
|
+
const enqueue = (fn, resolve, ...args) => {
|
|
26
|
+
queue.push(() => run(fn, resolve, ...args));
|
|
27
|
+
(async () => {
|
|
28
|
+
var _a;
|
|
29
|
+
// This function needs to wait until the next microtask before comparing
|
|
30
|
+
// `activeCount` to `concurrency`, because `activeCount` is updated asynchronously
|
|
31
|
+
// when the run function is dequeued and called. The comparison in the if-statement
|
|
32
|
+
// needs to happen asynchronously as well to get an up-to-date value for `activeCount`.
|
|
33
|
+
await Promise.resolve();
|
|
34
|
+
if (activeCount < concurrency && queue.length > 0) {
|
|
35
|
+
(_a = queue.shift()) === null || _a === void 0 ? void 0 : _a();
|
|
36
|
+
}
|
|
37
|
+
})();
|
|
38
|
+
};
|
|
39
|
+
const generator = (fn, ...args) => new Promise((resolve) => {
|
|
40
|
+
enqueue(fn, resolve, ...args);
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperties(generator, {
|
|
43
|
+
activeCount: {
|
|
44
|
+
get: () => activeCount,
|
|
45
|
+
},
|
|
46
|
+
pendingCount: {
|
|
47
|
+
get: () => queue.length,
|
|
48
|
+
},
|
|
49
|
+
clearQueue: {
|
|
50
|
+
value: () => {
|
|
51
|
+
queue.length = 0;
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
return generator;
|
|
56
|
+
};
|
|
57
|
+
exports.pLimit = pLimit;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/lambda",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-imgloading.2+74c22dab1",
|
|
4
4
|
"description": "Distributed renderer for Remotion based on AWS Lambda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"@aws-sdk/client-service-quotas": "3.58.0",
|
|
32
32
|
"@aws-sdk/lib-storage": "3.58.0",
|
|
33
33
|
"@aws-sdk/s3-request-presigner": "3.58.0",
|
|
34
|
-
"@remotion/bundler": "4.0.0-
|
|
35
|
-
"@remotion/cli": "4.0.0-
|
|
36
|
-
"@remotion/renderer": "4.0.0-
|
|
34
|
+
"@remotion/bundler": "4.0.0-imgloading.2+74c22dab1",
|
|
35
|
+
"@remotion/cli": "4.0.0-imgloading.2+74c22dab1",
|
|
36
|
+
"@remotion/renderer": "4.0.0-imgloading.2+74c22dab1",
|
|
37
37
|
"aws-policies": "^1.0.1",
|
|
38
38
|
"dotenv": "^10.0.0",
|
|
39
|
+
"mime-types": "2.1.34",
|
|
39
40
|
"minimist": "1.2.6",
|
|
40
|
-
"
|
|
41
|
-
"remotion": "4.0.0-fastlambda.9+8c78f400e"
|
|
41
|
+
"remotion": "4.0.0-imgloading.2+74c22dab1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": ">=16.8.0",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@jonny/eslint-config": "3.0.259",
|
|
49
49
|
"@types/jest": "^27.0.2",
|
|
50
|
+
"@types/mime-types": "2.1.1",
|
|
50
51
|
"@types/minimist": "1.2.2",
|
|
51
52
|
"@types/node": "^14.14.14",
|
|
52
53
|
"@types/prompt": "^1.1.0",
|
|
@@ -63,5 +64,5 @@
|
|
|
63
64
|
"publishConfig": {
|
|
64
65
|
"access": "public"
|
|
65
66
|
},
|
|
66
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "74c22dab17f36d4d233f8b0304a3252cd05bab21"
|
|
67
68
|
}
|
package/remotionlambda.zip
CHANGED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-lambda.d.ts","sourceRoot":"","sources":["../../src/admin/bundle-lambda.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-lambda.js","sourceRoot":"","sources":["../../src/admin/bundle-lambda.ts"],"names":[],"mappings":";;;;;AAAA,+CAAmD;AACnD,4CAAoB;AACpB,gDAAwB;AACxB,8CAAyC;AACzC,mEAAyD;AACzD,8BAA+B;AAE/B,MAAM,YAAY,GAAG,KAAK,IAAI,EAAE;;IAC/B,MAAM,MAAM,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;IAC1D,YAAE,CAAC,SAAS,CAAC,MAAM,EAAE;QACpB,SAAS,EAAE,IAAI;KACf,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,cAAI,CAAC,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAE9C,CAAC,MAAA,YAAE,CAAC,MAAM,mCAAI,YAAE,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;IACvD,YAAE,CAAC,SAAS,CAAC,MAAM,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;IACxC,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAC/B,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAChD,CAAC;IAEF,MAAM,0BAAgB,CAAC,OAAO,CAAC,KAAK,CAAC;QACpC,QAAQ,EAAE,MAAM;QAChB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,IAAI;QACZ,OAAO;QACP,WAAW,EAAE,CAAC,QAAQ,CAAC;KACvB,CAAC,CAAC;IAEH,MAAM,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,gCAAY,CAAC,CAAC;IAC7C,YAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AACxB,CAAC,CAAC;AAEF,YAAY,EAAE;KACZ,IAAI,CAAC,GAAG,EAAE;IACV,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;AAC/B,CAAC,CAAC;KACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACd,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,IAAA,WAAI,EAAC,CAAC,CAAC,CAAC;AACT,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"make-layer-public.d.ts","sourceRoot":"","sources":["../../src/admin/make-layer-public.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"make-layer-public.js","sourceRoot":"","sources":["../../src/admin/make-layer-public.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bucket-exists.d.ts","sourceRoot":"","sources":["../../src/api/bucket-exists.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAGjD,eAAO,MAAM,oBAAoB;gBAKpB,MAAM;YACV,SAAS;yBACI,MAAM,GAAG,IAAI;sBAkBlC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bucket-exists.js","sourceRoot":"","sources":["../../src/api/bucket-exists.ts"],"names":[],"mappings":";;;AAAA,kDAA4D;AAE5D,uDAAkD;AAE3C,MAAM,oBAAoB,GAAG,KAAK,EAAE,EAC1C,UAAU,EACV,MAAM,EACN,mBAAmB,GAKnB,EAAE,EAAE;;IACJ,IAAI;QACH,MAAM,MAAM,GAAG,MAAM,IAAA,yBAAW,EAAC,MAAM,CAAC,CAAC,IAAI,CAC5C,IAAI,oCAAwB,CAAC;YAC5B,MAAM,EAAE,UAAU;YAClB,mBAAmB,EAAE,mBAAmB,aAAnB,mBAAmB,cAAnB,mBAAmB,GAAI,SAAS;SACrD,CAAC,CACF,CAAC;QAEF,OAAO,CAAC,MAAA,MAAM,CAAC,kBAAkB,mCAAI,WAAW,CAAC,KAAK,MAAM,CAAC;KAC7D;IAAC,OAAO,GAAG,EAAE;QACb,IAAK,GAAsB,CAAC,IAAI,KAAK,cAAc,EAAE;YACpD,OAAO,KAAK,CAAC;SACb;QAED,MAAM,GAAG,CAAC;KACV;AACF,CAAC,CAAC;AAzBW,QAAA,oBAAoB,wBAyB/B"}
|