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:
When I attempt to open it in VDub2, I get this: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
[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.
+ Reply to Thread
Results 1 to 3 of 3
-
-
Hi Alwyn
Code:clip=Subtitle(clip,"Resolution: " + String(Width) + "x" + String(Height) + \ " | Framerate: " + String(FrameRate) + \ " | Frames: " + String(Length)) Return clip
Similar Threads
-
"Start Time" errors in Subtitle Edit, and "End Time" correct
By Frank_VH in forum SubtitleReplies: 11Last Post: 25th Mar 2024, 09:42 -
AVISynth- "Requesting Info on "Clang"
By Alwyn in forum ProgrammingReplies: 5Last Post: 1st Dec 2023, 13:31 -
getwvkeys.cc code":400,"error":true,"message":"Failed to get license: 405
By Koldunas in forum Newbie / General discussionsReplies: 0Last Post: 27th Sep 2023, 02:44 -
AviSynth Script error: there is no function named "setmtmode"
By minimax in forum RestorationReplies: 27Last Post: 10th Sep 2021, 03:57 -
Avisynth script for "Decimate/Restore->23.976" only
By theholmboy in forum Video ConversionReplies: 2Last Post: 3rd Aug 2021, 14:12



Quote