<?xml version="1.0" encoding="windows-1252"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>VideoHelp Forum - Programming</title>
		<link>https://forum.videohelp.com/</link>
		<description>Everything about programming for Digital Video and multimedia applications (e.g. using Delphi/Java/VB/C/C++ etc.. to write apps for digital video). </description>
		<language>en</language>
		<lastBuildDate>Mon, 09 Mar 2026 06:14:08 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>https://forum.videohelp.com/images/misc/rss.png</url>
			<title>VideoHelp Forum - Programming</title>
			<link>https://forum.videohelp.com/</link>
		</image>
		<item>
			<title><![CDATA["Subtitle" not Working in an AVISynth Script]]></title>
			<link>https://forum.videohelp.com/threads/420097-Subtitle-not-Working-in-an-AVISynth-Script?goto=newpost</link>
			<pubDate>Sun, 22 Feb 2026 04:57:24 GMT</pubDate>
			<description><![CDATA[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()]]></description>
			<content:encoded><![CDATA[<div>Hello all, I'm trying to run a &quot;file information&quot; script to display various parameters of a file. This is the script I'm using:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">clip=LwLibavVideoSource(&quot;H:\Magix Info\Clement5\Magix IYUV 23.98.avi&quot;)<br />
# Get basic properties<br />
<br />
Width = clip.Width()<br />
Height = clip.Height()<br />
FrameRate = clip.FrameRate()<br />
Length = clip.FrameCount()<br />
#ColorFormat = clip.GetColorFormat() # For AviSynth+<br />
AudioSampleRate = clip.AudioRate()<br />
AudioChannels = clip.AudioChannels()<br />
<br />
<br />
# You can then use these variables for further processing or output to a file<br />
# For example, to display some information:<br />
Subtitle(&quot;Resolution: &quot; + String(Width) + &quot;x&quot; + String(Height) + \<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot; | Framerate: &quot; + String(FrameRate) + \<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot; | Frames: &quot; + String(Length))<br />
Return clip</code><hr />
</div> When I attempt to open it in <a class="contentlink" href="https://www.videohelp.com/software/VirtualDub2" target="_blank" rel="nofollow">VDub2</a>, I get this:<br />
<br />
<a rel="Lightbox_0" class='contentlink' style="font-size:11px;" href="https://forum.videohelp.com/attachment.php?attachmentid=91291" ><img alt="Image" class="thumbnail" src="https://forum.videohelp.com/attachment.php?attachmentid=91291" style="max-width:400px;"><br>[Attachment 91291 - Click to enlarge]</a><br />
<br />
The script looks Ok to me, including line 17 (the &quot;Frames&quot; line) but I'm no expert. I would be grateful if someone could point out the error of my ways.<br />
<br />
Thanks.</div>

 ]]></content:encoded>
			<category domain="https://forum.videohelp.com/forums/38-Programming">Programming</category>
			<dc:creator>Alwyn</dc:creator>
			<guid isPermaLink="true">https://forum.videohelp.com/threads/420097-Subtitle-not-Working-in-an-AVISynth-Script</guid>
		</item>
	</channel>
</rss>
