question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RangeError [ERR_FS_FILE_TOO_LARGE]

See original GitHub issue

Trying to get the GoPro telemetry data for a 4GB video using the sample code:

const gpmfExtract = require('gpmf-extract');
const goproTelemetry = require(`gopro-telemetry`);
const fs = require('fs');

const file = fs.readFileSync('path_to_your_file.mp4');

gpmfExtract(file)
  .then(extracted => {
    let telemetry = goproTelemetry(extracted);
    fs.writeFileSync('output_path.json', JSON.stringify(telemetry));
    console.log('Telemetry saved as JSON');
  })
  .catch(error => console.log(error));

Getting RangeError [ERR_FS_FILE_TOO_LARGE]: File size (4001043636) is greater than possible Buffer: 2147483647 bytes. Is there a way to extract the gpmf data without sync. reading the entire file?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JuanIrachecommented, Apr 20, 2022

Hi @MauriceMorrey . No, the above solutions are still recommended

1reaction
JuanIrachecommented, Jan 24, 2020

@plouj that’s a pretty interesting approach. I hadn’t thought of combining both ffmpeg and gpmf-extract. Ideally there should be an all JS/Nodejs solution, though

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Couldn't read webpack bundle stats... RangeError ...
Couldn't read webpack bundle stats from "/.../stats.json": RangeError [ERR_FS_FILE_TOO_LARGE]: File size (3538152929) is greater than 2 GB.
Read more >
[BUG] RangeError [ERR_FS_FILE_TOO_LARGE]: File size ...
Hi, Am trying to upload a file of more than 2GB in size and getting the below error : RangeError [ERR_FS_FILE_TOO_LARGE]: File size ......
Read more >
RangeError - JavaScript - MDN Web Docs
A RangeError is thrown when trying to pass a value as an argument to a function that does not allow a range that...
Read more >
File size (3472064213) is greater than 2 GB-node.js
[Solved]-RangeError [ERR_FS_FILE_TOO_LARGE]: File size (3472064213) is greater than 2 GB-node.js ... According to this answer on GitHub, 2GB is the limit: That is ......
Read more >
Flutter Error: RangeError (index): Invalid value: Not in range 0 ...
Android : Flutter Error: RangeError (index): Invalid value: Not in range 0..2, inclusive: 3 [ Beautify Your Computer ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found