Log in

View Full Version : how to change audio frame rate(not necess movie length)????


Midnight Tboy
24th November 2002, 01:52
hiya, I've been encoding films now for about a year and 95% of them have been without problems. However, some films, old and new, have been giving me problems with respect to the audio, for allsorts of different reasons, such as wrong vid/aud fps, driftin audio, can't seperate audio track on multiple stream avis etc..but those are different stories n each title sometimes has been resolved by a different method, some working for certain titles (such as the 'do not frame rate conversion' in tmpgenc for gremlins movie, or repairing ac3 headers etc


anyways, im totally digressing.

all I'm simply after, is if anyone knows a way or an app that will allow me to change the fps (not the overall film length necessarily) of the audio from a wav file (or whatever audio source).

What is happening, is using graphedit on some problem files where I otherwise cannot extract the audio (yet playback is fine), the initial audio is at 23.976fps matching the film.....however, using graphedit with Wav Dest and File writer on the audio, the new wav file if I try to work with it is at 23.980fps. so any work I do on it will cause gradual synching issues with the video. so I need to find a tool to change that fps to a workable one. I tried besweet, but that only supports various fixed fps changes so if I set it to change for example 23980 to 23976 it would just take an eternity and the end file will be nothing but silence, so this program wont do the job for me. If I use tools like cool edit, or soundforge only ever seem to find the ability to change the film length itself rather than the fps, which I can do to match one part of the film, but that way cos of the wrong fps, if the end of the film is in sync, then the front will be async, and vice versa.

anybody know of such tools to change fps better, or a way around this?

cheers,
Tuck

MvB
24th November 2002, 02:30
Hi,

there are some programs that can change the framerate of the audio-wavs.

See this thread (http://forum.doom9.org/showthread.php?threadid=24535) and download the attachment progs.zip.

There are two programs included: ssrc and wavefix.

ssrc can convert (unlike besweet) your audio to every framerate you want. But, as you can see in the thread, you have to calculate the sampling frequency by yourself:

In your case:

(framerate your movie has/framerate your movie should have) * (khz of your wav) = (khz you have to convert your wav to)

In your case (if your wav has 48000khz sampling freq:
(23980/23976)*48000 = 48008

After recalculating the wav you have to correct the wav header with wavefix to 48000 khz again -> volá, your wav has the desired speed.

But it's easier to change the framerate of the movie with avifrate (does'nt need recompression, it's fast and easy).

Midnight Tboy
24th November 2002, 15:59
cheers thanks mate, I'll give that a try.


When I use that AVIfrate changer programme does that change the audio fps too aswel as the video???

DSPguru
24th November 2002, 19:06
Originally posted by MvB
ssrc can convert (unlike besweet) your audio to every framerate you want.you're wrong. BeSweet has all capabilities of ssrc.

MvB
25th November 2002, 07:33
you're wrong. BeSweet has all capabilities of ssrc

Ups...

Sorry, didn't know that. At least some earlier versions didn't had that capability.

@Midnight: Maybe you're using an earlier version of besweet than the current? If you use the current, then you can try it with besweet, you only have to enter the correct ratio to change the audio framerate. This spares you two steps (in this case changing the wav header and calculating the framerate manually).

It's one of the greatest programs ever built and I like it very much.
@DSP: Thanks for the good work! And sorry that i didn't catch this change ... :(

DSPguru
25th November 2002, 18:41
@MvB
BeSweet updates on almost a weekly basis.
try to catch up.. ;)