Re: [LAU] OT - syncing partially out of sync video and audio in existing files

From: Ralf Mardorf <ralf.mardorf@email-addr-hidden-dsl.net>
Date: Sat Jun 11 2011 - 12:36:44 EEST

On Sat, 2011-06-11 at 11:24 +0200, pshirkey@email-addr-hidden wrote:
> > Philipp <hollunder@email-addr-hidden> wrote:
> >> >> >> >
>
> <snip>
>
> >> > So it seems mencoder can just drop video frames.
> >>
> >> That's good to know. For references sake, what was the commandline that
> >> you ended up using?
> >
> > I wrote it in another post in this thread already, but here it is again:
> >
> > 1) Figure out the position at which the offset starts using mplayer.
> >
> > 2) Get the faulty part in a separate file, delay audio as necessary:
> > mencoder -ss 02:47:55 -oac copy -ovc copy -delay -9.55 file.avi -o
> > fileb.avi
> >
> > 3) Get the good part into another file:
> > mencoder -endpos 02:47:55 -oac copy -ovc copy file.avi -o
> > filea.avi
> >
> > 4) Put the parts back together again:
> > mencoder -oac copy -ovc copy filea.avi fileb.avi -o
> > filefixed.avi
> >
> > filefixed.avi is the resulting fixed file.
> >
> > What I noticed though is that it's limited in granularity, maybe it has
> > something to do with keyframes. In my previous case I had 13 seconds cut
> > out instead of 9.55, but it seems like it can be more. I know far too
> > little about video or mencoder to tell what's really going on.
> > Well, it's ok for me to loose a couple of seconds and have synced audio.
> >
> >
>
> I suspect you're not the only person who feels this tradeoff is a
> reasonable *default* choice.
>
> It's functionality like this that could be relatively easily added to
> existing software and would make a huge difference to a lot of people over
> the years. The problem is knowing how to achieve the goal and automating
> that process. Seems like you have figured out a useful commandline method.
> Hopefully that will get picked up and integrated into a GUI solution at
> some point.

I guess when I used Kmenc15 or similar the cuts always were improper,
but IIRC ... http://kmenc15.sourceforge.net/screenshots.htm ... it's
possible to use manual input.

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Sat Jun 11 16:15:02 2011

This archive was generated by hypermail 2.1.8 : Sat Jun 11 2011 - 16:15:02 EEST