From: Ben Evans <[EMAIL PROTECTED]>
Subject: Re: When and how often does a file format's GetPacket method called?
> Hi,
>
> I have written a file format plugin. The first version works and now I want
> to split up my packets into smaller chunks. What I don't understand is how
> Real decides how often my GetPacket method gets called. Does anybody know
> how this works?
The answer is that it depends on the bitrate that you specify.
In the stream header, there is a field labled "AvgBitRate"
The rate that GetPacket is called depends on the number of bytes that
you put into a packet. For example, if you have a bitrate of 800 bits
per second and you put 10 bytes into each packet, GetPacket will be
called 10 times a second (assuming 8 bits to the byte).
When streaming the RealServer will try and stream data at 110% (I think)
of your specified bitrate. It assumes that there will be some latency
or packet loss, etc. between the player and server.
> How can I stream smaller packets and control when they get received?
The packets are recieved by the rendering plugins at as close to the
specified bitrate as possible.
--
"capital punishment is our society's
recognition of the sanctity of human life."
Sen. Orrin Hatch
Ben Evans
BitPoet
[EMAIL PROTECTED]
*******************************************************
The RealForum is an email discussion group focused on using RealNetworks
products. The RealForum is a place to post messages about the best methods
for creating content using RealNetworks technologies and the planning and
implementation of streaming-media web sites. Archives of RealForum can
be found at http://realforum.real.com
If you ever want to remove yourself from this mailing list,
you can send mail to <[EMAIL PROTECTED]> with the following
command in the body of your email message:
unsubscribe realforum
or from another account, besides the address you subscribed with:
unsubscribe realforum <[EMAIL PROTECTED]>