Closed vjeux closed 1 year ago
cc @dalecurtis
The "always pass the right duration" code seems incorrect. You log sampleDuration
but still set inputFrame.duration
as duration
on the input VideoFrame
-- is that just a typo or is that how the logs were generated?
Repro:
What is happening on Chrome 108.0.5359.124 current prod version:
InputFrame gets to 16666 after a while but chunk is always 0.
Click to see the logs
``` inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null <3> inputFrame 16666 inputFrame null <10> inputFrame 16666 chunk 0 <14> inputFrame 16666 chunk 0 <16> inputFrame 16666 chunk 0 <15> inputFrame 16666 chunk 0 <20> inputFrame 16666 chunk 0 <16> inputFrame 16666 chunk 0 <16> inputFrame 16666 chunk 0 <14> inputFrame 16666 chunk 0 inputFrame 16666 inputFrame 21028 <2> inputFrame 16666 <269> chunk 0 ```What is happening on Chrome 111.0.5514.0 Canary:
It is better but still not working as expected. There's no change in terms of inputFrame, but chunk eventually gets to 16666.
Click to see the logs
``` inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null inputFrame null chunk 0 inputFrame null <3> inputFrame 16666 inputFrame null <6> inputFrame 16666 chunk 0 <12> inputFrame 16666 chunk 0 <14> inputFrame 16666 chunk 0 <14> inputFrame 16666 chunk 0 <11> inputFrame 16666 chunk 0 <19> inputFrame 16666 chunk 0 <16> inputFrame 16666 chunk 0 <14> inputFrame 16666 chunk 0 <15> inputFrame 16666 chunk 0 inputFrame 16666 inputFrame 21028 <2> inputFrame 16666 <134> chunk 0 <3> chunk 16666 chunk 0 <122> chunk 16666 chunk 21028 <2> chunk 16666 ```That said, if you always pass in the right duration to the encoder, chunk still doesn't always gets the right value.
Click to see the logs
``` <11> inputFrame 16666.666666666668 chunk 0 <12> inputFrame 16666.666666666668 chunk 0 <4> inputFrame 16666.666666666668 chunk 0 <4> inputFrame 16666.666666666668 chunk 0 <4> inputFrame 16666.666666666668 chunk 0 <4> inputFrame 16666.666666666668 chunk 0 <4> inputFrame 16666.666666666668 chunk 0 <4> inputFrame 16666.666666666668 chunk 0 <4> inputFrame 16666.666666666668 chunk 0 <4> inputFrame 16666.666666666668 chunk 0 <4> inputFrame 16666.666666666668 chunk 0 <4> inputFrame 16666.666666666668 chunk 0 <4> inputFrame 16666.666666666668 chunk 0 <4> inputFrame 16666.666666666668 chunk 0 <4> inputFrame 16666.666666666668 chunk 0 <8> inputFrame 16666.666666666668 chunk 0 <8> inputFrame 16666.666666666668 chunk 0 <12> inputFrame 16666.666666666668 chunk 0 <14> inputFrame 16666.666666666668 chunk 0 <17> inputFrame 16666.666666666668 chunk 0 <13> inputFrame 16666.666666666668 chunk 0 <18> inputFrame 16666.666666666668 chunk 0 <14> inputFrame 16666.666666666668 chunk 0 <14> inputFrame 16666.666666666668 chunk 0 <15> inputFrame 16666.666666666668 chunk 0 <16> inputFrame 16666.666666666668 chunk 0 <19> inputFrame 16666.666666666668 chunk 0 <16> inputFrame 16666.666666666668 chunk 0 <15> inputFrame 16666.666666666668 chunk 0 <16> inputFrame 16666.666666666668 chunk 0 <11> inputFrame 16666.666666666668 inputFrame 21028.645833333332 <143> chunk 0 <3> chunk 16666 chunk 0 <122> chunk 16666 chunk 21028 <2> chunk 16666 ```