[Live-devel] Need your expertise
hornsby
adrian_hornsby at yahoo.co.uk
Fri May 27 15:00:10 PDT 2005
Hi Ross,
I'm having a problem with the function getNextFrame() and afterGetting(this),
I explain:
I've modified the library to be able to get 2 input mpegTS streams from
multicast addresses wich I can splice on demand and then stream the output to
another multicast address.
I know I shouldn't ask you because I modified the source code but I'm having a
small problem and I dunno have to kick it.
The software isn't for company purposes but for my Ph.d. and will be open
source of course.
So here is my problem.
I'm first getting the first stream :
InputSource1->getNextFrame(xxxx) ////work
-"-
-"-
-"-
//splicing asked
InputSource1->getNextFrame(xxxxx) ///work
afterGettingFrame1()
{
//algo that check where to splice in the fTo buffer
//then copy data from fTo to fTobis //work
//get data to fTo from input2 //work
InputSource2->getNextFrame(xxxxxxx) //doesn't work
//find the right head where to start the stream.
// work but with wrong data
//copy paste work but with wrong data
}
//splicing done
InputSource2->getNextFrame(xxxx) //work
-"-
-"-
-"-
###########
Things work very well but I still don't have perfect splicing as I don't start
the 2nd stream at the right place. The only problem is when I ask
InputSource2->getNextFrame() while in the AfterGettingFrame1, it doesn't
work. The function is called but the data isn't coming from the right input.
I can only successfully call InputSource2->getNextFrame(xxxxx) after the
afterGetting(this) of the afterGettingFrame1 called by the
InputSource1->getNextFrame(xxxx)
Do you know how I could do
InputSource1->getNextFrame(xxxxx) {
afterGettingFrame1() {
InputSource2->getNextFrame(xxxxxx)
afterGetting(this)
}
InputSource2->getNextFrame(xxxx)
Thanks very much for your help.
Adrian
--
##########################
This is all around ...
http://hornsby.freezee.org
##########################
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
More information about the live-devel
mailing list