<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Video Doesn&#39;t Seem to Play in AllegAVI</title>
		<link>http://www.allegro.cc/forums/view/573764</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 20 Mar 2006 21:02:52 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m toying around with AllegAVI and can&#39;t seem to get it to work.  I&#39;ve compiled the library and successfully linked it to my program, and when I load the clip, it doesn&#39;t give me any error returns.  However, when I go to play the clip, it doesn&#39;t do anything, and just skips on to the next part of the program.  I&#39;m guessing I&#39;m doing something wrong somewhere...</p><p>I&#39;ve tried the demo files included with AllegAVI as well as ones of my own, but still to no avail.  I&#39;m using Visual C++ .NET Express Edition if it makes a difference...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Dale M.A. Johnson)</author>
		<pubDate>Sun, 19 Mar 2006 21:35:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>show us the code.</p><p>i use AllegAVI and it works good.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (A J)</author>
		<pubDate>Mon, 20 Mar 2006 01:26:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="source-code"><div class="toolbar"></div><div class="inner"><table width="100%"><tbody><tr><td class="number">1</td><td>     AllegAVI avi<span class="k2">;</span></td></tr><tr><td class="number">2</td><td>&#160;</td></tr><tr><td class="number">3</td><td>    <a href="http://www.allegro.cc/manual/scare_mouse" target="_blank"><span class="a">scare_mouse</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">4</td><td>  </td></tr><tr><td class="number">5</td><td>    <span class="k1">switch</span><span class="k2">(</span>avi.Open<span class="k2">(</span><span class="s">"video/intro.avi"</span><span class="k2">)</span><span class="k2">)</span></td></tr><tr><td class="number">6</td><td>    <span class="k2">{</span></td></tr><tr><td class="number">7</td><td>    <span class="k1">case</span> <span class="k3">-</span><span class="n">1</span><span class="k2">:</span></td></tr><tr><td class="number">8</td><td>        <a href="http://www.allegro.cc/manual/allegro_message" target="_blank"><span class="a">allegro_message</span></a><span class="k2">(</span><span class="s">"The video file isn't there."</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">9</td><td>        <a href="http://www.delorie.com/djgpp/doc/libc/libc_298.html" target="_blank">exit</a><span class="k2">(</span><span class="n">1</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">10</td><td>    <span class="k1">case</span> <span class="k3">-</span><span class="n">2</span><span class="k2">:</span></td></tr><tr><td class="number">11</td><td>        <a href="http://www.allegro.cc/manual/allegro_message" target="_blank"><span class="a">allegro_message</span></a><span class="k2">(</span><span class="s">"The video codec appears to be missing."</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">12</td><td>        <a href="http://www.delorie.com/djgpp/doc/libc/libc_298.html" target="_blank">exit</a><span class="k2">(</span><span class="n">1</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">13</td><td>    <span class="k1">case</span> <span class="k3">-</span><span class="n">3</span><span class="k2">:</span></td></tr><tr><td class="number">14</td><td>        <a href="http://www.allegro.cc/manual/allegro_message" target="_blank"><span class="a">allegro_message</span></a><span class="k2">(</span><span class="s">"There was an error while trying to open the file."</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">15</td><td>        <a href="http://www.delorie.com/djgpp/doc/libc/libc_298.html" target="_blank">exit</a><span class="k2">(</span><span class="n">1</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">16</td><td>    <span class="k2">}</span></td></tr><tr><td class="number">17</td><td>&#160;</td></tr><tr><td class="number">18</td><td>    avi.Play<span class="k2">(</span><a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a>, <span class="n">0</span>, <span class="n">0</span>, <span class="k1">true</span>, <span class="k1">false</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">19</td><td>    avi.Close<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr></tbody></table></div></div><p>

Am I not importing the clip right, or am I trying to play it the wrong way?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Dale M.A. Johnson)</author>
		<pubDate>Mon, 20 Mar 2006 02:02:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It&#39;s a weird error. I&#39;d say the same as always: &quot;it&#39;s an old lib that uses VfW and you may not have VfW codecs&quot;, but in that case Open should fail.</p><p>Are you setting/changing the video mode after calling Open?</p><p>Do the examples work for you?<br />Have you tried loading your movie with example1?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Oscar Giner)</author>
		<pubDate>Mon, 20 Mar 2006 06:00:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I never could get the examples to compile correctly.</p><p>And--This is wierd--On a whim, I replaced </p><p>avi.Play(screen, 0, 0, true, false);</p><p>with:</p><div class="source-code snippet"><div class="inner"><pre>avi.PlayStart<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
<span class="k1">while</span> <span class="k2">(</span>playing <span class="k3">&amp;</span><span class="k3">&amp;</span> <span class="k3">!</span><a href="http://www.allegro.cc/manual/key" target="_blank"><span class="a">key</span></a><span class="k2">[</span>KEY_ENTER<span class="k2">]</span> <span class="k3">&amp;</span><span class="k3">&amp;</span> <span class="k3">!</span><a href="http://www.allegro.cc/manual/key" target="_blank"><span class="a">key</span></a><span class="k2">[</span>KEY_ESC<span class="k2">]</span><span class="k2">)</span>
<span class="k2">{</span>
    playing <span class="k3">=</span> avi.PlayStep<span class="k2">(</span><a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a>, <span class="n">0</span>, <span class="n">0</span>, <span class="k1">false</span>, <span class="k1">true</span><span class="k2">)</span><span class="k2">;</span>
<span class="k2">}</span>
avi.PlayEnd<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

And...  It works perfectly?  Video shows up, plays sound, and everything.  Doesn&#39;t make a lick of sense to me, since that&#39;s basically all avi.play did for me, right?  Now I&#39;m just confused, but it does work now, so I guess it&#39;s all good. <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Dale M.A. Johnson)</author>
		<pubDate>Mon, 20 Mar 2006 07:59:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>which version are you using ?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (A J)</author>
		<pubDate>Mon, 20 Mar 2006 10:54:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>AllegAVI 1.2
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Dale M.A. Johnson)</author>
		<pubDate>Mon, 20 Mar 2006 21:02:52 +0000</pubDate>
	</item>
</rss>
