VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    Hello all, I'm trying to run a "file information" script to display various parameters of a file. This is the script I'm using:

    Code:
    clip=LwLibavVideoSource("H:\Magix Info\Clement5\Magix IYUV 23.98.avi")
    # Get basic properties
    
    Width = clip.Width()
    Height = clip.Height()
    FrameRate = clip.FrameRate()
    Length = clip.FrameCount()
    #ColorFormat = clip.GetColorFormat() # For AviSynth+
    AudioSampleRate = clip.AudioRate()
    AudioChannels = clip.AudioChannels()
    
    
    # You can then use these variables for further processing or output to a file
    # For example, to display some information:
    Subtitle("Resolution: " + String(Width) + "x" + String(Height) + \
                     " | Framerate: " + String(FrameRate) + \
                     " | Frames: " + String(Length))
    Return clip
    When I attempt to open it in VDub2, I get this:

    Image
    [Attachment 91291 - Click to enlarge]


    The script looks Ok to me, including line 17 (the "Frames" line) but I'm no expert. I would be grateful if someone could point out the error of my ways.

    Thanks.
    Quote Quote  
  2. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Hi Alwyn
    Code:
    clip=Subtitle(clip,"Resolution: " + String(Width) + "x" + String(Height) + \
                     " | Framerate: " + String(FrameRate) + \
                     " | Frames: " + String(Length))
    
    
    Return clip
    Quote Quote  
  3. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    Good onya Dave, thanks a lot.
    Quote Quote  



Similar Threads

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