Avisynth Layer
- Chiisai_Ryuujin
- Joined: Mon Apr 05, 2004 9:55 am
Avisynth Layer
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?
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?
- WilLoW :--)
- Joined: Thu Jun 14, 2001 7:07 am
- Location: Matsudo, Japan
- Contact:
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
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
- WilLoW :--)
- Joined: Thu Jun 14, 2001 7:07 am
- Location: Matsudo, Japan
- Contact:
- Chiisai_Ryuujin
- Joined: Mon Apr 05, 2004 9:55 am
- WilLoW :--)
- Joined: Thu Jun 14, 2001 7:07 am
- Location: Matsudo, Japan
- Contact:
- Zarxrax
- Joined: Sun Apr 01, 2001 6:37 pm
- Contact:
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...
Sammie-Roto - Free rotoscoping tool
- Chiisai_Ryuujin
- Joined: Mon Apr 05, 2004 9:55 am