[Live-devel] save the live video to local video
Ross Finlayson
finlayson at live555.com
Wed Jul 18 06:36:12 PDT 2012
> Howerver, for example, phone A start to live at time 00:00:00, phone B start to play the video at 00:10:00, that cause the test.ts file only save the ts packets from 00:10:00, the before 10 minites packets lost
That's correct. The server doesn't start reading from the stream's input source until the first client requests the stream.
> This is not I wanted. How can I save the live ts packets at the right begin time?
If you want the server to start saving data immediately, then immediately after you start up the server, you could start up a client - perhaps one that's running on the same computer as the server - that reads from the stream. In fact, you could then make this client be the thing that saves the incoming data into a file. If you do that, then you won't need to add any duplication/file saving code to your server (which is a bit of an ugly hack anyway).
>
> Another problem:
> And if I deleted the test.ts, then phone A start to live, phone B start to play, the ts packets will not saved, that is to say, no test.ts file!
> Why?
Because you're deleting the file while it's still open (and being written by the server).
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120718/b151f9f6/attachment.html>
More information about the live-devel
mailing list