List Info

Thread: RES: Implementing pause on producer




RES: Implementing pause on producer
user name
2008-01-21 13:04:01
Hi, Sujeet,

Thanks for your sugestion.
But I still have a question.
After struggling with it for some days, I still haven't been
able to get a video without "gaps".

When you say I should subtract pause duration from samples,
did you mean something like this?

if(!paused) {
HXT_TIME start;
HXT_TIME end;
pSample->GetTime(&start, &end);
pSample->SetTime(start - pausedTime, end - pausedTime);
//send sample down...
} else {
//update pausedTime
}


Or, is there something else I should do?
Because, I tried it but I still have the "gaps" in
the video, for the time recording was "paused".
If I make a dump of the .RM file (by using rmeditor with -d
option), the samples in the file looks
"continuous", but when played the "gaps"
are noticeable.

Thanks,

    Andeson Luiz Brunozi


-----Mensagem original-----
De: Sujeet Kharkar [mailto:skharkarreal.com]
Enviada em: quinta-feira, 3 de janeiro de 2008 11:13
Para: Anderson Luiz Brunozi; helix-producer-devhelixcommunity.org
Assunto: RE: [Helix-producer-dev] Implementing pause on
producer




I would recommend implementing a pre-filter for dropping
samples during
pause and after resume it should allow samples to flow. 

You would to subtract pause duration from samples of live
input source.

If you are doing input preview then it would continue to
work.

--Sujeet


-----Original Message-----
From: helix-producer-dev-bounceshelixcommunity.org
[mailto:helix-producer-dev-bounceshelixcommunity.org] On
Behalf Of Anderson
Luiz Brunozi
Sent: Thursday, January 03, 2008 6:17 PM
To: helix-producer-devhelixcommunity.org
Subject: [Helix-producer-dev] Implementing pause on
producer

Hello,

I'm trying to implement a kind of pause feature to the
producer.
We want to use the producer, with video preview enabled (the
preview is
already implemented), and at some point, we want to be able
to pause the
recording, but keep the preview being displayed to the
user.
Is it possible to do it?

My first try was to change the rmwriter plugin to stop
writing samples to
the file, but it didn't work quite well.

If possible, I would like to have some advice on how to go
about that. Like,
where is the "right" place to change?


Thanks,

Anderson Luiz Brunozi


_______________________________________________
Helix-producer-dev mailing list
Helix-producer-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listi
nfo/helix-producer-dev


_______________________________________________
Helix-producer-dev mailing list
Helix-producer-devhelixcommunity.org
http://lists.helixcommunity.org/mailman/listi
nfo/helix-producer-dev

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )