[MPlayer-dev-eng] A question of RTSP

Fangweiwei fangweiwei at tom.com
Sun Oct 17 04:22:02 CEST 2004


Roberto Togni,hi!

	First, thank you for your help.
    I have changed the source code as you say, I replaced DEMUXER_TYPE_REAL with DEMUXER_TYPE_RTP on line 690 of network.c. And then I recompiled. After that I test the new Mplayer, and it works.
    But I found that, it now doesn't send the "OPTIONS" packet at first.And it directly send "DESCRIBE" packet and start the RTSP session.How could I add the "OPTIONS" packet at first? If I didn't change the network.c, the "OPTIONS" packet will send for testing the RTSP Server if it is a RealMedia Server. Now I just need it send "OPTIONS" packet and receive the respond.

======= 2004-10-16 15:35:00 You Wrote in your letter:=======

>On 2004.10.16 16:19, Fangweiwei wrote:
>> Everyone:
>>     hi!
>>     I use mplayer as a RTSP client. And as you know If you use it to
>> connect the RTSP server, it will judge if the server is the RealMedia
>> Server. And if it's not , it will end this tcp session and start a  
>> new
>> one .(it will need two ports for tcp control) and print out:
>>     --------------------
>>     Not a RealMedia rtsp url. Trying standard rtsp protocol.
>>     .....
>>     --------------------
>>     So Now I need to change it as: Using the starndard rtsp protocol
>> at first.So the TCP control will only need only one port.This is
>> needed by our experiment.
>> 
>>     Can anyone help me ?
>
>If you just need to disable usage of realrtsp, the simple solution is  
>to  replace DEMUXER_TYPE_REAL with DEMUXER_TYPE_RTP on line 690 of  
>network.c (warning: lokks right, but it's not tested)
>
>If you want to use standard rtsp and then real rtsp things get a bit  
>more complex: now standart rtsp is set after realrtsp failure, and ou  
>will have to modify standard rtsp code to set realrtsp on failure.
>
>Ciao,
> Roberto
>
>
>_______________________________________________
>MPlayer-dev-eng mailing list
>MPlayer-dev-eng at mplayerhq.hu
>http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng

= = = = = = = = = = = = = = = = = = = =
			

        Yours Sincerely
 
				 
        Fangweiwei
        fangweiwei at tom.com
          2004-10-17


More information about the MPlayer-dev-eng mailing list