From: "Clary, Jason" <[EMAIL PROTECTED]>
Subject: RE: Live streaming from AVI with the SDK

OK, well I've got it working real-time now.  I'm calling Sleep() on each
loop where the offset between real-time and video time is too big.
Seems to work great, the only problem I've got now is if you end the app
when encoding is complete, the live stream terminates within two seconds
of when the app closes but the buffering on the server has lagged behind
by upwards of 10 seconds so it cuts off the end of the video.

Is there any way to tell when the build engine is finished sending all
queued data and relinquish control to it so it can finish?  Again,
Sleep() seems to not help.  I even tried looping on a short Sleep() to
see if that would help but it didn't.  But, if I let the main loop
continue without Sleeps and without any further calls to encode, it does
finish.  Very odd.

Again, I do now have a mostly working live broadcast simulator for AVI.
As soon as I work out how to tell when its done sending data before
finishing and releasing resources, I'll be working on setting it up to
encode multiple avi's and looping AVI's.

-----Original Message-----
From: RealForum [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 01, 2000 1:09 PM
Subject: Live streaming from AVI with the SDK


From: "Clary, Jason" <[EMAIL PROTECTED]>
Subject: Live streaming from AVI with the SDK


I have converted the Avicnvt demo application to stream live broadcasts
from the AVI file but no matter what I do, it uses up 100% processor for
input files because the encoder loop has no waiting and it tries to
encode the entire avi file as fast as possible rather than as needed.
It also takes more frames than are needed.  I altered the CWinAVISource
to only send every other frame to the encoder and that seems to make it
go a lot faster without a noticeable decrease in quality (the AVI I'm
testing with is 30fps) but it still does it as fast as possible with
100% CPU on my Xeon 550 development machine.

I've not had much luck finding a way to check if the encoder NEEDS
another frame or not.  Maybe if I watch the time and every pass of the
encoder loop I check the time and look for a frame at that offset.  If
there is one, encode it, otherwise continue to loop.  I'm not sure if
that is the best way to do this, though.

Any suggestions?

Jason S. Clary
PRIMEDIA Workplace Learning
[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]>

Reply via email to