gpac / mp4box.js

JavaScript version of GPAC's MP4Box tool
https://gpac.github.io/mp4box.js/
BSD 3-Clause "New" or "Revised" License
1.94k stars 326 forks source link

[question] How to use mp4box.js to cut a video by fixed size? #256

Open radiorz opened 2 years ago

radiorz commented 2 years ago

such as use mp4box.exe in powershell

mp4box -splits 2000000 filename.mp4

how can i do it with mp4box.js

cconcolato commented 2 years ago

mp4box.js and mp4box.exe are not equivalent tools and we are not targeting feature parity. One way to achieve split would be to segment the input file, track for every segment received how much of the input file has been processed and when you have reached the desired amount (time or byte), stop the segmentation.