[Live-devel] Receive MPEG using RTSP over HTTP...
Joseph Lazar
jlazar at xperts.hu
Tue Dec 6 20:20:57 PST 2005
Ross Finlayson wrote:
>
>> I have the following problem. I have an mpeg streamer device (a
>> camera) which delivers a stream via RTSP over HTTP. I want to split
>> the stream up to video and audio, and further the video to GOPs. Is
>> there a way I could do it with live555?
>
>
> Yes, you can use "openRTSP", with the "-T <http-port-number>" option.
> See <http://www.live555.com/openRTSP/#other-options>
For giving a first try I made the following:
./openRTSP -V -T 80 -u root pass rtsp://192.168.7.70/mpeg4/media.sdp
Somehow it could not be authenticated but I don't know why (I cound do
it by hand using the above suppled name and pwd). The output is in the
attachement.
>
> This will give you separate audio and video files. If you wish to
> process just the video stream (to get GOPs), then you can do so using
> the "-v" option, and piping 'stdout' (which will be the video stream
> only) to a filter application that you would write. (This filter
> application might use a modification of "MPEG1or2VideoStreamFramer".)
>
> Alternatively, you could modify the existing "openRTSP"
> ("playCommon.cpp") code to add a filter in front of the "FileSink"
> object (for video data only). In this case, the filter could use a
> modification of "MPEG1or2VideoStreamDiscreteFramer".
>
>
> Ross Finlayson
> Live Networks, Inc. (LIVE555.COM)
> <http://www.live555.com/>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
-------------- next part --------------
Requesting RTSP-over-HTTP tunneling (on port 80)
Sending request: GET /mpeg4/media.sdp HTTP/1.0
User-Agent: ./openRTSP (LIVE555 Streaming Media v2005.11.10)
x-sessioncookie: bf0907c845720d88ddc39a6
Accept: application/x-rtsp-tunnelled
Pragma: no-cache
Cache-Control: no-cache
Received HTTP GET response: HTTP/1.0 401 Unauthorized
Date: Tue, 06 Dec 2005 20:13:57 GMT
Accept-Ranges: bytes
Connection: close
WWW-Authenticate: Basic realm="/"
Content-Type: text/html; charset=ISO-8859-1
Requesting RTSP-over-HTTP tunneling (on port 80)
Sending request: GET /mpeg4/media.sdp HTTP/1.0
User-Agent: ./openRTSP (LIVE555 Streaming Media v2005.11.10)
x-sessioncookie: 360cd1e388ef8816bd46a25
Accept: application/x-rtsp-tunnelled
Pragma: no-cache
Cache-Control: no-cache
Received HTTP GET response: HTTP/1.0 401 Unauthorized
Date: Tue, 06 Dec 2005 20:13:57 GMT
Accept-Ranges: bytes
Connection: close
WWW-Authenticate: Basic realm="/"
Content-Type: text/html; charset=ISO-8859-1
Failed to get a SDP description from URL "rtsp://192.168.7.70/mpeg4/media.sdp": HTTP GET: cannot handle response: HTTP/1.0 401 Unauthorized
More information about the live-devel
mailing list