VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Member
    Join Date
    Jul 2001
    Location
    United States
    Search Comp PM
    It's a pain in the A---

    I downloaded AVIsnyth 2.5 because I was told it was a way to get 2 difference videos to play on one screen.

    But, every time I try to do something I get a "Scrip Error"

    Even the most simple of things can't been done

    For example?

    I found the following scrip on this site how to guide to make a split screen:

    AVISource("e:cap.avi")
    h1=crop(0,0,360,576)
    h2=crop(360,0,360,576)
    StackHorizontal(h2,h1)

    But when I run it I get a message that the Crop command can't be used to "resize" a clip (and yes I did change the file name to one that is on my computer )

    Even if in the very rare case I do get somthing to happen. Media Player won't play the resulting file!

    It tries to contact Microsoft to download a code it keep saying it need.

    Howewver, if I click of files, then propities, I do get one frame to appear with alot of noise and upside down!

    Can someone please help

    All I want is to play 2 difference videos, side by side
    Quote Quote  
  2. First, your script for h2 says to crop 360 from the left side and at the same time only allow frame less than 360 from the right side. You end up with nothing there and I assume that is what avisynth is not liking. As for playback causing problems and media player asking to download a codec, that is not avisynths fault. First, stop using Media player. Use zoomplayer or something like that. Second, you didn't mention what codec you are using to compress/convert to so can't really help you there except to suggest trying to play it in VLC. If VLC can't play it then you really do have problems.

    -Suntan
    Quote Quote  
  3. I was having a problem with 2.5 also. I put:

    ConvertToYUY2()

    as the last line in my script and now it plays fine. I'm a newb to the whole AVISynth thing, but I thought I would chime in. Good luck!
    Quote Quote  
  4. Should be:
    AVISource("e:cap.avi")
    h1=crop(0,0,360,576)
    h2=crop(360,0,720,576)
    StackHorizontal(h2,h1)
    Quote Quote  
  5. Member burnman99's Avatar
    Join Date
    Apr 2004
    Location
    Arkansas/USA
    Search Comp PM
    Ensign:
    You've got bad syntax i think

    Try this:

    AVISource("e\:cap.avi")
    h1=crop(0,0,360,576)
    h2=crop(360,0,720,576)
    StackHorizontal(h2,h1)

    Good Luck!

    Rog
    Quote Quote  
  6. Member
    Join Date
    May 2001
    Location
    United States
    Search Comp PM
    AVISynth comes with a pretty good set of documentation. You should probably have a look at them.
    ICBM target coordinates:
    26° 14' 10.16"N -- 80° 16' 0.91"W
    Quote Quote  
  7. Member
    Join Date
    Jul 2001
    Location
    United States
    Search Comp PM
    First, thanks for the replies.

    But, nothing you have written has worked

    Everytime I try to use the StackHorizontal command I get a message telling me that:

    Crop:You Can't use Crop to enlarge or "shift "a clip.
    (C:\Documents\text_files\atack.avs, line 2)

    I get this in both media player 6.4 and VirtualDub 1.4

    Yet, I have found that some files that did not play in the former do play in the latter

    So, if the sample scrip you have posted are correct, why do I keep getting the "crop" error message?

    P.S.

    >pretty good set of documentation. You should probably have a look at them.

    That was the first thing I did

    It was of no help
    Quote Quote  
  8. Member
    Join Date
    May 2001
    Location
    United States
    Search Comp PM
    This script works for me:

    LoadPlugin("d:\program files\HOLDER\mpeg2dec3.dll")
    mpeg2source("d:\Experiment\CHHTEST.D2V")
    v1=crop(0,0,352,480).trim(100,0)
    v2=crop(352,0,352,480)
    stackhorizontal(v1,v2)
    ConvertToYUY2()

    Notice that in variable "v2" the first 352 and the second 352 add up to 704, which is the width of the original video. If you EXCEED the width (or the height) of the original video, you will get the error you mentioned.

    This script is for NTSC. From your values, I am assuming that you are PAL. If not, then that is your problem.
    ICBM target coordinates:
    26° 14' 10.16"N -- 80° 16' 0.91"W
    Quote Quote  
  9. Member
    Join Date
    Jul 2001
    Location
    United States
    Search Comp PM
    I got it to work

    But....

    I have 3 short questions

    1: how can I get 2 difference videos to be shown side by side

    2: how can I get VirtualDub to be the defult player for AVS files

    3: how can I record the output of AVIsynth to a VCD?
    (I tried, but VirtualDub can't detect my AVI capture card, and my other programs eithr send a error message or don't even notice a AVS file)

    P.S I live in a NTSC world
    Quote Quote  
  10. Member adam's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Search Comp PM
    1:

    v1= AVISource("e:clip1.avi")
    v2= AVISource("e:clip2.avi")
    StackHorizontal(v1,v2)

    2: Hold shift and right click on an AVS file. Select open with and then select "choose program." If you see VirtualDub highlight it, otherwise hit browse and point it to the vdub executable. Then click on the box titled, "always use the selected program to open this kind of file." Hit Ok.

    3: You could just hit file/save avi in VirtualDub and select raw avi. This will create an uncompressed (huge but no quality loss) avi file which you can load into any mpeg encoder to encode to vcd compliant mpeg1. You could also frameserve from Vdub to another encoder by following the frameserving guide on this site. A better option would be to just load the AVS directly into your encoder. You could, for example, do everything in the free trial version of TMPGenc. Just add this line to the end of your script...

    ConvertToRGB32

    And then load the AVS file into TMPGenc. Hit browse on video source and tell it to show all files, if AVS isn't an opiton. Load the appropriate NTSC VCD template (NTSC if framerate is 29.97 and NTSCfilm if framerate is 23.976fps.) and then just tell it to encode.
    Quote Quote  
  11. Member
    Join Date
    Jul 2001
    Location
    United States
    Search Comp PM
    Thank You

    Your Mighty Mop of Justice has done it again

    I now have what I wanted all along

    You would think with a college education I could have done it just by reading the AVIsymth help files.

    But, some things are better left to the nerds
    Quote Quote  
  12. Member adam's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Search Comp PM
    Originally Posted by Ensign
    But, some things are better left to the nerds
    I resemble that remark!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!