views:

237

answers:

0

I am trying to build a karaoke system in Flash. However, I've run into a problem with synchronizing the base and loop track because of a random delay in NetConnection.publish().

To test this I play a video and publish a recording at the same time with the headphone jack going into my line-in jack. I would expect there to be a small but consistent delay. However, measuring the changes with Audacity shows a random delay between 50-150 milliseconds.

I've researched this and come up completely blank. The only other person I see having this problem was here: http://osflash.org/pipermail/red5_osflash.org/2009-October/037848.html

One poster suggested extracting the mp3 and using the onSampleData Sound event. I need video in my solution, so this won't work for me. Is there something like this for NetStream that I can't find?

So far I've tried both Red5 and Wowza media servers, both have an unpredictable delay.

Do I have any other options here? I need to be able to sync a recorded video to a playing video--is this possible?

Any help is appreciated.