[Asterisk-video] app_mp4
Duane Storey
duane at counterpath.com
Thu May 25 00:25:37 MST 2006
Hi Sergio,
I'm not sure I understand what you mean. The RTP timestamp should increase
at 8000 or 16000 every second for audio, and for video it should increase at
90000 per second. If you're seeing the occasional timestamp of 0, then
that's a bug.
If you're trying to record video and sync it with audio, there's a
relatively simple way. If you always keep the last decoded frame in memory,
then you can either play it twice or skip it periodically to keep it in sync
with the audio. I.e. if you're writing 30 fps into the file, and you've
played out 16000 samples of audio, but you've only written 28 frames, then
you can repeat the last frame two times to resync it (since you've written
one second worth of audio, and you also need one second worth of video).
Duane
On 5/24/06, Sergio García Murillo <Sergio.Garcia at ydilo.com> wrote:
>
>
> > I can probably help you with the audio/video sync. It's a bit tricky
> when there's VAD/DTX, but not impossible.
>
> Hi, Duane
>
> My main problem is that I don't know how to extract exact timing from the
> frame structure. If I have the timestamp value from the rtp I could just
> handle the vad and the silence suppression just fine. I'm using the samples
> value but it seems that when it's some silence suppression I get a 0 in it.
> The other problem I have found is that my eyebeam doesn't start sending
> video immediately, so I'll have to make some extra timing to be able to
> measure this delay.
>
> Greetings
> Sergio
>
> --------------------------------------------------------------------------------------
> This message and any files transmitted with it are confidential and
> intended solely
> for the use of the individual or entity to whom they are addressed. No
> confidentiality
> or privilege is waived or lost by any wrong transmission.
> If you have received this message in error, please immediately destroy it
> and kindly
> notify the sender by reply email.
> You must not, directly or indirectly, use, disclose, distribute, print, or
> copy any
> part of this message if you are not the intended recipient. Opinions,
> conclusions and
> other information in this message that do not relate to the official
> business of
> Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given
> nor endorsed by it.
>
> --------------------------------------------------------------------------------------
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-video mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-video
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-video/attachments/20060525/5221cb28/attachment.htm
More information about the asterisk-video
mailing list