Log in

View Full Version : Script.avs No audio in Virtualdub (Mpeg Video)


flebber
25th May 2008, 14:25
I was following a guide for some filters and found a hint so I could import mpeg into the latest vitualdub I have Vdub-1.8. This is the website http://www.codecpage.com/index_cleaning.html

On the page it shows that if I create a simple script and load it in Virualdub then I can go about using Vdub as I want Videoclip=Directshowsource("D:\clip.mp4")
return(Videoclip)

I have tried my Version of this script 2 ways
way1
Videoclip=Directshowsource("C:\WinFast WorkArea\Video_Mantissa_Mary_Mary(CVBS).mpg")
return(Videoclip)
and way2
Videoclip=Directshowsource("C:\WinFast WorkArea\Video_Mantissa_Mary_Mary(CVBS).mpg",audio=true)
return(Videoclip)

However in both cases, it appears that the audio is not being imported properly. I receive this error from Vdub Error initializing audio stream compression:
The audio codec cannot compress the source audio to the desired format.

Check that the sampling rate and number of channels in the source is compatible with the selected compressed audio format. I use lame at 224 with CBR stereo and this has never been a problem before.

How can I get sound imported properly ? The video and audio are same file, no separate wav file exists.

Guest
25th May 2008, 14:31
vid=DirectShowSource(...,audio=false)
aud=DirectShowSource(...,video=false)
AudioDub(vid,aud)

flebber
26th May 2008, 10:31
vid=DirectShowSource("C:\WinFast WorkArea\Video_Mantissa_Mary_Mary(CVBS).mpg",audio=false)
aud=DirectShowSource("C:\WinFast WorkArea\Video_Mantissa_Mary_Mary(CVBS).mpg",video=false)
AudioDub(vid,aud)

I still receive the same audio error in both vdub 1.8 and 1.7.

flebber
26th May 2008, 21:20
Can I change the source audio via avisynth in the script to a readable format in virtualdub before virtualdub actually opens it then I could just tell vdub to copy sound or whatever needs doing.

Guest
27th May 2008, 13:59
You're getting a *compression* error, which suggests you aren't choosing proper compression configuration. The audio coming in from Avisynth is already decompressed. Does it play when you do preview in VirtualDub? When do you get the error, when you open the script or when you do Save AVI?

flebber
27th May 2008, 21:47
The script doesn't seem to import the sound, as when I bring the clip in and play there is no sound.

I am wondering whether this will be possible to import clip and sound reading this http://avisynth.org/mediawiki/FAQ_frameserving.

There is sound on the clip I can play it through other media players and it works fine.

squid_80
27th May 2008, 22:00
Is it by any chance 5.1 channel audio? Check virtualdub's file->file information dialog. That would explain why you hear nothing on playback (vdub doesn't know how to play more than 2 channels) and the compression error (number of channels not compatible).

Guest
27th May 2008, 22:09
What is the format of the source audio?

Most likely, you can use NicAudio.dll to source it and downsample it to two channels. E.g., if it is AC3:

aud=NicAC3Source("file.ac3", 2)

setarip_old
27th May 2008, 22:44
@flebber

Hi!

if you haven't already done so, you might want to try installing "AC3Filter"...

flebber
28th May 2008, 08:28
It is PCM(uncompressed) 5.1 channels 16-Bit. Have found AC3 filter 1.46 from here http://www.free-codecs.com/download/ac3_filter.htm

Maybe I should choose a different way of capturing ? The mpeg2 via wintv card just offered good size, speed and quality.

setarip_old
28th May 2008, 08:56
Sorry, I meant the AC3ACM codec, by "fccHandler"...

Guest
28th May 2008, 14:17
Use NicAudio like I said.

http://nic.dnsalias.com/nixaudiostuff.html