Skip to content

ffmpeg.load(); takes huge amount of memory #83

Description

@actuallyfrank

Describe the bug
After calling ffmpeg.load() it will download https://unpkg.com/@ffmpeg/core@v0.7.1/ffmpeg-core.js which is suppose to be ~25mb. It looks like it is loading this file in the memory multiple times, this results in an out of memory error when transcoding file sizes.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://codepen.io/jeromewu/pen/NWWaMeY
  2. Click on 'choose file' and upload a video.
  3. Open the memory tab in google chrome
  4. See the amount of memory that gets loaded after ffmpeg-core.js is downloaded

Expected behavior
I would expect it to only load ffmpeg-core.js once which results in ~25mb memory usage.

Screenshots
image

Desktop (please complete the following information):

  • Windows
  • Browser Chrome
  • Version 84.0.4147.105 (Official Build) (64-bit)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions