How to fix an A/V sync problem in a dv file?

Kimmo Mustonen <[email protected]>
Newsgroups gmane.comp.video.kino.devel
Message-ID <[email protected]>
Hello!

I have old videos on an old analog video camera. I connect cables to Sony 
DCR-PC1000E to create a digital copy of it. The problem is that audio is 
about 120ms to 160ms before the video. I'm not sure what is causing the 
problem. It could be already the source analog camera. It could be a nasty 
feature of the Sony DV troughtput. It would be great if kino had a way to 
fix timings, even though this kind of problem should be quite uncommon 
when using dv format.

It makes cutting with kino about impossible. The audio between scenes gets 
mixed. Didn't find a tool to fix the A/V sync on dv file without 
re-encoding the whole thing. Tried to use mencoder with -oac copy -ovc 
copy -audio-delay X, but it caused lots of errors and the A/V sync just 
got worse. Tried to check transcode and ffmpeg but didn't find a tool or 
way to input dv, output dv, and fix audio timing. Any suggestions? The 
audio is raw pcm so it should be very easy to fix in that sense. Tried to 
check the libdv API but couldn't figure out how to easily create an A/V 
sync fixer using it. Tried to google for some help but outputting DV 
format did not seem to be very common.

Thought about separating audio and video, fixing them and joining again, 
but didn't find out a way to handle separate audio and video tracks in 
kino.

A minor problem was also that I used kino to grab these videos. Saved them 
(accidentally?) as foo.mov instead of foo.dv. Kino was able to edit/show 
the video, but after I quit kino, it was no longer able to open that file 
format. I managed to fix this using ffmpeg to "convert" is from .mov to 
.dv. How should I have saved that so that kino could have opened the file 
again without the conversion? The audio sync problem was not caused by 
this conversion, as it is out-of-sync already in that .mov file.

Regards,
Kimmo Mustonen

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.