Please Ignore the attached file, if any.
Hi,
Main problem to Integrate Live lib with Directshow filter is the thread
synchronization. To overcome that I define Live Thread as another Worker
thread of DS filter. I got test.mpg stream on VLC player, but not
sequential rendered, meaning I have about 4500 frames that the filter
inserted in a queue. Although my deliverefFrame method process from the
queue only 700 frames, (that explain the video behavior). My
MPEG1or2LiveSource(Subclass of FramedSource) implementation followed by
the new DeviceSource with EventTrigger.
My conclusion is that live thread is not keep-up with the frames
received thread. In order to control live thread I had to subclass in
BasicTaskScheduler0 and implement doEventLoop as a singleStep to avoid
the BasicTaskScheduler0::doEventLoop endless loop.
Question:
1) Is it right to call delivered frame from doGetNextFrame this way?
if (!gOutputQueue->empty()) // Queue is Not empty, deliver frame.
deliverFrame();
2) If yes for the previous question and I'm using the triggerEvent for
every frame I'm pushing to the queue. deliverFrame method is called from
doGetNextFrame also from the triggerEvent in SingleStep method, it does
not make sense?
myCAMThread_RTSP.scheduler->triggerEvent(MPEG1or2LiveSource::eventTrigge
rId,myCAMThread_RTSP.mpeg1or2LiveSource);
3) In order to synchronize between the pulling and pushing of the frames
in the queue should I consider changing MAX_SCHEDULER_GRANULARITY of
schedulerTickTask?
Thanks
Eyal
**********************************************************************************************
LEGAL NOTICE - Unless expressly stated otherwise, this message, its annexes,
attachments, appendixes,
any subsequent correspondence, and any document, data, sketches, plans and/or
other material that is
hereby attached, are proprietary. confidential and may be legally privileged.
Nothing in this e-mail is intended to conclude a contract on behalf of
Aeronautics or
make it subject to any other legally binding commitments, unless the e-mail
contains an express statement to the contrary or incorporates a formal Purchase
Order.
This transmission is intended for the named addressee only. Unless you are the
named addressee (or
authorised to receive it for the addressee) you may not copy or use it, or
disclose it to anyone else, any
disclosure or copying of the contents of this e-mail or any action taken (or
not taken) in reliance on it is
unauthorised and may be unlawful. If you are not an addressee, please inform
the sender immediately.
IMPORTANT: The contents of this email and any attachments are confidential.
They are intended for the
named recipient(s) only.
If you have received this email in error, please notify the system manager or
the sender immediately and do
not disclose the contents to anyone or make copies thereof.
*** eSafe scanned this email for viruses, vandals, and malicious content. ***
**********************************************************************************************
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel