On Thu, Dec 16, 2010 at 9:44 AM, Eli Konky <[email protected]> wrote:
> Hi, > > I have an mp4 (h.264, aac) file where the audio is lagging behind the > video. > > Is it possible to fix this file by just rewriting pts somehow, without > decoding and re-encoding the entire file? > Is there any other way to deal with this? > > Thanks > Eli > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > You can rewrite the pts without doing any decoding/encoding. But how do you know what is the correct adjustment? You can do trial and error, e.g. add +50 msec, 100 msec and check the result visually. But what if the lag is varying over time? -- pushkar _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
