PDA

View Full Version : IDEA: A new universal way for frameserving


dimzon
14th March 2006, 09:52
Hi!
AviSynth is great but there are some set of software wich doesn't use VfW API so AviSynth scripts (and even fake AVI) does'nt work with it.

For example perfect iTunes AAC encoder cant encode from STDIN/AVS...

So I propose Yet another way for framserving - virtual drive emulation! Yeah, it's possible to emulate drive wich contains uncompressed AVI's, WAV's, AIFF's and maybe something more formats/containers :)

I have even found source code for drive emulation so we can use it as starting point:
http://chitchat.at.infoseek.co.jp/vmware/vfd.html
http://www.acc.umu.se/~bosse/

What do You think about this idea?

Inc
14th March 2006, 11:38
If an application doesnt support direct .avs file input via VFW or DirectShow I always use Makeavis.exe (the avs -> fake-avi wrapper) delivered with ffdshow and have no Problems. The only must is that FFdshow is configured for decoding 'AVIS' FourCC's in the Decoder/codecs Tab and also in its VFW configuration decoder Tab.

All this depends for shure on that the Appl. supports avi files as input.


BTW (even if stdin is no subject in here): Makeavis.exe also supports serving data (video as Raw AND audio as raw PCM) via stdout.
I used it often for direct AVS->FFmpeg audio encoding.
That was also the trick to make mencoder support avs files as input before the avisynth-c interface was implementated, even if FFdshow/FFvfw is not installed. Simply copy the libmplayer.dll and ffvfw.dll in the directory where mencoder exists (mplayer folder) and add to the codecsconfig file in the Mplayer folder the 'avis' / 'ffvw.dll' description. Voilá

AI
14th March 2006, 12:07
Proxy codec for AVISynth scripts avs2avi-0.3 (http://hmd.c58.ru/files/avs2avi-0.3.zip)

This is "AVS warp to AVI"

This is not command line "VDub" (have name "avs2avi" too)

PS My English is very bad :(

dimzon
14th March 2006, 12:38
Unfortunally current solutions doesn't allow to encode iTunes AAC via AVS

foxyshadis
14th March 2006, 14:08
AI, perhaps "avshost" so it doesn't conflict with the other well-known program?

Dizmon, bizarre idea, but if it can be made to work it sounds interesting. Might be a lot more work than trying to iron out issues with AVIS "fake avis", though...

dimzon
14th March 2006, 14:15
Dizmon, bizarre idea, but if it can be made to work it sounds interesting.
Theoretically it's 100% possible. And it will solve ALL compatibility problems and even add additional unique features. (like mount AVS as virtual drive, network map this virtual drive, encode on other PC e.t.c)
Unfortunally I have not enought expirience to write such piece of software right now... :(

hanfrunz
14th March 2006, 14:41
I had this idea three years ago (http://forum.doom9.org/showthread.php?t=44028) and nobody wanted to code such a tool. Maybe now we get it done :)

@dimzon: maybe you should contact the author of the second link. This looks most promising!

AI
14th March 2006, 15:22
AI, perhaps "avshost" so it doesn't conflict with the other well-known program?

I don't undestand about you... (my English is bad)

possible this:

in AVI-head different FourCC
i.e. if you generate pseudo-avi with ffdshow => in avi-head FourCC be ffds

but if you generate pseudo-avi with avs2avi => in avi-head FourCC be indicate proxy avs2avi

PS if you change avs (framecount or resize) you need regenerate pseudo-AVI

dimzon
14th March 2006, 15:38
I don't undestand about you... (my English is bad)
Есть такая программа avs2avi, по сути - кастрированный до командной строки VirtualDub который открывает avs-скрипт и жмёт его указанным кодеком. Твоя программа тоже называется avs2avi, тебе говорят переименуй во что-нить другое, например в avshost чтобы не было непоняток о какой из этих двух avs2avi идёт речь...

sh0dan
14th March 2006, 18:49
Please keep posts in other languages private.

Fizick
14th March 2006, 18:59
AI is NOT an author of any of avs2avi :)

AI
14th March 2006, 20:32
Fizick, Thanks ;) This is not command line "VDub" (have name "avs2avi" too)dimzon and foxyshadis
I know. I confuse at first time too.

dimzon
15th March 2006, 00:37
http://www.google.ru/search?q=Creating+User-Mode+Device+Drivers+with+a+Proxy+&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official

Fizick
15th March 2006, 05:51
I do not understand it. Suppose we have HardDrive or even RamDrive.
How iTunes read Avi file? directly, byte per byte, until file end?
So, you need in per-byte frameserver, instead of per-frame frameserver, yes?

dimzon
15th March 2006, 10:57
I do not understand it. Suppose we have HardDrive or even RamDrive.
How iTunes read Avi file? directly, byte per byte, until file end?
So, you need in per-byte frameserver, instead of per-frame frameserver, yes?
Yes, we need per-byte fileserver instead of per-frame frameserver.