[Live-devel] openRTSP, how to capture ONVIF metadata stream content?

2019-10-31 Thread p
Hello, This may just be me missing something small / being stupid, but..: when I connect to an RTSP camera stream like so: openRTSP rtsp://USER:PASSWORD@192.168.1.20:5554/live/ch1 part of the output I see is: -- Received 170 new bytes of response data. Received a comp

[Live-devel] what to do about error 104 (Connection reset by peer)?

2019-11-25 Thread p
Hi, I modified testRTSPClient to only process ONVIF metadata from a "smart" camera. In DummySink::afterGettingFrame there's a line: if (strcmp(fSubsession.mediumName(), "application") == 0) { ... after which it processes the metadata. This runs for a short while, after which recvfrom in Gro

[Live-devel] Video from ip camera by private protocol.

2018-03-16 Thread p . gavrya
Hi !I'm just starting to understand the library, help with advice.I get data from the IP CCTV camera on a private video protocol. Data from the camera comes in fragments in real time.In the SDK camera, I register a callback function in which I process the data. After processing this data in the buf

Re: [Live-devel] openRTSP, how to capture ONVIF metadata stream content?

2019-11-01 Thread P. Min
> You could check this for sure by running ?testRTSPClient? (rather than > ?openRTSP?), because ?testRTSPClient? outputs a line for every RTP packet > that it receives. Thanks, that's useful: indeed only seeing video/H264 packets arrive. Do you know of a public test camera that produces a met

Re: [Live-devel] openRTSP, how to capture ONVIF metada stream content?

2019-11-04 Thread P. Min
) thanks again, Patrick -- Message: 1 Date: Fri, 1 Nov 2019 10:32:18 +0100 From: "P. Min" To: live-de...@us.live555.com Subject: Re: [Live-devel] openRTSP, how to capture ONVIF metada stream co

[Live-devel] what to do about error 104 (Connection reset by peer)?

