RangeError [ERR_FS_FILE_TOO_LARGE]
See original GitHub issueTrying 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:
- Created 4 years ago
- Comments:12 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @MauriceMorrey . No, the above solutions are still recommended
@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