Log in

View Full Version : graphedit files in Avisynth 2.56 scripts


chros
14th September 2006, 12:33
I have a trailer in SVQ3+QDM2+mov format and I wanted to convert into x264+aac.
I have managed to do so with graphedit, gabest's external mp4splitter, ffdshow, and avisynth.

the avs script:
V = DirectShowSource("3v.grf", audio=False, fps=23.96)
A = DirectShowSource("3a.grf", video=False)
AudioDub(V, A)
the 3v.grf file:
1.mov -> MP4splitter -> ffdshow-video-decoder
the 3a.grf file:
1.mov -> MP4splitter -> ffdshow-audio--decoder

There is only 1 problem which I don't understand: the video colorspaces. Avisynth is only connected to ffdshow if I uncheck "Connect to compatible filters only".
I saw (within the OSD feature of ffdshow) that weather I check or uncheck this option the output colorspace is always "YV12,adj". And I saw that "DirectShowSource only accepts YV12, YUY2, ARGB, RGB32 and RGB24 video formats ...".
So what is going on? Or how should I check the output colorspace when it doesn't connect?

Thanks

Ps: the SQV3 (Sorenson 3) codec is in what group of codecs ? (eg. MPEG4 ASP ? )

foxyshadis
14th September 2006, 18:06
In avisynth, try using Info() to see what colorspace you're being given. Also, SVQ3 is based somewhat on MPEG1/2, but includes a lot of proprietary extentions.

chros
14th September 2006, 19:30
In avisynth, try using Info() to see what colorspace you're being given.
Thanks for the hint. I rewrite the script to this, and it works fine (displaying the info) when I'm uncheking the problematic option. (It displays YV12 .)
But how can I see in the other case? Or ... I don't know...
V = DirectShowSource("3v.grf", audio=False, fps=23.976).Info
A = DirectShowSource("3a2.grf", video=False)
AudioDub(V, A)
Also, SVQ3 is based somewhat on MPEG1/2, but includes a lot of proprietary extentions.
In this topic ( http://forum.doom9.org/showthread.php?p=461582#post461582 ) I read:
available MPEG-4 ASP Codecs
ASP codecs are available atm from XviD (binary), DivX5, DivX4/OpenDivX, ffmpeg/ffvfw/ffdshow, 3ivx, Nero Digital, Skal, Quicktime, mpegable, Envivio, Sorenson and many more...
So ? :)
Or Sorenson has written several codecs ? (I know about SQV1)

foxyshadis
14th September 2006, 20:32
Sorenson has an MPEG-4 ASP codec as well, called "MPEG-4 Pro", it's part of the Squeeze suite. Sorenson Video 3 is basically a hybrid technology of all the things they liked from different standards, mostly MPEG and ITU, and random stuff they wanted like layers & transperency. It's the direct predecessor of Spark/FLV1, as well, they both have very similar video quality & features and use the same basic compression engines. I think FLV1's a little simpler, but I might be wrong.

In the other case, I'm not sure, but it's best to leave it on so ffdshow can always choose the best colorspace for the application.

IanB
15th September 2006, 03:28
Get the directshowsource.dll mentioned in this thread, DSS PCM32 audio bug in 2.5.7a3 (http://forum.doom9.org/showthread.php?p=861949#post861949) and use the log option to see how directshow is attempting pin connections. The log should be read with the source code to see what each entry means. If C++ is not your bag attach a copy of the log here, many can interprete it for you.