You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we are capturing browser (Chrome, Electron) video recording and using wallclock as timestamps
cmd=ffmpeg({source: ptpriority: 20}).inputFormat("image2pipe").inputOptions("-use_wallclock_as_timestamps 1").videoCodec("libx264").outputOptions("-preset ultrafast")// where pt is conststream=require("stream")constpt=stream.PassThrough()
The thing is - each frame that arrives from Chrome has its own precise timestamp
chromeProps.screencastFrame = (e) => {
// e.metadata.timestamp is 1563996507.297449 for example
// https://chromedevtools.github.io/devtools-protocol/tot/Page#event-screencastFrame
pt.write(new Buffer(e.data, 'base64'))
}
It would be nice to pass the precise frame timestamp instead of using wallclock timestamps - because frames might arrive slightly late due to CPU being busy. But so far I have not seen any docs on ffmpeg site or here that would match the requirement. Seems it is always either constant frame rate or wallclock timestamps, but never my custom timestamps.
I tried the same with command line ffmpeg and it works correctly (hint: if the problem also happens this way, this is an ffmpeg problem and you're not reporting it to the right place)
The text was updated successfully, but these errors were encountered:
Version information
Code to reproduce
Currently, we are capturing browser (Chrome, Electron) video recording and using wallclock as timestamps
The thing is - each frame that arrives from Chrome has its own precise timestamp
It would be nice to pass the precise frame timestamp instead of using wallclock timestamps - because frames might arrive slightly late due to CPU being busy. But so far I have not seen any docs on
ffmpeg
site or here that would match the requirement. Seems it is always either constant frame rate or wallclock timestamps, but never my custom timestamps.Checklist
The text was updated successfully, but these errors were encountered: