PDA

View Full Version : Setting avi 30.0 -> 29.97fps - how to "stretch" audio ?


marsoupilami
3rd June 2008, 16:49
Hi there!

I like to convert a lot of photo camera clips to DVD compliant files.
The source is AVI - video MJPEG 30.0fps and audio 8bit PCM / 11025 Hz.

Patching the avi header from 30 to 29.97 fps leads to sync loss while "frame rate conversion" blends or drops fields (avidemux, tmpgenc).

Since tmpgenc has a good built in encoder I would like to "fool" the AVIs prior to converting them.
Thatfore I'm looking for an automated process to:
1) demux the wav-audio
2) "stretch" the audio by 0.1 percent (while converting sample rate and 8->16bit) (btw. BeSweet cannot do this!)
3) patch the framerate from 30 -> 29.97 (not the problem)
4) remux the avi

Any ideas welcome
Thanks in advance!

GodofaGap
3rd June 2008, 21:29
Does TMPGEnc accept AVS scripts?

Something like this would work then:


AviSource("yourfile.avi")
Assumefps(29.97, sync_audio = true)
SSRC(48000) # or whatever sampling rate you require
ConvertAudioTo16bit()

If SSRC doesn't work you can use ResampleAudio.

marsoupilami
4th June 2008, 20:18
Many thanks for your answer!

Unfortunately I couldn't get it run this way (besides I'm not familar with avs) ... Both VDubMod and TMPGEnc 2.51 hangs with something like "mjpeg codec not found"...
Oviously SSRC cannot convert "strange" samlpe rates and I couln't find another one which is able to do it until now... :(

GodofaGap
4th June 2008, 20:43
Your error is not related to ssrc (yet). You need to install a MJPEG decoder, ffdshow-tryouts has one. Make sure to also enable it in the VFW-configuration.

marsoupilami
4th June 2008, 21:37
Sorry about the confusion concerning SSRC: I tried the commandline version!
I just downloaded the codec and will install it asap (not possible now).
As I stated above - I'm not familiar with avs scrips and how to use them. Do you know a good place for learning about?
Thanks again!

GodofaGap
4th June 2008, 21:51
Avisynth comes with very good documentation (IMO). It can be found in start > programs > avisynth. Online there is a wiki that is very helpful.

marsoupilami
4th June 2008, 23:08
Wow!
I'd never notice what great thing this is - shame on me!
I hope I'll get it now (there is also a TimeStrech() function).

Thanks again for your help!
:)