Log in

View Full Version : Audio Framerate in AVI


Jason28
13th February 2003, 01:49
I have an avi that I would like to convert to SVCD. I am using avi2svcd. When I run the conversion it starts off by saying that the AVI framerate is not supported and will be adjusted. When I get the finished SVCD (a mpg file as I didnt want the .bin and .cue) the audio is not synched correctly. At the begining of the show its pretty much synched up by the end its pretty far off. I have done some research and realized that it because that the audio that was in the avi was encoded at a different framerate then the video that is running in the SVCD. At least thats what I think. :(

What I had to do is run the extracted audio wav file through BeSweet and adjust the framerate of the audio. I would have it output a mp2 file. Then I had to remux the audio and vidio. Then I would watch the SVCD and see if it synched up or not. As you can guess this took a very long time for me to do. :(

I know that the audio and video framerate in a SVCD are 29.97. The AVI
file that I had had a framerate of 23.960. If I increased the framerate of the audio to 29.97, it was way too fast and was WAY out of synch.

My questions are:
1) Does anyone know of a way to find out what the audio thats in the avi file is encoded at? (will this be the same as the video framerate?)

2) Does anyone know an easy way to accomplish what I am trying to do. (ie get the audio and video to line up correctly in the SVCD) I did a search here and I couldnt find anything that was overly helpful.

3) What should I be adjusting the audio fraterate by (if not 29.97)

Thanks for all your help

Jason

markrb
13th February 2003, 03:56
Try this.
Edit the avs file right before the video encoding.
See if there is a line assumefps.
See what that says for a rate.
If it says 29.97 then change it to 23.976 instead.
You will then need to run pulldown and maybe by hand.
After you had run pulldown by hand on the encoded.mpv file rename the file back to the original name and then start recover from muxing and cutting.

The framerate is so close to a movies that maybe encoding like you would a DVD will work. I am only guessing, but this is what I would try.

Mark

manono
13th February 2003, 04:20
Hi-

Assuming that the audio is in synch in the original .avi, you have to convert the audio to 23.976fps. So you extract the audio and convert it to .wav, do some easy math to figure the conversion percentage and then use a WAV editor such as CoolEdit Pro to do that. Then you can convert the resulting .wav file to .mp2, rename it as DVD2SVCD does, and then use the Recover console to pick it up at the muxing stage. Maybe BeSweet can do that for you without the intermediate .wav stage, I don't know.

What should I be adjusting the audio framerate by (if not 29.97)

As markrb said, you want 23.976fps.

badbert
15th February 2003, 05:32
This is a frequent problem with poor rips. Instead of stretching the audio they change the framerate to something strange to correct playback. This prevents encoding though.

To start with, Grab the following programs.

VDub (http://www.virtualdub.org/index)
GoldWave (http://www.goldwave.com/)

(STEP 1) Use VDub to extract the audio into an uncompressed wav file.
(STEP 2) Then using VDUB's file information find out what the exact framerate is.
(Step 3) Then direct copy the video (with no audio), using the video framerate conversion tool to change the framerate to either 23.976, 25, or 29.97 fps (whichever is closest to the original FPS). And when finished saving the new AVI file, close VDub.
(Step 4) Now launch Goldwave, open the wav file you created in step 1.
(STEP 5) Now reopen VDub, and then open the AVI file you created in step 3.
(Step 6) Using the scrollbar (at the bottom of VDub) Scroll the bar all the way to right. Copy the time (shown at the bottom in parenthesis) to clipboard.
(STEP 7) Now go back to the wav file you have opened in GoldWave. Under the "effects" menu, choose "time warp". Select speed and paste the time into the box, press ok and it will stretch or shrink the wav to the new time. Close goldwave saving changes to the wav file.
(STEP 8) Back in VDUB under audio choose the now (hopefully) correct length wav file. Set audio to direct copy and also the video to direct copy. Save as "renamed.avi" and press ok. Play the new avi file in mediaplayer or whatever your choice is, to insure the files are in sync. If they are, go back to AVI2SVCD and encode as normal. If they aren't sorry I wasted your time.
If it works, the time that this costs you will be partially compensted by the fact that the audio is now in WAV file, saving a step in audio processing.