Hi, I am working on a H264 video framer to stream a h264 file. I did some search on the forum and found Mike did some solid work before. Basically, I wrote a H264 videostream class, which are almost a re-make of Mike's work. However, I have problems to play the stream on VLC. The VLC player will collapse when opening the rtsp stream.
Interestingly, I can use openRTSP test program to receive the stream and stored it into a file. Then the VLC can play the stored file locally. I don't know whether it is a problem of my code or VLC (verylikely it is my code problem). I attached the RTSP response from openRTSP test program. I greatly appreciate if anyone can take a look to see what I missed. Thanks a lot. Best Regards, Tao [r...@localhost testProgs]# ./openRTSP rtsp://192.168.3.118:8554/testStream Sending request: OPTIONS rtsp://192.168.3.118:8554/testStream RTSP/1.0 CSeq: 1 User-Agent: ./openRTSP (LIVE555 Streaming Media v2009.07.09) Received OPTIONS response: RTSP/1.0 200 OK CSeq: 1 Date: Mon, Aug 17 2009 15:48:38 GMT Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER Sending request: DESCRIBE rtsp://192.168.3.118:8554/testStream RTSP/1.0 CSeq: 2 Accept: application/sdp User-Agent: ./openRTSP (LIVE555 Streaming Media v2009.07.09) Received DESCRIBE response: RTSP/1.0 200 OK CSeq: 2 Date: Mon, Aug 17 2009 15:48:38 GMT Content-Base: rtsp://192.168.3.118:8554/testStream/ Content-Type: application/sdp Content-Length: 549 Need to read 549 extra bytes Read 549 extra bytes: v=0 o=- 1250524112264834 1 IN IP4 192.168.3.118 s=Session streamed by "testMPEG4VideoStreamer" i=test.264 t=0 0 a=tool:LIVE555 Streaming Media v2009.07.09 a=type:broadcast a=control:* a=source-filter: incl IN IP4 * 192.168.3.118 a=rtcp-unicast: reflection a=range:npt=0- a=x-qt-text-nam:Session streamed by "testMPEG4VideoStreamer" a=x-qt-text-inf:test.264 m=video 18888 RTP/AVP 96 c=IN IP4 232.246.13.193/255 a=rtpmap:96 H264/90000 a=fmtp:96 packetization-mode=1;profile-level-id=000042;sprop-parameter-sets=h264 a=control:track1 Opened URL "rtsp://192.168.3.118:8554/testStream", returning a SDP description: v=0 o=- 1250524112264834 1 IN IP4 192.168.3.118 s=Session streamed by "testMPEG4VideoStreamer" i=test.264 t=0 0 a=tool:LIVE555 Streaming Media v2009.07.09 a=type:broadcast a=control:* a=source-filter: incl IN IP4 * 192.168.3.118 a=rtcp-unicast: reflection a=range:npt=0- a=x-qt-text-nam:Session streamed by "testMPEG4VideoStreamer" a=x-qt-text-inf:test.264 m=video 18888 RTP/AVP 96 c=IN IP4 232.246.13.193/255 a=rtpmap:96 H264/90000 a=fmtp:96 packetization-mode=1;profile-level-id=000042;sprop-parameter-sets=h264 a=control:track1 Created receiver for "video/H264" subsession (client ports 18888-18889) Sending request: SETUP rtsp://192.168.3.118:8554/testStream/track1 RTSP/1.0 CSeq: 3 Transport: RTP/AVP;multicast;client_port=18888-18889 User-Agent: ./openRTSP (LIVE555 Streaming Media v2009.07.09) Received SETUP response: RTSP/1.0 200 OK CSeq: 3 Date: Mon, Aug 17 2009 15:48:38 GMT Transport: RTP/AVP;multicast;destination=232.246.13.193;source=192.168.3.118;port=18888-18889;ttl=255 Session: 1 Setup "video/H264" subsession (client ports 18888-18889) Created output file: "video-H264-1" Sending request: PLAY rtsp://192.168.3.118:8554/testStream/ RTSP/1.0 CSeq: 4 Session: 1 Range: npt=0.000- User-Agent: ./openRTSP (LIVE555 Streaming Media v2009.07.09) Received PLAY response: RTSP/1.0 200 OK CSeq: 4 Date: Mon, Aug 17 2009 15:48:38 GMT Range: npt=0.000- Session: 1 RTP-Info: url=rtsp://192.168.3.118:8554/testStream/track1;seq=64206;rtptime=3045038948 Started playing session Receiving streamed data (signal with "kill -HUP 10252" or "kill -USR1 10252" to terminate)... _______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel