WebAV
WebAV copied to clipboard
[Question] Allow requesting video and audio separately from MP4Clip (+ missing frames question)
Hi, I was trying out this library the other day and it looks nice.
However, it seems that MP4Clip only has a single tick(timestamp) function that returns both the video and audio frames. I would like to get the audio and video separately, either via another method or the same one (passing an optional argument). Would this be possible?
Also, it looks like MP4Clip fails to deliver frames every 2 or 3 calls, and I'm not sure if this is by design. This is fine if the video decoder is the only one drawing on the canvas, however if you are drawing the video over a background image, then you'll get a horrible flicker because of the missing frame data.
I added some logging to the "Decode and Play" demo on the website, and this is the output:
When rendering at 60fps, this is the output:
Thanks in advance!