Log in

View Full Version : Pipe Source Filter


mforbes6186
22nd September 2010, 10:59
First post here so hi all :)

I am *relatively* new to avisynth so what I am looking for is right at the edge of my knowledge, i'm hoping someone here can either help or tell me what i'm looking to do is impossible as my eyes are starting to bleed from searching google!

Basically, I am using a modified version of ldecod that takes an MVC encoded file from a 3D blu ray and outputs 2 raw yuv 420 videos. This has been further modified to output to ffmpeg using named pipes with a command similar to the following - "NamedPipe.exe \\.\video0.yuv ffmpeg etc...
"

What i'm trying to figure out is if I can pipe this directly in to an avisynth source filter using spdin or similar for processing, then in to ffmpeg? Does such a source filter exist or would it be easy to write in .net?

Many thanks!

TheFluff
22nd September 2010, 16:17
I don't think any such source filter exists (but I think it's theoretically possible to open named pipes with rawsource()). I don't think it would be hard to write, but its usefulness would be limited as a lot of filters will request frames in a non-linear way.

As far as I know you can't write Avisynth filters in C#; they have to be C++ (or C, or any other language that has a wrapper for the avisynth_c interface; there is such a wrapper for Pascal but not for C#, as far as I know).