Reputation: 561
I've got a Server
that encodes live data and sends it as AVPacket
s, a Client
decodes (H.264
) and previews the data.
Sometimes because of connectivity issues the packets don't arrive at all, get buffered and the Client
gets multiple at the same time.
Now if the Client
decodes all the buffered packets and such gaps repeat multiple times,
the lag keeps growing and the stream is no longer live.
The priority is to keep the stream live over quality and discontinuities.
AVPacket
while decoding?Decoder
to discard packets that are old (maybe old timestamp
)?Upvotes: 1
Views: 303