[MPlayer-dev-eng] Re: mplayer UDP port number
Marc Hoffman
mmh at pleasantst.com
Sat Mar 6 15:36:46 CET 2004
Ok what I have done is added a new video out driver for raw video
dumping.
static vo_info_t info =
{
"RAW file eyuv I420",
"raw",
"mmh",
""
};
This has been done in much the same way that pgm files are dumped.
and to use it lets say you type
mplayer tennis.bits -vo raw
Do I just add this file, I don't think I have CVS ACCESS for 1 and
secondly who reviews changes?
On Mar 6, 2004, at 2:23 AM, Ross Finlayson wrote:
>
>> I'm a master student and for my thesis I have to manage the QoS of a
>> multimedia streamig service. My application reserve an amount of
>> bandwtidth
>> for an rtsp session and needs to know in advance on which port the
>> player
>> will receive the flow.
>> I'd like to know if it's possible to set the host UDP port number for
>> an
>> incoming flow in the command line. Is there a way to tell mplayer
>> which port
>> to use?
>
> You will have to modify MPlayer to add a new command-line argument for
> this. Once you've done this, though, you can set the desired client
> port number by modifying "libmpdemux/demux_rtp.cpp" as follows:
>
> Just before the line
> if (!subsession->initiate()) {
> (currently, line 203 in "libmpdemux/demux_rtp.cpp")
> add the following:
> subsession->setClientPortNum(yourDesiredPortNum);
> yourDesiredPortNum += 2;
>
> (The second statement ensures that each subsession (in a RTSP/RTP
> stream that contains multiple (audio+video) subsessions) is given a
> different port number.)
>
> Note also that 'yourDesiredPortNum' must be even (because the next
> (odd) port number is used for RTCP).
>
>
> Ross Finlayson
> LIVE.COM
> <http://www.live.com/>
>
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
More information about the MPlayer-dev-eng
mailing list