Log in

View Full Version : (Batch) audio-sync tool for .mov ?


grasgaute
4th December 2003, 10:48
I have a digital camera (Minolta Z1) that has a very nice movie mode except for the fact that the sound is 0.28±0.02 seconds delayed, appearantly due to a slow memory-card.

1. Is there a plugin that would allow me to open my quick-time movies in virtualdub to fix it?
2. Or is there any other tool that I should use?
3. Even better, is there a command-line/batch tool that will let me process all the files at once?
4. ...and optionally compress audio and/or video?

This is my first post here. I tried searching but found no promising leads. Hope I didn't miss anything obvious. I (and a lot of other Z1-owners at the dpreview-forum) would be very grateful for help on this.

greetings,
grasgaute

jkwarras
4th December 2003, 14:29
If you want to: sync A/V AND compress it, use Avisinth with VirtualDubMod. INstall Virtualdubmod and Avisynth. Go to File>Open with Avisynth>And choose "Directshowsource". In this case your video and audio will be opened via directshow filters so make sure you have all the filters necessary in order to playback it. If you want to sync A/V just use the audio menu (in video "stream list") and delay it + or - in order to resync. When you have it resynced then choose a compressor (for audio and video) and save it. If you save it as directstreamcopy, avisynth will save it as uncompressed (both A/V).

Hope it helps

grasgaute
5th December 2003, 07:40
Thanks!

I could not find a "open with avisynth" entry on the file-menu, but in the open file dialog I could choose "Use avisynth template: DirectShow."

I did it and then got this error message:
Avisynth open failure: DirectShowSource: Could not open as video or audio.

Video returned: "DirectShowSource: the filter graph manager won't talk to me"

Does this mean that I'm missing directshow-filters for quicktime? Where can I find those? The mov-files play in media player classic, so I thought I had the necessary filters.

Also, would it be possible to make an avisynth script to do resync automatically? Something like: for all files {open file, move sound forward, save}.

regards,
Gaute

jkwarras
5th December 2003, 08:45
Originally posted by grasgaute
Does this mean that I'm missing directshow-filters for quicktime? Where can I find those? The mov-files play in media player classic, so I thought I had the necessary filters.

Hmmm, i've never deal with mov files in VDMod/Avisynth but i'm almost sure it's possible. I'm even able to load a asf file that can't load in the old VD that supported that format because it's a corrputed file. So mov can be possible, but i don't really know how to help you.
Maybe you need something called Quicktime alternative. I think there's something similart to the realmedia alternative, with that you can load Realmedia stuff into avisynth and mux it to MAtroska container. Search in google :)

Also, would it be possible to make an avisynth script to do resync automatically? Something like: for all files {open file, move sound forward, save}.



I don't usually use sound into avisnth so you'll have to check the official documentation, in the sound filters section. Recommendation: USe latest VirtualDubMod and Latest Avisynth.

Regards

bond
5th December 2003, 10:16
grasgaute,
the way jkwarras is describing means that you are going to reencode the content, put it into a better known container, where we know how to change the delay etc...
this means of course loss of quality

i am sure that the .mov container supports delay correction (without the need of reencoding)
did you search around already for an answer on doom9? you can also try to find answers on the apple support pages...

if delay correction is possible in .mov than it surely has to be done in quicktime (pro), so grap a copy and search around in qt for that option before you start reencoding!
if this is possible it is surely the best way to solve your problem.

if it doesnt work you can also try to demux the streams of the .mov and try to remux it in another container
this will also work without reencoding. reencoding should be the last thing you should try!!!

jkwarras
5th December 2003, 11:51
Originally posted by bond
reencoding should be the last thing you should try!!!

Yes, i agree with that :)

I recommend him the avisynth/VirtualDubMod solution as he wanted (point 4 in first post) to eventually reencode the file.

QucikTime Pro have this tools to resync without reencoding, no doubt about it as I used it on a Mac a year ago. A little different what Windows users are used to, but reading the documentation help a lot. Mac is always like an alien to Windows users :D

grasgaute
10th December 2003, 09:24
Thanks for the answers. I tried folloing the instructions but did not succeed (mayby I'm just stupid). A user at the dpreview forum adviced me to use the free rad video tools. (http://forums.dpreview.com/forums/read.asp?forum=1024&message=6857084)

It worked perfectly. With an (almost) minimum of clicking I can select one or multiple files, set a sound delay and then compress with one of the installed encoders. The method requires reencoding. It would also be good to do "direct stream copy", but with high quality divx there is virtually no loss in detail. Does anyone have strong opinions on which is the best "no-loss" codec?

bond
10th December 2003, 10:03
Originally posted by grasgaute
Does anyone have strong opinions on which is the best "no-loss" codec?there is no "no-loss" codec which doesnt result into heavy filesize increase

if you dont want to reencode and still use the mov container you can use the 3ivx dshow muxer (it also works with .mov output) as described here (http://www.3ivx.com/support/windows/encoding/ge_shift.html)