Question / Help Stream stops a couple of second before I click the "Stop streaming" button

eric.morand

New Member
I know it may seems like a time paradox, but this is actually happening: I'm streaming, then click on the "Stop streaming" button and the live stream lacks the last couple of seconds. Let's say that I count from 1 to 5, and then click on the button at 5, the live stream would stop at 3.

Is this a known issue?
 

koala

Active Member
It may be inevitable. In video encoding, there are full frames, carrying all data from the current video frame, and differential frames that only carry the difference between a full frame and the current video frame. With h.264 encoding, these difference frames don't necessarily depend on the last full frame, they may also depend on the next full frame. They are looking into the future, because the future may be more similar to the present than the past, thus requiring less data to encode the difference, which improves video quality.
If you terminate the stream before this next full frame, the actual encoding and transmission has to stop before this differential future-referencing frame, because this differential frame cannot be visualized - its reference frame will never exist.
 

eric.morand

New Member
Thanks a lot for that explanation, it makes a lot of sense. It means that everybody is aware of that point when streaming? I'm wondering why I never heard of it before.
 
Top