Page 1 of 2

Audio plays back slightly too fast

Posted: 04 Sep 2011, 09:40
by melaphant3
Hey guys,

I'm having 'aaargh' problems. Any sounds I import plays back too fast and a little higher pitched than they should. I tested this with different bitrates (and different playback sample rates in TVPaint) and file formats but the problem always remains regardless of file format (wav or mp3 or aac). Re-exporting these sounds at different sample rates (44100 / 48000 / 22050) and putting them back in TVP seems to have no effect on the speed that it's played back.

I've kept the FPS in the project settings the same as the FPS in the remote control - if the remote control FPS is changed so it doesn't match the project, the sound doesn't just drop or raise in speed, but seems to 'glitch' and stutter instead.

I've seen other topics posted about similar problems, but their solutions haven't worked. Does anyone know what other sound settings can I play with or look out for? Any idea what I am doing wrong?

Some settings:
TVPaint version: Pro 9.5.18 on Mac OSX snow leopard
Project FPS: 24
Playback FPS: 24

I'd super duper appreciate any tips.

Re: Audio plays back slightly too fast

Posted: 04 Sep 2011, 13:28
by Paul Fierlinger
What is the size of your project? Are you using Proxy and if so, what are your settings? Where are you playing back from; the Project Tab or Timeline Tab? Where did you load your track; in Project tab, or directly in the clip?

Re: Audio plays back slightly too fast

Posted: 04 Sep 2011, 15:24
by melaphant3
Hi Paul, thanks for getting back to me.

No matter the size of the project the same problem persists - I've tried on practically blank projects (however the main project I'm currently working on is 405mb so far). I'm not entirely sure what a proxy is, but I don't think I'm using one - it's an independent student project all just on the one computer, no servers. I loaded the track under the 'master' tab on the timeline, and also tried the 'project > load sound' option. And I'm previewing the animation using the Remote Control buttons or scrubbing through the timeline.

I just tried an export test and worked out that only the preview isn't working, and it's not effecting the export.

cheers

Re: Audio plays back slightly too fast

Posted: 04 Sep 2011, 15:37
by Paul Fierlinger
OK, I never had a Mac but I think it can't be that different in this case from the PC. Go to the main menu bar and look under windows to find "Preview Setiings". Open that panel and you'll see "Background Proxy Render and "Force Proxy Render". If they are selected, tic them off. Play with these settings a bit more to find the right setting which will stop your sound distortion. The Quality you might want to set to 50% or lower, if you end up with one of the Proxy settings ticked on. Let me know if this works for you.

Re: Audio plays back slightly too fast

Posted: 04 Sep 2011, 16:38
by melaphant3
I had a play with those settings. The Proxy Renderers and Quality didn't make a difference to the remote control player. However when I increased the 'flip book' settings to 20 seconds, interestingly it did play it at the correct speed when I pressed 'W', yet the pitch was still unusually high. I suppose that's probably as good as it gets, and I don't mind using this method. It still puzzles me though.

Re: Audio plays back slightly too fast

Posted: 05 Sep 2011, 07:29
by Mads Juul
If I remember correct I have experienced the same on a mac, and I think there is a difference between mac/pc.
A solution could be to make sure all your sound files is in the same format 48000 Hz 16 bit mono for instance.
and then make sure under Edit<Ppreferences<Sound the sampling rate is set to 48000 Hz.

Do you have the latest version of quicktime, if I remember the version of quicktime also have an influence.
At a point I updated Quicktime and then the playback wasn't in sync and then it was later on a mac.

But i think this is a bug in TVpaint. In that sense TV Paint should play back correctly no matter what
-Mads

Re: Audio plays back slightly too fast

Posted: 05 Sep 2011, 07:31
by Mads Juul
btw have you tried only to use mono tracks?
I know TVPaint had problems mono vs Stereo and was happier for mono at some point. Don't know if this is corrected

Re: Audio plays back slightly too fast

Posted: 05 Sep 2011, 12:12
by Hervé
It's a known bug in quicktime since OSX 10.6, which no longer convert frequencies in the audio load process.

You can convert manually the frequency of your audio files to 44800khz with some free softwares like audacity

We will try to find a way to fix the issue with quicktime.

Re: Audio plays back slightly too fast

Posted: 05 Sep 2011, 12:42
by D.T. Nethery
Hervé wrote:It's a know bug in quicktime since OSX 10.6, which no longer convert frequencies in the audio load process.

You can convert manually the frequency of your audio files to 44800khz
with some free softwares like audacity

We will try to find a way to fix the issue with quicktime.
I've used Audacity before and it's a very good software (and always nice to have something free !)

So is 44800 khz the ideal frequency for sound files in TVPaint ? Does mono vs. stereo make any difference for accurate playback in TVPaint ? (as Mads mentioned above)

Re: Audio plays back slightly too fast

Posted: 05 Sep 2011, 13:40
by ematecki
The exact samplig rate you use has no effect.
The problem comes fron the conversion of sampling rates by quicktime.

So your audio files MUST have the SAME sampling rate as set in the preferences.
Choose one sampling rate and stay with it, at least until we find a work around this quicktime bug.

(BTW, it's 44.1 kHz for CD audio, or 48 kHz for "DAT" audio...)

Re: Audio plays back slightly too fast

Posted: 07 Sep 2011, 15:20
by melaphant3
Sorry everyone for taking ages to get back.
I've been playing with the sounds a bit it the meantime - stereo/mono makes no difference.
Ah, everything is confusing. So is everyone saying the quicktime bug is something I can't get around? Or can I edit the quicktime settings to match (in which case I haven't a clue how to do so)? I've currently got the latest Quicktime 10.0 if that helps.

Also, thankyou for reminding me about Audacity. I've been looking for something like it recently and had forgotten its existence.
Thanks everyone for your help, too! Really appreciate it.

Re: Audio plays back slightly too fast

Posted: 07 Sep 2011, 15:24
by ematecki
I just described the workaround...

Convert all your audio files to the same sampling rate, set that sampling rate in TVP's preferences, and it should work.

Good luck.

Re: Audio plays back slightly too fast

Posted: 11 Sep 2011, 05:34
by melaphant3
Hey Ematecki,

I tried your work around - exporting the same sound out of Audacity at 22050 / 44100 / 48000 and importing them into TVP projects with different sample rates. Unfortunately no combination of import sample rate and TVP sample rate will make the sounds play at the right speed - all the same slightly too high / fast. All 24fps in the project and in the remote control. Thanks for your suggestion, but alas it didn't work :( aww.

Re: Audio plays back slightly too fast

Posted: 12 Sep 2011, 07:43
by ematecki
If you have QT X , try to disable/uninstall it.

If not, that's really strange as it works for everybody else...

Re: Audio plays back slightly too fast

Posted: 13 Sep 2011, 07:27
by melaphant3
Uninstalled QT X and now it works!!! Yaaaay!
Thankyou thankyou thankyou!