Hello guest, if you like this forum, why don't you register? https://fanrestore.com/member.php?action=register (December 14, 2021) x


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Help] Audio Syncing
#21
(2020-03-19, 08:14 PM)TomArrow Wrote: Here's an idea, but it would require some coding and tinkering: Record the 2 channels of audio output and simultaneously hook up some kind of electrical trigger to a third audio input and record that with it, so that for each frame there is a spike in the audio curve of the third channel. Then you could write a software that finds all those spikes and normalizes the speed (tho it would require some clever interpolation methods probably), and then it would just be a matter of syncing. Not a simple method, but it might be possible.

After some tinkering with C++, I would probably be able to do something like this now. Turns out there's a library that can do this kind of resampling with variable speed. Just thought I'd mention it in case it ever becomes an issue for anyone ever again.
Reply
Thanks given by: williarob
#22
Tom,

I think something similar to your concept is used in the retrosync sound module, except it uses the projected image shone onto a photosensor to create the sync pulses, which can then be used to conform the captured audio to the desired fps.

In reverse there is software called film-o-sync which can lock a digital soundtrack to film playback by using the equivalent of a timecode signal generated by the projector (kind of like how DTS works)
Reply
Thanks given by:
#23
(2021-10-31, 10:17 PM)zoidberg Wrote: Tom,

I think something similar to your concept is used in the retrosync sound module, except it uses the projected image shone onto a photosensor to create the sync pulses, which can then be used to conform the captured audio to the desired fps.

In reverse there is software called film-o-sync which can lock a digital soundtrack to film playback by using the equivalent of a timecode signal generated by the projector (kind of like how DTS works)

I could do it a bit cheaper than that retrosync sound module, heh. Wonder what algorithm they use for resampling.

Yeah the film-o-sync does the reverse, not very useful to us here I think.
Reply
Thanks given by:
#24
It's probably some kind of time stretch, the distance between 2 pulses should be x amount of ms, the actual amount as captured is y so whatever stretch/compression is needed to get y to match x. The retrosound module refers to eliminating wow so it's obviously capable of adapting the amount of adjustment at a given point, how it does this and to what quality who knows.

Yes the film-o-sync is definitely not of use for film scans but I mentioned it as it's the exact reverse of what we're after (ie taking a audio file of known speed and conforming it to the often variable playback speed of a projector). It could possibly be reverse engineered
Reply
Thanks given by:
#25
Well yes, time stretch=resampling, heh. Question is what method they use, bc they range from very good to pretty lousy (in terms of artifacts etc). I haven't found a perfect one either but a pretty decent one.

Ah I see what ur saying. Well reverse engineering it would be more work than doing one from scratch, heh.
Reply
Thanks given by:
#26
So what's generally considered to be the best method of stretching/resampling?
Reply
Thanks given by:
#27
Yeah I see your point about time stretching = resampling, unless the software is merely raising/lowering the sample rate then there will be resampling taking place (and even then there is probably some internal resampling taking place within the computer during playback).
I guess the alternative to all this is to know the projector's actual running speed and to adjust the captures based on that known speed. A well maintained projector should hold its fps fairly consistently once it's warmed up, there are inexpensive tachometers which can do the job.
Reply
Thanks given by:
#28
(2021-10-31, 11:58 PM)Turisu Wrote: So what's generally considered to be the best method of stretching/resampling?

I don't know if there is a known "THE" best method, but here you can compare various resamplers: https://src.infinitewave.ca/

(2021-11-01, 12:40 AM)zoidberg Wrote: Yeah I see your point about time stretching = resampling, unless the software is merely raising/lowering the sample rate then there will be resampling taking place (and even then there is probably some internal resampling taking place within the computer during playback).
I guess the alternative to all this is to know the projector's actual running speed and to adjust the captures based on that known speed. A well maintained projector should hold its fps fairly consistently once it's warmed up, there are inexpensive tachometers which can do the job.

Well it's admittedly a bit pedantic but technically resampling simply means to sample again. The audio was originally sampled at certain points. When you "re-" sample, you sample it again at different points. That requires a good interpolation algorithm to know what values are supposed to be at those new points. So technically it doesn't matter whether the speed changes, you can play back the number of samples you have at any speed you like after all.

About using the projector running speed... well for the projectors that can hold their speed well enough for this to be feasible, of course your proposed solution is the way to go, but at least as far as my own motivation here went, it was explicitly for the cases where that's not the case, where the speed varies from start to end. Requiring a non-constant resampling and thus making the problem that much more difficult.

And yeah as said in an earlier post in this thread, ideally you'd capture an additional second/third channel that picks up a signal representing the framerate. I suppose that's what a tachometer is? So basically there would be a little spike in the signal every time one frame (or a third-frame or whatever the projector uses) is played back. This signal would be trivial to analyze and from that you could then build a map of exactly which point in time should be where, then run the resampler over it, and voila.
Reply
Thanks given by:
#29
Or you could use the magnet/hall effect sensor approach, especially if it's already in place as a trigger for image capture, one pulse per frame
Reply
Thanks given by:
#30
My experience with the Retrosync Sound Module has been very hit and miss. When it works it works perfectly and when it doesn't it's often way off the mark. Roger sent me a replacement unit, but both were manufactured mid pandemic so I think he had to source parts from different suppliers, which may not have been so good.

For educational purposes, you can easily take a peek at the source code of the Retrosync software to see how they do the resampling - just download it from the moviestuff site and open it with something like dotnetpeek from Jetbrains. The code has not been obfuscated at all, so it's all right there.
The007Dossier
TheStarWarsTrilogy
Donations always welcome: paypal.me/williarob4K77 / BTC: bc1qzr9ejyfpzm9ea2dglfegxzt59tys3uwmj26ytj
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
  Caligula - Best Audio Track? stwd4nder2 0 144 2024-10-29, 07:29 PM
Last Post: stwd4nder2
  Ripping audio from Cinema DTS discs Banderson 8 1,739 2024-10-28, 03:07 PM
Last Post: stwd4nder2
  Hitchcock original audio thread captainsolo 24 9,207 2024-10-05, 07:36 PM
Last Post: therobotdreamer
Music [Request] In the Aftermath (1988) [Angel's Egg US Cut] VHS Audio and Code Red Blu-ray Hydra Spectre 1 508 2024-09-10, 04:08 AM
Last Post: SpaceBlackKnight
  [Idea] Game Of Death (1978) US Version DVD Audio to sync to 4K release dwalkerdon 3 535 2024-09-10, 04:05 AM
Last Post: SpaceBlackKnight
  Dragonslayer DVD 5.1 audio on UHD uVSthem 5 1,991 2024-05-20, 09:26 AM
Last Post: Falcon
  Kill Bill Audio onlysleeping23 2 712 2024-05-17, 04:55 PM
Last Post: onlysleeping23
  Cool Hand Luke [1967] Audio Comparison M A 2 977 2024-05-11, 03:15 AM
Last Post: PDB
  The most egregious audio remixes Kreeep 30 7,169 2024-04-12, 07:52 PM
Last Post: audioguy
  [Request] Snow White and the Seven Dwarfs 1994 Disney CAV LD audio James76 0 575 2024-03-21, 12:12 AM
Last Post: James76

Forum Jump:


Users browsing this thread: 2 Guest(s)