Log in

View Full Version : Question on Avisynth script


matrix40
10th February 2008, 19:44
Hey question. Ive been playing with graphedit and avisynth scripts with hd -dvd. Ive seen script like this

DirectShowSource("video.grf",fps=23.976,framecount=186759,seekzero=false,seek=true,audio=false)

For graphedit i used halli media splitter and wm dmo video decoder. Nero showtime seems to play the avs files. my question is what would i used and how would my script look like if i wanted to include the audio as well? Ive tried to change the audio to true and tried to used different filters in graphedit.

Thanks for any help

Adub
10th February 2008, 21:44
I would probably get the audio from an external source, like demux the original audio and feed it in using an audio source filter like Nic's or something else.

However, if that is not possible, as I am not sure what kind of video file you are dealing with, you should be able to connect the audio pins in such a way as to route the audio and thus turn audio=false into audio=true.

I don't have graphedit infront of me, so I can't help you anymore right now.

IanB
10th February 2008, 22:03
No, when using .GRF files each instance of DirectShowSource only supports 1 unconnected pin.

So you need something like this :-V=DirectShowSource("Video.GRF", Audio=False, ...)
A=DirectShowSource("Audio.GRF", Video=False, ...)
AudioDub(V, A)
...

Adub
10th February 2008, 23:06
Ah, okay, I haven't used Graphedit in a while, so IanB is right.

matrix40
11th February 2008, 20:30
Cools thanks for the info Ianb out of curiosity which audio filters would you suggestusing when hd-dvd evos(dd+) are your source?

Adub
11th February 2008, 22:32
Try using search in the Audio section.

matrix40
13th February 2008, 00:07
i did a search but couldnt find anything. Most were about other aduio encoding apps. Ive tried different filters but still cant seem to get the audio graph

IanB
13th February 2008, 07:56
Why are we asking about audio filters? If you want to filter the Audio there are many apps better suited to audio effect than AviSynth.

Generally for DirectShow you just want a Splitter and an Audio Codec.

Internal to avisynth we have ResampleAudio, TimeStretch, SSRC, Amplify, Normalise, SuperEQ and the Merge and Mix filters for channel shuffling.

matrix40
13th February 2008, 09:38
I was trying to see if i could get nero recode to recognixe the avs script with the audio and see if it would encode that. Nero showtime plays the video avs script i make.

i tried this script
V=DirectShowSource("video.grf",fps=23.976,framecount=186759,seekzero=false,seek=true,audio=false)
A=DirectShowSource("Audio.grf", Video=False,)
AudioDub(V, A)
(for the audio after trying different filters i got sonic hd demuxer and ffdshow audio decoder)
I get a script syntax error line 2 colum 45. im just trying different way of doing things to see what works and what doesnt. Sort of my trial and error with small steps to get closer to the knowledge you all have on understanding how and why things work

Leak
13th February 2008, 10:54
I get a script syntax error line 2 colum 45.
That's because you have a trailing comma after "Video=False" - just remove it.