Log in

View Full Version : Avs Script is not playing on Media Players.


pkfans
18th March 2008, 00:31
I have simple avs script which directshowSource the wmv file with adding black borders. I am using Windows 2003 server and MediaPlayer version 10. AVI synth 2.5 installed on my machine.

Here is the code

DirectShowSource("c:\Bin\tmpFiles\T12BVT003_HDMV.wmv")
AddBorder(0, 60, 0, 60, $000000)


When I tried to play on the media player. It failed to play with error as "Window Media Player Cannot play the file. The Player might not support the the file type or a required codec might not installed on your computer"


What codec required to play this script file.

pkfans
18th March 2008, 18:05
bump for help

IanB
18th March 2008, 21:41
@pkfans, Don't bump your posts, you might get a rule 12. (you can delete/edit your own posts)

That said, only bump for "Attachment Approval" after 24 hours.

And to copy the text from pop-up message boxes, (I assume your err.JPG is an error text), Select the Pop-up and Press Control-C to copy the text to the clipboard, then paste that text into your post.

1st blind guess at you problem, no YV12 codec. As a test try ConvertToYUY2() or ConvertToRGB() at the end of your script. If they help install a YV12 codec (XviD, DivX, etc).

:Edit: And what does clicking "More Information" tell you.

Ranguvar
18th March 2008, 22:07
Or the Helix YV12 codec, if you don't want Xvid/DivX.
http://forum.doom9.org/showthread.php?s=&threadid=56972

pkfans
18th March 2008, 23:44
Thanks IANB and Raghuvar.

after installing codecs. it works.