[Live-devel] PATCH RTSP KeepAlive Support.
Derk-Jan Hartman
hartman at videolan.org
Sat Mar 18 16:55:37 PST 2006
On 14-mrt-2006, at 22:35, Ross Finlayson wrote
>>> OK, I've now released a new version (2006.01.27) of the code that
>>> updates "RTSPClient" to:
>>> - allow the "parameterName" parameter to "getMediaSessionParameter
>>> ()" to be NULL
>>> - add a "setUserAgentString()" member function, to allow
>>> clients to
>>> specify an alternative string for "User-Agent:" headers
>>> - parse the optional "timeout" parameter in response "Session:"
>>> headers,
>>> and added a "sessionTimeoutParameter()" member function to
>>> retrieve it.
> [...]
>> I'm not sure what happened to Glen, but i'd like to have this
>> implemented before 0.8.5
>> Ross, do you know the VERSION_INT for this version of liveMedia ?
>
> I don't know for sure, but 2006.01.27 is 1138348800, and 2006.01.24
> (the date of the previous release) is 1138089600.
>
> So, "#ifdef"ing your code to apply only if
> "LIVEMEDIA_LIBRARY_VERSION_INT > 1138250000" should work.
Implemented now, should be available tomorrow.
1: Only enabled the timeout thread in case the timeout option is in
the SETUP response.
2: Only available if the sessionTimeoutParameter() is available in
liveMedia
3: the timeout VLC uses is always 2secs less then the one in the param.
4: I didn't really understood how to use the livemedia taskscheduler,
so i just use a VLC thread.
In the RTSP over tcp mode i did get heavy distortion of the stream
everytime the request was sent though. It looks like the amount of
discarded data is incorrect in some way? Is this expected behaviour?
[00000290] livedotcom private debug: reset the timeout timer
Sending request: GET_PARAMETER rtsp://media.hosting.nob.nl/nob/
nob2005/muziek-800.wmv RTSP/1.0
CSeq: 8
Session: 14810393988383297
User-Agent: VLC Media Player (LIVE555 Streaming Media v2006.03.16)
Discarding interleaved RTP or RTCP packet (8016 bytes, channel id 0)
Discarding interleaved RTP or RTCP packet (8016 bytes, channel id 0)
Discarding interleaved RTP or RTCP packet (8016 bytes, channel id 0)
Discarding interleaved RTP or RTCP packet (8016 bytes, channel id 0)
Received GET_PARAMETER response: RTSP/1.0 200 OK
Date: Sun, 19 Mar 2006 00:41:02 GMT
CSeq: 8
Session: 14810393988383297;timeout=60
Server: WMServer/9.1.1.3814
[00000321] main audio output warning: computed PTS is out of range
(457256), clearing out
[00000321] main audio output warning: PTS is out of range (436232),
dropping buffer
[00000321] main audio output warning: output PTS is out of range
(469334), clearing out
[00000321] main audio output warning: PTS is out of range (343643),
dropping buffer
[00000321] main audio output warning: PTS is out of range (72405),
dropping buffer
[00000321] main audio output warning: PTS is out of range (-20151),
dropping buffer
[00000321] main audio output debug: audio output is starving (91109),
playing silence
[00000321] main audio output warning: output date isn't PTS date,
requesting resampling (-44670)
[00000321] main audio output warning: buffer is 44393 in advance,
triggering downsampling
[00000317] ffmpeg decoder warning: ignoring overflow at 23 2
(wmv2 at 0x3a04200)
[00000317] ffmpeg decoder warning: ac-tex damaged at 5 4
(wmv2 at 0x3a04200)
[00000317] ffmpeg decoder warning:
error while decoding inter block: 5 x 4 (1)
(wmv2 at 0x3a04200)
[00000317] ffmpeg decoder warning: Error at MB: 109
(wmv2 at 0x3a04200)
[00000317] ffmpeg decoder debug: concealing 419 DC, 419 AC, 419 MV
errors
(wmv2 at 0x3a04200)
More information about the live-devel
mailing list