View Full Version : AC3 stream w/ avs
thrivx my appendix
22nd May 2005, 21:01
My goal is to create a "synthetic AVI" with an AC3 stream... I DO NOT wish to decode AC3 into PCM. When I load the script into VDubMod, it should recognize the audio as an AC3 stream. How do I do this?
Schlumpf
22nd May 2005, 21:10
dsynth might suit your needs.
Do a search for it.
thrivx my appendix
22nd May 2005, 22:45
I found Dsynth and replaced the avisynth.dll, but there is a problem... which is that it doesn't work with the AudioDub() function. So I can do AVISource() or DirectShowSource() and get directly copied streams, but when I try to dub in audio I get a crash (assuming crash, it seems to recover and shuts down player/encoder). Is there another way to dub in audio? Please any help would be appreciated...
Wilbert
23rd May 2005, 19:26
I think that audio is not supported yet.
thrivx my appendix
23rd May 2005, 22:27
I'm sorry, but wrong... Audio is supported. Audio with AudioDub() function is not. Repeat: audio is supported. I need an alternative to AudioDub()
Ok
Let's me make a clarification:
DSynth is able to direct stream audio as long as you can decode it.
I know it is jerky, but I kept the comportment of avisynth.
The rule is to try to decode the stream, no matter it is audio or video.
I know it is an artificial limitation, but that should work in most cases.
Now for the audio part, I won't guarantee that what you are serving is correct as a qualitative result, except if you are serving audio stream 'encoded' as cbr mp3. Vbr mp3 is not working properly, and ac3 is untested.
So I don't have any idea if audio ac3 will be served correctly.
esby
Now for audioDub() it should support directstreaming in theory...
Nothing in the direct version should trigger an error, if you are getting one, that mean you are probably getting it before, in the filterchain.
thrivx my appendix
24th May 2005, 00:28
The error only occurs when I attempt to directstream AC3 with AudioDub()... There is no error in the filter chain beforehand. It will stream it correctly until I call AudioDub() which then causes a crash.
thrivx my appendix
24th May 2005, 00:34
For instance...
This is ok:
AVISource("clip1.avi") #huffyuv with AC3 stream
I get direct stream copy and no errors.
But this:
video = MPEG2Source("video.d2v")
audio = DirectShowSource("audio.ac3")
AudioDub(video, audio)
...causes crash.
DirectShowSource is an external plugin, and don't support direct streaming.
Maybe I could try to convert it to get it working.
Now the crash is easily explanable.
Default (externals) plugins say they can direct stream audio and not direct stream video.
This comportment allows dsynth to serve compressed audio with external classic filters. When dsynth detects an external plugins, it searches directly the previous child in the chain and call the corresponding method once he found a direct streaming one.
Now the problem is that directShowSource do not support directstreaming so it skips and tries searching for a previous child, which does not exist, so crash...
esby
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.