[Live-devel] hi all help to to do trick mode
Ross Finlayson
finlayson at live555.com
Sun Feb 4 21:09:45 PST 2007
>I am using a simple rtsp client player as referrence from mplayer
>to get stream of ts packets.
>I need to do the trick mode so..
>I am just sending a rtsp command as like this
>
>char * cmdFmt =
> "PLAY %s RTSP/1.0\r\n"
> "CSeq: %d\r\n"
> "Session: 1\r\n"
> "Scale: 2.0\r\n"
> "\r\n";
>
>and In this the scale is given in even number like 2,4,6,8
>but the problem is when I need a FF of 4x and then normal play and
>then RR .. I want to know the Scale parameter is enough to get
>packets.
For 4x FF play, use a scale of 4.0. For normal play, use a scale of
1.0. For reverse play (at normal speed) use a scale of -1.0.
Note, however, that not all servers support scales other than 1.0.
(Ours does though, if you have an index file for each TS file.) The
actual scale that the server implements is returned in the "Scale:"
header that appears in the response to the RTSP "PLAY" command.
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list