Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Audio/Video Sync after remultiplexing
Matthias Schniedermeyer writes:
> #inlclude <hallo.h>
>
>
> It seems to be normal that the "Audio"-Stream is "a bit" shorter, in a
> given file, than the "Video"-Stream.
>
> But how do i calculate the "Alignment". (How are my ASCII-Arts?)
>
> e.x. 1: Audio "in the middle"
> ---------------------------------------------- (Audio)
> ------------------------------------------------ (Video)
>
> e.x. 2: Audio "at the beginning"
> ---------------------------------------------- (Audio)
> ------------------------------------------------ (Video)
>
> e.x. 3: Audio "at the end"
> ---------------------------------------------- (Audio)
> ------------------------------------------------ (Video)
>
> When there is an offset at the beginning i have to insert "silence" to
> adjust the alignment.
>
> (I have experimented a bit with remultiplexing, and had results from
> "perfect alignment" to "Off by about 200ms" (Mostly the audio is "to
> late")
>
> Does anyone know a tool/way to measure the "alignment" from the
> "Source"-Stream so that i can reapply it to the remultiplexed stream.
>
>
Try the remux program in the av_pes2any package. It is not finished
yet, but it tells you the time differences between audio and video (
if the latest version is checked in the CVS). These diferences are
taken from the first sequence headers found for audio and video. I
will continue writing the remux program tomorrow, so be patient and it
will do the remuxing you are looking for (I hope). I get the offsets
from the PTS values which are off course lost after demuxing.
Marcus
---------------------------------------------------------------------
Dr. Marcus Metzler
mocm@netcologne.de http://www.metzlerbros.de
mocm@convergence.de http://www.convergence.de
Convergence Integrated Media GmbH
Rosenthaler Str. 51
D-10178 Berlin
---------------------------------------------------------------------
---
Info:
To unsubscribe send a mail to listar@linuxtv.org with unsubscribe as subject.
Home |
Main Index |
Thread Index