I should have finished working through the advice in the FAQ - openRTSP successfully streamed from my cameras with the -t option, and setting the fourth argument of setupSubsession() to true fixed my problems.
I also found that I did not need to specify the video resolution in order to get a proper stream, so I would still be interested in a response to my second question. I apologize for not trying the advice in the FAQ before posting :-) Thanks, Kerry On Thu, Apr 4, 2013 at 10:25 AM, Kerry Loux <lou...@gmail.com> wrote: > Hello, > > I'm just getting started with Live555, and have a couple questions that I > haven't been able to resolve by searching. > > I have successfully compiled a test application that can connect and > stream from this url: > rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov > > I'm using an H264VideoFileSink object and it works just fine. > > If I instead use the url for a local IP camera, I find that > H264VideoFileSink::afterGettingFrame() is not called (and thus my file has > zero size). > > I can stream this url using VLC without any problems (VLC describes the > stream as H264 - MPEG AVC (part 10) (h264)). The SDP string for my camera > is below: > > v=0 > o=- 2251938208 2251938208 IN IP4 0.0.0.0 > s=RTSP Session of ZheJiang Dahua Technology CO.,LTD. > t=0 0 > a=control:* > a=range:npt=now- > a=packetization-supported:DH > m=video 0 RTP/AVP 96 > a=control:trackID=0 > a=framerate:30.000000 > a=rtpmap:96 H264/90000 > a=fmtp:96 > packetization-mode=1;profile-level-id=4D001F;sprop-parameter-sets=Z00AH9oBQBbpUgAAAwACAADAHjAgAB8/4AAIyf973wvCIRq,aM48gA== > m=audio 0 RTP/AVP 8 > a=control:trackID=1 > a=rtpmap:8 PCMA/8000 > > By looking at the SDP string for the working stream, I found that the SDP > from my camera lacks these lines under m=video...: (I modified these to > match the size of the image provided by my camera) > a=cliprect:0,0,1280,720 > a=framesize:96 720-1280 > > I read in the FAQ for openRTSP that the video dimensions are important, so > I tried inserting these into the SDP prior to calling > MediaSession::createNew, and of course it didn't work (this causes my > application to crash - I knew it was a shot in the dark). > > So now my questions: > 1. Any thoughts on why afterGettingFrame() isn't being called? > 2. Do I need to worry about the height and width parameters? I'm guessing > they're included in maybe the sprop-parameter string, and this doesn't > apply to H264 streams (or at least this stream) since VLC doesn't need to > ask me for the resolution. > > Thanks, > > Kerry >
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel