SamuelScheit / puppeteer-stream

A Library for puppeteer to retrieve audio and/or video streams
MIT License
335 stars 105 forks source link

Fixed duration of videos #57

Closed DantrazTrev closed 1 year ago

DantrazTrev commented 2 years ago

Currently recording to a file using timeout as a measure leads to inaccurate video lengths depending on the processing that needs to be done . Can there be any alternative here ?

JijaProGamer commented 2 years ago

Can you use ffprobe to get the duration writen to the file metadata? Also, you can try to re-encode it using ffmpeg since that most of the time solves issues with duration for me.

SamuelScheit commented 1 year ago

You can use the fix-webm-duration package to fix the duration of the webm output file.