Re: [Live-devel] [PATCH] wis-streamer fixes to work with 3.x.x kernel

2012-09-11 Thread Ross Finlayson
OK, thanks. Updated now. Ross Finlayson Live Networks, Inc. http://www.live555.com/ ___ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel

Re: [Live-devel] [PATCH] make RTSP server librtsp compatible

2012-09-11 Thread Ross Finlayson
Thanks (and special thanks for the detailed explanation in the comment that you included with the patch). I have just installed a new version (2012.09.12) of the "LIVE555 Streaming Media" code that fixes this. Ross Finlayson Live Networks, Inc. http://www.live555.com/

[Live-devel] [PATCH] wis-streamer fixes to work with 3.x.x kernel

2012-09-11 Thread Tamas Vincze
The attached patch enables wis-streamer to work with current 3.x.x kernels. - remove float_t because it's unused and conflicts with math.h - in the Makefile put libliveMedia.a to the first place, otherwise linking fails - make search for the audio device compatible with the current sysfs paths

[Live-devel] [PATCH] make RTSP server librtsp compatible

2012-09-11 Thread Tamas Vincze
The attached patch enables MPlayer using librtsp to connect to the RTSP server. When running mplayer rtsp://10.10.4.10/ then it sends the OPTIONS URL like this: OPTIONS rtsp://10.10.4.10:554 RTSP/1.0 note there's no trailing slash after the port and the current code fails to parse it and

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

2012-09-11 Thread Ross Finlayson
> 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] 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] H.264 in MPEG-2 TS streams roughly at the start

2012-09-11 Thread Mojtaba Nouri
Hi We had the same problem, and we solved it by creating cbr ts files stuffed with NULL packets. The following thread shows the ffmpeg command parameters to create h.264 cbr files: http://stackoverflow.com/questions/7125446/encoding-h-264-cbr-videos-with-ffmpeg Mojtaba Nouri Soroush HighTech Ltd.

Re: [Live-devel] H.264 in MPEG-2 TS streams roughly at the start

2012-09-11 Thread Warren Young
On 9/10/2012 5:51 PM, Warren Young wrote: If you take a guess at the GOP length, you can infer frame rate. I meant bit rate, obviously. We've tried to get a CBR stream out of ffmpeg, just to prove to ourselves that stream variability is the problem. We haven't succeeded. Apparently ffmpeg

Re: [Live-devel] Stuck in singlestep

2012-09-11 Thread Ross Finlayson
> I agree It seems unlikely that it would be stuck in recvfrom() following a > successful select, but it does. Well, if the "makeSocketNonBlocking()" function ("groupsock/GroupsockHelper.cpp", line 171) - which is called for all RTP/RTCP and RTSP sockets - is not working for you, then you're go

Re: [Live-devel] Stuck in singlestep

2012-09-11 Thread Jeff Shanab
I agree It seems unlikely that it would be stuck in recvfrom() following a successful select, but it does. I have proven this with debugging. I checked the windows docs and if the flags are not set correctly on socket creation, the default will block forever. I am looking for where this socket

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

2012-09-11 Thread Ross Finlayson
> 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

[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] Stuck in singlestep

2012-09-11 Thread Ross Finlayson
> I have a problem with pulling RTSP streams that needs to be reliable. If the > stream stops I have a watchdog that times out after 5 seconds and changes my > watch variable so the event loop in basic task scheduler will exit. > > The problem is in one edge case, I have debugged found that the

[Live-devel] Stuck in singlestep

2012-09-11 Thread Jeff Shanab
I have a problem with pulling RTSP streams that needs to be reliable. If the stream stops I have a watchdog that times out after 5 seconds and changes my watch variable so the event loop in basic task scheduler will exit. The problem is in one edge case, I have debugged found that the flag is n

Re: [Live-devel] All client termination

2012-09-11 Thread Ross Finlayson
> Thanks, ill do this. > Is it safe to do the same (code posted above) from "event trigger" - access to > hashtable and shutdown all the clients? I didn't have time to look at your code in detail. However - as I noted in my previous message - the function "shutdownStream()" in "testProgs/testRT

Re: [Live-devel] All client termination

2012-09-11 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* be done within the LIVE555 thread - e.g., from a LIVE555 event handler. > > Now, you may wish to signal t

Re: [Live-devel] All client termination

2012-09-11 Thread Ross Finlayson
> 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*

[Live-devel] All client termination

2012-09-11 Thread Звягинцев Антон
Hello. I am looking for safe code to terminate all active RTSPClient (and their connections) without stopping main Live555 loop. Right now Live555 loop run in separate thread. The clean up function can be called from the another thread and looks like this: void RTSPSession::cleanup() {