[Live-devel] compilation issue / vcpkg / windows
g.jaegy
g.jaegy at imagine3d.fr
Mon Feb 14 06:53:59 PST 2022
So, you were right.
Setting fPresentationTime using gettimeofday() solves the problem.
Now, this however means the output frame time is not correlated to the time at which the original frame was captured (I'm capturing frames at 30Hz, but possibly the interval between two frames is not 100% constant, reason why I thought using the proper captured frame times would be a better idea to preserve smoothness).
It also means different NALUs from a single frame have different time stamps, which I also thought was not correct.
Do you know any source of information I could use to understand this two points ?
Thanks a lot for your help, really appreciated !
-----Original Message-----
From: live-devel <live-devel-bounces at us.live555.com> On Behalf Of Ross Finlayson
Sent: Monday, February 14, 2022 3:17 PM
To: LIVE555 Streaming Media - development & use <live-devel at us.live555.com>
Subject: Re: [Live-devel] compilation issue / vcpkg / windows
> On Feb 15, 2022, at 2:44 AM, g.jaegy <g.jaegy at imagine3d.fr> wrote:
>
> This all works, until a second client connect. In that case, the first client stop playing.
>
> I must be doing something wrong, but I don't know what.
>
> Would you have any advice or hint that would allow me to find out what is wrong ?
Not really, except to repeat something that I said way back on February 5:
> On Feb 5, 2022, at 5:52 AM, Ross Finlayson <finlayson at live555.com> wrote:
>
>> Only issue I have, when connecting a second client, the video on the first client stops one second later, basically the picture is not updated anymore. VLC statistics still shows newly decoded blocks and displayed frame, time increases, but the picture doesn't change on that first client. I'm using multicast sockets (same as in example). Maybe you have an idea ?
>
> Not really - except to check the “fPresentationTime” values that you’re setting for each NAL unit (in your “FramedSource” subclass). They must be aligned with ‘wall clock’ time - i.e., the times that you’d get by calling “gettimeofday()”.
I notice that your code is setting “fPresentationTime” from your “dNALUTime” variable, which is *not* set by calling “gettimeofday()”. That’s fine, but the “fPresentationTime” values that you set here MUST be the same as the values that you’d get by calling “gettimeofday()”. This is the first thing I’d check.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel
More information about the live-devel
mailing list