Hello, I'm trying to speed up a NTSC Film avi to PAL (23.997 to 25 fps), but my problem is that I don't get any sound. I've also tried ripping the sound and using audiodub to use a separate audio source, but that won't work either.
I'm running Windows XP on a T-bird 900, 384 ram and 7200rpm HD.
+ Reply to Thread
Results 1 to 5 of 5
-
-
Some more details are necessary.
Is the audio uncompressed?
Post the .avs here.
Which encoder do you use?
What are you aiming for, .avi or .mpg?
-
Audio is compressed in mp3 format when using the avi audio. When trying with a separate audio file then no, the audio is not compressed.
################################################## #####
# Copyright 2001 Eric Warnke <eric at snowmoon dot com>
# Free for non-commercial use, please give credit
################################################## #####
#
# Generic .avi to VCD, and SVCD conversion
# script. Allows converion between PAL->NTSC
# frame rates. Please use AVISynth 1.0b3, as not all
# functions work under 0.3
#
# Follow directions and uncomment lines where necessary
# when done you should have a complete conversion sctipt.
# For simplicity I assume..
# VCD = 352x240/288 with a frmae rate of 23.976,29.97/25
# SVCD = 480x480/576 @ 23.976,29.97/25
#
# I do not answer simple questions at above email address
# but I will take any corrections/alterations.
#
################################################## ######
#
# Load video source
#
# Uncomment ONE of the following lines to load
# your source. Make sure to include the full path to
# your avi source or this may not work.
#
#1 Use for most normal .avi files including Divx
AVISource("510_How_To_Eat_With_Your_Butt.avi")
#2 Use next line only for LARGE .avi's
#OpenDMLSource("moviename.avi")
#3 Use Next line only for virtualdub/avi_io segmented .avi's
#SegmentedAVISource("moviebase.avi")
#4 Use for odd formats that play though MP see AVIsynth doc
# for more info. Can open MS DV files.
#DirectShowSource("movie.mpg")
#4a if you notice off colored lines when using Directshowsource
# use the following line
#FixBrokenChromaUpsampling()
#
################################################## #######
#
# Load external audio source ( if necessary )
#
# This will overlay an .wav file over the movie. Great for use
# with program like DVD2AVI that produce a seperate .wav file.
#
#1 If necessary load external .wav file for movie
#audioDub ( WAVSource("hej.wav") )
#2 bump audio if necessary -in seconds-
#delayaudio(1)
#
################################################## ########
#
# Video size / bordering
#
# Use one of the following to get a properly resized borderd
# video based on input and output. All resize values have
# been rounded to the nearest 16 to prevent macroblock waste.
#
# NOTE: These are only applicable to PROGRESSIVE material
# do not attempt to use these for interlaced material as
# you will end up with a big mess.
#
# If you input is -- 4:3 -- and you are going to ....
# NTSC and a format of
#1 VCD
#bicubicresize(352,240)
#2 SVCD
#bicubicresize(480,480)
# PAL and a format of
#3 VCD
#bicubicresize(352,288)
#4 SVCD
#bicubicresize(480,576)
#
# If you input is -- 16:9 -- and you are going to ....
# NTSC and a format of
#5 VCD
#bicubicresize(352,176).addborders(0,32,0,32)
#6 SVCD
#bicubicresize(480,352).addborders(0,64,0,64)
# PAL and a format of
#7 VCD
#bicubicresize(352,208).addborders(0,40,0,40)
#8 SVCD
#bicubicresize(480,432).addborders(0,72,0,72)
#
# If you input is -- 2.35:1 -- and you are going to ....
# NTSC and a format of
#9 VCD
#bicubicresize(352,144).addborders(0,48,0,48)
#10 SVCD
#bicubicresize(480,272).addborders(0,104,0,104)
# PAL and a format of
#11 VCD
#bicubicresize(352,160).addborders(0,64,0,64)
#12 SVCD
#bicubicresize(480,320).addborders(0,128,0,128)
#
################################################## ########
#
# Misc functions
#
#1 Clean up head noise or other garbage at top and bottom
# of the video frame by adding black borders VCD only
#letterbox(8,8)
#2 Clean up head noise SVCD
#letterbox(16,16)
#3 If you get a technicolor mess as your mpeg output, this option
# may be necessary. If you have YUY2 or huffyuv as source and
# going to CCE you will probably need this option.
#ConvertToRGB()
#4 PC -> TV brightness correction
#levels(0,1,255,16,239)
#5 Audio rate correction. If your audio is not already 44,100
# many encoders will complain, use this to correct
#resampleaudio(44100)
#6 Fix for broken codecs that decompress upside-down
#FlipVertical()
#
################################################## #######
#
# Frame rate converion ( if necessary )
#
# Uncomment one of the assumefps or change fps lines if
# frame rate conversion is necessary. If you video is
# already in one of the three following 23,976,25,29,97
# and not chaning it's format you do not need to use
# one of the following lines.
#
# First three add and drop frames, last two speed/slow
# video and audio to proper FPS ( 1.0b3 only ) it's a
# better method, but is only applicable to two specific
# conversion senarios.
#
#1 Irregualr FPS converison to NTSC film rate
# use this for 10,15,20 -> NTSC film conversion
#ChangeFPS(23.976)
#2 Irregualr FPS -> NTSC frame rate
# use for 10,15,20 -> NTSC conversion
#ChangeFPS(29.76)
#3 Irregular FPS to PAL frame rate
#ChangeFPS(25)
#4 NTSC film 23.976 -> PAL 25
assumeFPS(25,sync_audio=true)
#5 PAL 25 -> NTSC film 23.976
#assumeFPS(23.976,sync_audio=true)
#
#
# Thats all folks, assuming you have everything installed properly
# You can now open this file in TMPGenc, CCE, MP, and most other video
# applications.
#
# END OF SCRIPT
I've tried this script with both Virtualdub to produce another avi, and with tmpgenc, and neither will give me a file with any sound. If I try using the audiodub I get an error saying it needs a separate video and audio input...
I'm aiming for a .mpg
<font size=-1>[ This Message was edited by: xaanin on 2001-11-22 06:07:14 ]</font>
<font size=-1>[ This Message was edited by: xaanin on 2001-11-22 06:07:57 ]</font>
<font size=-1>[ This Message was edited by: xaanin on 2001-11-22 06:09:29 ]</font> -
OK, I reduce it to its essence, correct me if I am wrong.
AVISource("510_How_To_Eat_With_Your_Butt.avi")
assumeFPS(25,sync_audio=true)
Decompress the audio with VirtualDub and save it as new .avi, that you as AVISource. That might solve the problem.
If you use the AudioDub command, you have to define a seperate WAVSource.
video = AVISource("510_How_To_Eat_With_Your_Butt.avi")
audio = WAVSource("................wav")
assumeFPS(25,sync_audio=true)
AudioDub(video,audio)
#using this script you might end with sync problems, not sure.
Btw, are sure "assumeFPS" is that, what you want? It will speed up. To preserve the playback speed try "ChangeFPS". -
#4 NTSC film 23.976 -> PAL 25
That's why I believe assumeFPS should be used.
Also I got it working, I had to make a copy of the avi without any sound to be able to use a .wav audio source, thought it would work with the original avi and a stripped wav but apparently not.
Thanks for your help
Similar Threads
-
Avisynth audio editing
By Mephesto in forum Newbie / General discussionsReplies: 10Last Post: 20th Apr 2012, 00:35 -
How do I trim audio with AVIsynth?
By Nagashi in forum AudioReplies: 4Last Post: 2nd Oct 2011, 10:13 -
AviSynth Audio Overlay
By legocrazy1 in forum EditingReplies: 7Last Post: 14th Jul 2010, 10:01 -
Mute Audio Via AviSynth
By stevendm in forum EditingReplies: 5Last Post: 6th Jul 2010, 10:39 -
Audio in AviSynth script
By leghorn in forum EditingReplies: 1Last Post: 1st Jul 2007, 04:03