Avisynth Layer

General discussion of Anime Music Videos
Locked
User avatar
Chiisai_Ryuujin
Joined: Mon Apr 05, 2004 9:55 am
Org Profile

Avisynth Layer

Post by Chiisai_Ryuujin » Mon Apr 05, 2004 10:02 am

Using Avisynth 2.08, and the following script to attempt to merge two files to play at the same time:

vid=avisource("C:\Documents and Settings\Abram Bussiere\My Documents\VirtualDub-1.5.10\main.avi")
vid2=avisource("C:\Documents and Settings\Abram Bussiere\My Documents\VirtualDub-1.5.10\main2.avi")
Layer(vid, vid2, "add", 128, 640, 480)

I keep on getting the following error in VirtualDub:

Avisynth open failure:
Layer only support RGB32 and YUY2 formats

Could someone help me with this?

User avatar
WilLoW :--)
Joined: Thu Jun 14, 2001 7:07 am
Location: Matsudo, Japan
Contact:
Org Profile

Post by WilLoW :--) » Mon Apr 05, 2004 10:23 am

Your source videos are probably not encoded in RGB32 or YUY2 modes, therefore you have to convert them as the function you are trying to use (Layer) only supports these modes.

You could try to add these lines in your script :
vid.convertToYUY2();
vid2.convertToYUY2();


before calling the "Layer" function

(refer to : http://www.avisynth.org/index.php?page=Convert in case of problem )



And please ask that kind of question in the "Video software Help" Forum next time :wink:

User avatar
WilLoW :--)
Joined: Thu Jun 14, 2001 7:07 am
Location: Matsudo, Japan
Contact:
Org Profile

Post by WilLoW :--) » Mon Apr 05, 2004 10:25 am

remove the ";" symbols at the end of the function calls :oops:

User avatar
Chiisai_Ryuujin
Joined: Mon Apr 05, 2004 9:55 am
Org Profile

Post by Chiisai_Ryuujin » Mon Apr 05, 2004 10:35 am

Thanks for the suggestion.

Didn't work, though. Tried converting to RGB too with same results.

Sorry about posting in the wrong forum. I guess I didn't scroll down far enough while looking through the lists. ^_^;

User avatar
WilLoW :--)
Joined: Thu Jun 14, 2001 7:07 am
Location: Matsudo, Japan
Contact:
Org Profile

Post by WilLoW :--) » Mon Apr 05, 2004 10:48 am

Hmmm, I'm not an Avisynth expert, I think what I told you wasn't correct :(

try, instead of my previous suggestion :

vida=vid.convertToYUY2()
vidb=vid2.convertToYUY2()


Then call the "Layer" function on vida and vidb :
Layer(vida, vidb, "add", 128, 640, 480)

I hope it'll work this time :?

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Post by Zarxrax » Mon Apr 05, 2004 11:16 am

I would highly recommend you use Avisynth 2.5, as its Overlay function is about 500x better than Layer. You could just wait till the new amvapp is out... should bee soon now...

User avatar
Chiisai_Ryuujin
Joined: Mon Apr 05, 2004 9:55 am
Org Profile

Post by Chiisai_Ryuujin » Mon Apr 05, 2004 3:00 pm

Avisynth 2.5 / overlay seems to be working.

Thanks a lot.

Locked

Return to “General AMV”