Open Jb-Za opened 1 year ago
Hi, No one has any comments for this? Is this really the only solution to make the video seekable?
Edit : https://github.com/SamuelScheit/puppeteer-stream/issues/57
fix-webm-duration seems to work with the blob in memory, for large files it doesn't seem to be the solution.
I tried with mkvmerge which is very fast but it is not very stable with large files
const command = mkvmerge -o "${outputPath}" --clusters-in-meta-seek "${inputPath}"
;
and with ffmpeg which works well is not as fast as mkvmerge
const command = ffmpeg -i "${inputPath}" -vcodec copy -acodec copy "${outputPath}"
;
If you have other ideas, it would be cool to centralize them here
I just discovered the frameSize option which makes my file seekable? you confirm? or something else but recently my video became seekable
My use-case required me to have, mp4 files, at 60fps, and for the video to be seek-able. To my understanding the resulting videos are non-seekable due to the fact that they are originally from a stream, and thus do not have any metadata. The solution that I found is to force metadata into the file.
This is rather slow, and the better option would be to have the encoder (somehow) add the metadata during the recording process.
A disclaimer: I don't know much about the inner workings of chromium recording/streaming, this is simply just a solution that I found that may help someone out.