[Live-devel] OpenRTSP stream delay increasing with time
I am using OpenRTSP to open an RTSP stream (IP Camera) and send it to ffplay using Unix Pipes as input. I see the video playing which is roughly 1 to 1.5 sec delayed than live (Direct RTSP stream view of IP Cam) . here is my command line ./OpenRTSP -v -Q -D 1 -n rtsp://:554/11 | ffplay -loglevel verbose -fflags nobuffer -i pipe:0 Now this delay slowly keeps increasing from 1.5 sec upto 4~5 seconds in about 20 minutes. And I assume it will continue to increase with time. So my questions are :- 1 - what is causing the initial delay ? 2 - Why does that delay keeps increasing ? Is there a way to disable "pre caching" of frames in OpenRTSP ? I compare the delay by watching two videos of the same IP camera. One is configured at angelcam.com and other I view locally via the above command line. Surprisingly, it is always Local stream that gets delayed. Angelcam stream keeps functioning as it started. Any help ? -- Muhammad Ali And Or Logic www.andorlogic.com ___ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel
Re: [Live-devel] OpenRTSP stream delay increasing with time
My next question would be what if some RTP packets are delayed? How will the client behave? Will it wait for "x" seconds and continue. If it waits then there will be a delay that may be carried on to the next time the packets are delayed. Maybe that's where the delay is. On Sep 18, 2014 6:14 PM, "Ross Finlayson" wrote: > I don't know, but it's not "openRTSP". (Our RTSP/RTP client software does > not include any buffering, or significant delay.) The delay is probably > some combination of the OS pipe (i.e., the "!" > > > Oops, I meant 'the "|"', of course (I typed the wrong character). > > ) and "ffplay" itself (i.e., the decoding/rendering overhead). > > > > 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 > > ___ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel
Re: [Live-devel] Open H.264 stream frame by frame
Hi Marcin, You'll have to use libavcodec to get decoded frames ( frame / frame) and then convert the received frame to either Iplimage or Mat whichever you prefer. You can check sample code given under ffmpeg sources to see how you can use libavcodec. On Sep 24, 2014 4:38 PM, "Christiano Belli" wrote: > Hi Marcin, > > Thanks for the response. Where can I get a example of use live555 with > ffmpeg? > > > Att. > > Christiano Belli > Cel.: +55 (41) 8444-7468 > christi...@techideasbrasil.com > > On Wed, Sep 24, 2014 at 3:18 AM, Marcin wrote: > >> Hi, >> Really - i think that you have to decode the stream to get frame-by-frame >> data for further analysis. Soon Ross will reply also that Live555 is not >> responsible for decoding/encoding stream but only for reciving it. >> I think you have to use ffmpeg or libavcodec for example to decode >> bitstream recived by live555 libs and then pass it to analyzing software as >> RAW data. >> Marcin >> >> W dniu 2014-09-24 03:07, Christiano Belli pisze: >> >> Hello, I'm new with live555 and I'm so exciting in learning this. I >> have some questions: >> >> There is a way where I can get the RTSP/H.264 stream from a ip camera >> and get each frame from video to do video analytics with openCV per example. >> >> Does the process to get each frame from a RTSP/H.264 stream need a lot >> of machine resources? >> >> Can I in the same time which I'm analyzing the video, save and live >> streaming the same stream? >> >> All suggestions will help me a lot. >> >> Att. >> >> Christiano Belli >> Cel.: +55 (41) 8444-7468 >> christi...@techideasbrasil.com >> >> >> ___ >> live-devel mailing >> listlive-devel@lists.live555.comhttp://lists.live555.com/mailman/listinfo/live-devel >> >> >> >> ___ >> live-devel mailing list >> live-devel@lists.live555.com >> http://lists.live555.com/mailman/listinfo/live-devel >> >> > > ___ > live-devel mailing list > live-devel@lists.live555.com > http://lists.live555.com/mailman/listinfo/live-devel > > ___ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel
[Live-devel] Audio+Video streams OpenRTSP to FFMPEG
My objective is to use OpenRTSP to receive audio + video stream from IP camera and pass it on to FFMPEG which can then stream it to an RTMP server. I've been using pipe to send stdout to ffmpeg (pipe input source) but that was only a video stream (OpenRTSP -v flag). Now the requirement has come to stream both the audio and video streams. So ofcourse I tried to replace -v with -4 and obviously it failed as they are two separate streams and not a single elementary stream. Am i correct ? So now, what will be the correct way to achieve my objective. I myself am a developer and am not shy to code but I prefer to use something that is already around (if there is). -- Muhammad Ali And Or Logic www.andorlogic.com ___ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel