Log in

View Full Version : Could AVISynth scripts (with e.g. .AVW extension) pretend to be .WAV files?


mg262
19th September 2005, 13:50
Would it be possible to have AVISynth scripts with an appropriate extension (e.g. .AVW) pretend to be .WAV files in the same sense that .AVS pretend to be .AVI files?

Mug Funky
19th September 2005, 14:43
lol "wavisynth" :)

it's a pretty good idea actually. would it just need an acm hack?

mg262
19th September 2005, 14:55
Well, it was the boss that made me think of it:for starters audio encoders generally don't support AviSynth input... that and reading that .WAV was in fact a container. But I have no idea whether it's actually feasible...

communist
19th September 2005, 15:20
Its been in talk before (http://forum.doom9.org/showthread.php?t=56147).

mg262
19th September 2005, 15:24
@communist,

I didn't mean a separate scripting language. I just want to be able to take the trimmed audio from an AVISynth script and compress it using some application without having to use avs2wav.

Based on what Mug Funky (and elsewhere Haali) said, I ran a search and came up with this:

acmDriverAdd (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_acmdriveradd.asp)

Looks like the way to go.

squid_80
19th September 2005, 15:25
It's theoretically possible - a similar mechanism to avi files is used for wav files. But like with avisynth, the host app has to use the "standard" windows functions to open the file. This might not be likely since .wav is less complex than .avi.

I wondered about doom9's post too... avisynth supports many channels (I've experimented with up to 16) and easily allows them to be remapped, subsampled, amplified etc.... So I don't know what he meant by avisynth being unable to compete.

mg262
19th September 2005, 15:37
This might not be likely since .wav is less complex than .avi.Well, if the ACM output is added, it at least provides an incentive for then to support it in future?

Does Besweet support ACM?

Edit:

Adobe Premiere Pro and Adobe Audition do:
http://www.adobe.com/support/techdocs/329133.html

Another thought: I know very little about GraphEDit, but perhaps it could bridge the ACM-other gap?

squid_80
19th September 2005, 22:31
I guess it would be possible to make a "fake .wav", similar to the way a fake avi can be made. Would that be a suitable solution?

mg262
20th September 2005, 10:18
vfapi-like? Yes, it would, in my book.

My impression is that Besweet doesn't support ACM -- but it may be that this is a feature which the author would be willing to add, if it served a purpose.

squid_80
22nd September 2005, 09:54
You're right, Besweet doesn't seem to support ACM. At least I couldn't get it to open wavs that I have ACM codecs for.

So there's no way to get besweet (in it's current form) to do what we want it to. Bummer. Maybe it would be possible to write a replacement for vobinput.dll to support opening avisynth scripts directly; I've asked DSPguru if I could see the source code for it, otherwise it'll take a fair bit of work.