2019-11-25 Thread P. Min
> > This runs for a short while, after which recvfrom in > GroupsockHelper::readSocket returns error 104. > > What does that error number mean on your system? (In other words, what > does it show for error number 104 when you run ?man errno??) "Connection reset by peer" (perror() sho

[Live-devel] what to do about error 104 (Connection reset by peer)?

2019-11-26 Thread P. Min
Another follow-up: it looks like the source stream is flaky. Other clients (like ffmpeg, and yellow.js running under node) also stop after a while. It would be great if there was a way to somehow reconnect to the stream when this happens (I suppose I could just restart the program) _

[Live-devel] Memory Leak while exiting from doEventLoop

2008-10-08 Thread Soumya P N
Hi, In the downloaded code the doEventLoop() was not exiting and it was a infinite loop. Now i changed the code so that it will exit on keyboard hit. Then also it is not exiting properly.I think it is because of some memory leaks. Can anyone give an idea about the resources to be freed while exitin

Re: [Live-devel] Memory Leak while exiting from doEventLoop

2008-10-09 Thread Soumya P N
Hi Ross, In the BasicTaskScheduler::doEventLoop I have added code for exiting on keyboard hit. Now if I am hitting keyboard, it will exit from the loop ,but after that it hangs.I think it may be due to some memory leaks. So if you can help me on the resources to be deleted before forcefully exi

Re: [Live-devel] Unable to stream RTSP using Live555 proxy server

2012-07-05 Thread Kiran P. Thakkar
Hello Ross, I and Saurabh are working on same project. ** ** We tried analyzing into what is happening by using the testRTSPClient as suggested by you and here is the verbose dump of the testRTSPClient: ** ** Opening connection to 10.17.1.111, port 8554... ...remote connection op

Re: [Live-devel] Unable to stream RTSP using Live555 proxy server

2012-07-06 Thread Kiran P. Thakkar
Dear Ross, Thanks for your response. I have dump debug info which you have suggested. Please find log below. LOG INFO-START** *LIVE555 Proxy Server*

Re: [Live-devel] Unable to stream RTSP using Live555 proxy server

2012-07-08 Thread Kiran P. Thakkar
Dear Ross, Thanks for your quick support. It is working now. It also comes to us notice that same type,same setting different camera has different metadata. Regards Kiran On Fri, Jul 6, 2012 at 6:48 PM, Ross Finlayson wrote: > OK, I figured out the problem - it was caused by the nonstandard

[Live-devel] Changing maxPacketSize value for H264VideoRTPSink

2015-07-23 Thread Maxim P. DEMENTIEV
Hello, Currently I'm working on improving an RTSP/RTCP/RTP server based on Live library which transmits the live H264 stream in HD resolution. Trying to lower the CPU consumption by the server (the hot-spot was MultiFramedRTPSink::sendNext callback), I increased the maxPacketSize value (by callin

Re: [Live-devel] Changing maxPacketSize value for H264VideoRTPSink

2015-07-24 Thread Maxim P. DEMENTIEV
Thanks for your quick and informative reply! Yes, the LAN - it's exactly my case. I see that the new version of the library is delivered. I'm going to use it and to send back my results of a performance testing. Regards, Max On 07/23/2015 09:39 PM, Ross Finlayson wrote: > Increasing the maximum

Re: [Live-devel] Changing maxPacketSize value for H264VideoRTPSink

2015-07-24 Thread Maxim P. DEMENTIEV
I've added ability to optionally change the packet size with the help of an environment variable, the executable is always the same. (The technical details comes after the stat.) Unfortunately, my application is quite complex, multi-threaded, contains many layers (video4linux, DSP h264 encoder, ..

[Live-devel] RTPSink for a PCM audio subsession

2015-07-29 Thread Maxim P. DEMENTIEV
Hello, We need to broadcast the PCM (S16LE/16000) audio as a separate channel with our RTSP-server. I've found this letter for the AAC format: http://lists.live555.com/pipermail/live-devel/2014-January/017980.html What is a preferred RTPSink class that I should use for this audio format in

Re: [Live-devel] RTPSink for a PCM audio subsession

2015-08-04 Thread Maxim P. DEMENTIEV
Thank you very much, it has worked out. [rtsp @ 0x7f35f8c0] SDP:aq=0KB vq=0KB sq=0B f=0/0 v=0 o=- 137163047 1 IN IP4 0.0.0.0 s=Live session, streamed by LIVE555 i=live?token=1080p_noaudio t=0 0 a=tool:LIVE555 Streaming Media v2015.07.23 a=type:broadcast a=control:* a=range:npt=0-

[Live-devel] RTSP response status codes: 403 Forbidden

2015-12-07 Thread Maxim P. DEMENTIEV
Hi, Sometimes, under some condition I need to reply to the client of my RTSP server - "403 Forbidden". As a temporary solution, I can override (and I do) "Boolean RTSPServer::specialClientAccessCheck(...)" but it gives me "401 Unauthorized" which is not exactly the case, see this link for details

Re: [Live-devel] RTSP response status codes: 403 Forbidden

2015-12-08 Thread Maxim P. DEMENTIEV
Thank you very much, Ross! I think it is possible to do a patch which will not break the old behaviour and let other replies. (And I personally have no doubt that you know better than me how to do it; just as a proposal...) Say, in the header we add another virtual method with the string as a ret

Re: [Live-devel] RTSP response status codes: 403 Forbidden

2015-12-09 Thread Maxim P. DEMENTIEV
ks, Inc. > http://www.live555.com/ > > > ___ > live-devel mailing list > live-devel@lists.live555.com > http://lists.live555.com/mailman/listinfo/live-devel http://lists.live555.com/pipermail/live-devel/2015-December/019794.html [Live-devel] RTSP response status code

[Live-devel] ServerMediaSession::numSubsessions() and fNumStreamStates in RTSPServer::RTSPClientSession::handleCmd_SETUP()

2016-06-29 Thread Maxim P. DEMENTIEV
Hi, A cycle with ServerMediaSubsessionIterator is used in RTSPServer::RTSPClientSession::handleCmd_SETUP() to calculate the value of fNumStreamStates. I wonder why ServerMediaSession::numSubsessions() isn't used for it? Could they have different results? Regards, Max ___

Re: [Live-devel] ServerMediaSession::numSubsessions() and fNumStreamStates in RTSPServer::RTSPClientSession::handleCmd_SETUP()

2016-06-30 Thread Maxim P. DEMENTIEV
On 06/29/2016 11:29 PM, Ross Finlayson wrote: > yes - if a new “ServerMediaSubsession” object happened to be added to the > “ServerMediaSession” So, if a new subsession is added to the session, it should be done with the help of ServerMediaSession::addSubsession(subsession) method which increases

Re: [Live-devel] minor bug on windows implementation ofgettimeofday()

2009-04-02 Thread I-McMahon, Andrew P
on windows implementation ofgettimeofday() Quoting Ross Finlayson : > Unfortunately I'm not an expert on Windoze-specific API stuff. You may have a look at vlc times functions : http://git.videolan.org/gitweb.cgi?p=vlc.git;a=blob;f=src/misc/mtime.c;h=0dbb4df578308b38e6e3ff9487b0e9143f11853b;

Re: [Live-devel] Regarding the build

2012-07-03 Thread Erlandsson, Claes P (CERLANDS)
Example with a x64 OS: VS2010: c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ VS2008: c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ I btw use the short path (that you can see with dir /X) to avoid issue with space: c:\PROGRA~2\MICROS~2.0\VC /C From: live-devel-boun...@ns.li

[Live-devel] RTSP - Absolute Time

2012-07-03 Thread Erlandsson, Claes P (CERLANDS)
After doing some testing with openRTSP and looking through the code it appears like "Absolute Time" is currently not supported for RTSP streams. I.e. I can't specify a specific time that the stream should seek to, e.g. Range: clock=20120629T07.00Z, all according to paragraph 3.7 at http://w

[Live-devel] Recording time available?

2012-07-25 Thread Erlandsson, Claes P (CERLANDS)
Is there a way to get the recording timestamp for stored content? When looking at the presentation time that is received with each frame I see that it is matching the current time of the server, but when playing back an archived stream I'm interested in when it was recorded. Can that be found some

Re: [Live-devel] Recording time available?

2012-07-25 Thread Erlandsson, Claes P (CERLANDS)
I find your question confusing, because it wasn't really clear how it relates to our software. Could you please clarify your question, explaining in particular how you are using our software? (Remember that our software can be used to build RTSP clients, RTSP servers, RTSP proxy server

[Live-devel] Design choice

2012-07-27 Thread Erlandsson, Claes P (CERLANDS)
When implementing liveMedia using multiple streams in one process I see two choices: 1. Each stream is kept totally separate. I.e. each stream have their own TaskScheduler, UsageEnvironment, eventLoopWatchVariable and each doEventLoop() is running in a separate thread. 2. The rtspClient's share

[Live-devel] Cleanup problems when passing non-valid URL?

2012-08-02 Thread Erlandsson, Claes P (CERLANDS)
I'm writing a playback client based on the testRTSPClient example. For each new stream to connect to, I setup a new environment, i.e. create new UsageEnvironment, StreamClientState etc. Everything works great and I can start and stop streams multiple times without seeing any issues. There is one e

Re: [Live-devel] RTSP - Absolute Time

2012-08-20 Thread Erlandsson, Claes P (CERLANDS)
FYI, the latest version (2012.08.20) of the "LIVE555 Streaming Media" code adds optional RTSP server and RTSP client support for streams that are indexed by 'absolute' time - i.e., using strings of the form "MMDDTHHMMSSZ" or "MMDDTHHMMSS.Z". Ross Finlayson Ross, Thank you very muc

Re: [Live-devel] RTSP - Absolute Time

2012-08-21 Thread Erlandsson, Claes P (CERLANDS)
- The absolute timestamp I ask for doesn't match what I receive, Many hours off, but at least it's consistent. For what it's worth, this sounds like it could potentially be a time zone issue. I've run into issues in the past where some of the routines I used interpreted my UTC timestamp as

[Live-devel] Re-connection handling

2012-08-31 Thread Erlandsson, Claes P (CERLANDS)
Best possible uptime is essential for the RTSP client I'm implementing. I've therefore looked into how to best handle reconnection if the stream for any reason is disconnected. I noticed fairly quickly that liveMedia is taking care of that really good and there is no reason for me to try to impleme

Re: [Live-devel] Re-connection handling

2012-08-31 Thread Erlandsson, Claes P (CERLANDS)
There is one case where it doesn't work though, and I'm not sure how to handle it. This is if I do a seek while the stream is disconnected, then it never reconnects. In some cases I play a 10s loop where a timer do a seek every 10s and jumps back (using absolute seeking). Those streams never reconn

Re: [Live-devel] Possible bug (and fix)?

2012-09-07 Thread Erlandsson, Claes P (CERLANDS)
Thanks for the report. I have now installed a new version (2012.09.07) that should fix the problem (with receiving RTP-over-TCP on Windows). Thanks a lot! (FYI: The bug got accidentally introduced back in version 2012.07.24, when we added a fix to better handle the disconnection of the remote

[Live-devel] Proper function calls from other threads (was: RE: All client termination)

2012-09-11 Thread Erlandsson, Claes P (CERLANDS)
Right now Live555 loop run in separate thread. The clean up function can be called from the another thread No! You cannot safely do this! Read the FAQ (that you were asked to do before posting to this mailing list)! Apart from "triggerEvent()" (see below), all calls to LIVE555 code *must*

Re: [Live-devel] Proper function calls from other threads (was: RE: All client termination)

2012-09-11 Thread Erlandsson, Claes P (CERLANDS)
The code example below is called from an external thread. Is that ok No - absolutely not!!! What you're trying to do - call "TaskScheduler::scheduleDelayedTask()" from an external thread - is extremely wrong! Look folks, how many times do I have to say this: A LIVE555 application runs as

Re: [Live-devel] Proper function calls from other threads (was: RE: All client termination)

2012-09-12 Thread Erlandsson, Claes P (CERLANDS)
One last question on this, as I'm in the middle of reorganizing the code. Shouldn't it be safe to create the rtspClient object in another thread? Once again, NO! "RTSPClient" objects - like all subclasses of class "Medium" - update shared data structures (stored within the "UsageEnvironment"

Re: [Live-devel] Re-connection handling

2012-09-14 Thread Erlandsson, Claes P (CERLANDS)
There is one case where it doesn't work though, and I'm not sure how to handle it. This is if I do a seek while the stream is disconnected, then it never reconnects. In some cases I play a 10s loop where a timer do a seek every 10s and jumps back (using absolute seeking). Those streams never reconn

Re: [Live-devel] Re-connection handling

2012-09-17 Thread Erlandsson, Claes P (CERLANDS)
This is the first time you've mentioned an exception. (Previously, you said just that the stream failed to reconnect afterwards.) I've attached a modified version of our "testRTSPClient.cpp" demo application. It starts playing the specified stream - as usual - but then, after 60 seconds, send

[Live-devel] Client connection timeout

2012-09-27 Thread Erlandsson, Claes P (CERLANDS)
When connecting to a server that doesn't respond, or is just slow, the timeout appears to be around 25s, i.e. the time before the response handler is called. Is there a way to decrease this time? Why? Well, in the project I'm working on there are lots of changing cameras that are on a 10s c

[Live-devel] Properly shutting down stream after TEARDOWN

2012-10-10 Thread Erlandsson, Claes P (CERLANDS)
Lately I've seen some random exceptions when streams are being shut down. I believe these were introduced when I changed the code so it waits for a TEARDOWN response. This was btw done as Cisco mentioned their server requires that. I'm probably doing something wrong, as it appears the error happen

[Live-devel] Possible to disable use of RTCP?

2012-10-15 Thread Erlandsson, Claes P (CERLANDS)
Cisco has confirmed a bug in their VSM-server (v6.3.2) when using RTSP. To get around the bug we've been told to "disabling the use of RTCP when they setup the playback sessions. This is done by only specifying one client port (the RTP port) on the SETUP request. As the sessions are only kept up fo

[Live-devel] TEARDOWN issue when using response handler

2012-11-08 Thread Erlandsson, Claes P (CERLANDS)
I'm using the liveMedia (2012.11.05) connecting to a Cisco VSM (version 6.3.2-47d). The server, as I've mentioned in a previous post, requires the client to wait for the TEARDOWN-response, otherwise the server logs will be filled with errors and things will eventually go bad. This can arguably be c

Re: [Live-devel] TEARDOWN issue when using response handler

2012-11-08 Thread Erlandsson, Claes P (CERLANDS)
a method from the wrong thread, usually inadvertently. Matt S. On Thursday, November 08, 2012 10:26:16 AM, Erlandsson, Claes P (CERLANDS) wrote: > I'm using the liveMedia (2012.11.05) connecting to a Cisco VSM > (version 6.3.2-47d). The server, as I've mentioned in a previous pos

[Live-devel] Windows make-files broken

2013-01-04 Thread Erlandsson, Claes P (CERLANDS)
When downloading and building the latest version (2012-01-04) on Windows I ran into problems. I get a fatal error for all projects. Example for liveMedia: liveMedia.mak(54) : fatal error U1036: syntax error : too many names to left of '=' Stop. I noticed Makefile.tail has changed re

[Live-devel] Unhandled exception during TEARDOWN

2013-01-09 Thread Erlandsson, Claes P (CERLANDS)
I experience an issue with TEARDOWN that I can't resolve. I've attached an example (testRTSPClientCycleStreams.cpp) that for me results in an Unhandled exception after a while; it usually happens after 10 minutes to an hour. The example is the testRTSPClient example with some modifications to cycl

Re: [Live-devel] Unhandled exception during TEARDOWN

2013-01-10 Thread Erlandsson, Claes P (CERLANDS)
I ran your modified application for several hours (on FreeBSD, under GDB), and also on Linux using "valgrind", but unfortunately was unable to find any problem. I suspect that whatever bug is causing this is something that (for some reason) is causing an exception only in your environment. I'm

Re: [Live-devel] Unhandled exception during TEARDOWN

2013-01-11 Thread Erlandsson, Claes P (CERLANDS)
Included the attachment I was mentioning below... It shows the last minute or so of the output from the modified testRTSPClient. /Claes Thanks a lot for taking the time to test it. I'm not really sure how to proceed, but I guess I can try to locate a Linux client to compile and ru

[Live-devel] Windows build, some projects failing

2013-01-18 Thread Erlandsson, Claes P (CERLANDS)
fyi: While downloading and compiling the latest (live.2013.01.15.tar) code I noticed testProgs, mediaServer and proxyServer still fails on Windows, i.e. Makefile.tail contains ?= which nmake doesn't like: PREFIX ?= /usr/local /Claes smime.p7s Description: S/MIME cryptographic signature

Re: [Live-devel] Unhandled exception during TEARDOWN

2013-01-23 Thread Erlandsson, Claes P (CERLANDS)
hat I've seen recommended are - "Dr. Memory": http://code.google.com/p/drmemory/ - "OllyDbg":http://ollydbg.de/ Thanks. Never heard of those two, but will look into. I would also suspect threads going havoc, but as liveMedia is singl

[Live-devel] Connection failure - socket error 10057

2013-02-20 Thread Erlandsson, Claes P (CERLANDS)
Once in a while, about 1 out of maybe 3000 connections, I notice a connection failure. The client runs on Windows. The DESCRIBE response handler receives resultCode -10057 and resultString "Unknown error". I first suspected the server was to blame by not responding, but when I look at socket er

[Live-devel] Confirm absolute time playing position on startup

2013-03-20 Thread Erlandsson, Claes P (CERLANDS)
In the following examples I'm writing about streams that are (in the code) referred to as indexed by 'absolute' time. For video storage and security I believe they're often referred to as archive streams. Seeking while already streaming When doing a "seek" while the stream is playing, i.e.

Re: [Live-devel] Confirm absolute time playing position on startup

2013-03-22 Thread Erlandsson, Claes P (CERLANDS)
Is this intended, or is it somehow server dependent? I don't know. Please show the complete RTSP protocol exchange for each case, so I can try to figure out what's happening. I've attached the protocol exchange for the following example: 1. Start up an archive stream without any ti

[Live-devel] Trick-play - Reverse

2013-04-19 Thread Erlandsson, Claes P (CERLANDS)
Can someone confirm if reverse play works fine? Whenever I supply a negative scale value to the Play-function it always plays forward. The speed is correct, but I've never been able to play in reverse. It might be some RTSP fluke with the Cisco VSM server we're using, but wanted to verify i

Re: [Live-devel] Trick-play - Reverse

2013-04-19 Thread Erlandsson, Claes P (CERLANDS)
Whenever I supply a negative scale value to the Play-function it always plays forward. The speed is correct, but I've never been able to play in reverse. Don't forget to also specify a non-zero 'start time', so that the server knows where to start reverse-play from. Thanks, I do that. I

Re: [Live-devel] Segmentation fault after TEARDOWN

2013-04-29 Thread Erlandsson, Claes P (CERLANDS)
I unfortunately don't have much more info, but I believe I also experience this issue. Last week I upgraded from 2013.03.07 to 2013.04.23 and we suddenly started to experience program crashes (liveMedia used within a DLL in Windows client streaming mjpeg). I didn't suspect the liveMedia update

[Live-devel] Best way to get video width and height?

2013-05-20 Thread Erlandsson, Claes P (CERLANDS)
I receive a mjpeg stream from a Cisco server. In the SDP I see this line: a=fmtp:26 width=704;height=480;4CIF=1 When looking at fVideoWidth & fVideoHeight in MediaSubsession they are always 0 and it looks like they're only populated if "a=x-dimensions:%d,%d" is found in the SDP. I

[Live-devel] Rare 2s "delay" when viewing live streams

2013-07-15 Thread Erlandsson, Claes P (CERLANDS)
We stream lots of live MJPEG streams using a pretty simple client that is based on the testRTSPClient example. In very rare cases we see a delay/lag that I can't explain. When it happens it is like the live video is delayed 2s. If I at the time start the same stream in VLC and specify a cache o

Re: [Live-devel] Rare 2s "delay" when viewing live streams

2013-07-16 Thread Erlandsson, Claes P (CERLANDS)
Thanks for the confirmation Ross. We do use UDP, i.e. the default, which makes this lag so very strange. I can clearly see all frames being received on the first UDP-port (when viewing ports in use with e.g. TCPView). This 2s lag has been observed three times in total over the last four mon

[Live-devel] Seeing small handle leak when repeatedly starting and stopping event loop

2013-07-19 Thread Erlandsson, Claes P (CERLANDS)
When I start and stop the liveMedia event loop I see a small handle leak in my Windows test client. When looking in Process Explorer I can see the amount of file handles with the name "\Device\Afd" growing. I don't have to stream anything for it to occur, i.e. I just start the event loop and th

Re: [Live-devel] Seeing small handle leak when repeatedly starting and stopping event loop

2013-09-18 Thread Erlandsson, Claes P (CERLANDS)
"\Device\Afd" handles that are increasing. I believe "Afd" stands for Auxiliary Function Driver and that it's related to sockets, but "Afd" is new to me as I've have never come across it before. Any idea where that handle leak originates? Could it be Windows

Re: [Live-devel] Problem with RTSP streaming of HD Camera with Live555Proxyserver

2014-05-12 Thread Erlandsson, Claes P (CERLANDS)
>I try to increase "OutPacketBuffer::maxSize" to 10 or 20 but the >problem it's the same. How big are your frames? I typically see larger frames than that from high resolution cameras and have the buffer set to 50 or 100. /Claes smime.p7s Description: S/MIME cryptographic sign

[Live-devel] GroupsockHelper for Android

2018-10-10 Thread Chase, Brian P [US] (MS)
her '#include's: #ifdef __ANDROID_NDK__ #include #define ANDROID_OLD_NDK __NDK_MAJOR__ < 17 #endif I hope these changes will be useful. I have attached a patch file and resulting source file for clarity. Have a blessed day. Regards, -Brian P. Chase GroupsockHelper_cpp.patch Description: Grou