[Live-devel] Save WMV file from Windows Media Server via RTSP: Almost done.
luwei at tju.edu.cn
luwei at tju.edu.cn
Sun May 4 04:30:03 PDT 2008
Hi,
openRTSP can be used to save wmv stream on windows media server, with some
tricks.
The procedure is:
/openRTSP rtsp://... -S 4
You must get the header of wmv file from SDP data first (pls refer to VLC source
code).
The recorded file like audio-x-asf/video-x-asf contains the data packets of the
wmv file. However, just to splice the header and the video-x-asf together cannot
get a decodable wmv file. (Maybe some server has different settings and you can
succeed in doing so. At least, I have suffered enough doing that.)
The most important trick here is that you should make the length of data packet
equal to 1444 by stuffing some bytes to the end of it.
I have just tested one file and seen the video displayed. I am not sure that the
procedure proposed here works for most cases.
Thank u, Ross. Your tools are very reliable.
More information about the live-devel
mailing list