0

simple script



I'm trying to figure out the scripting from the examples and guides provided here, but haven't had much luck. My current needs are to play out a single .mpg file automatically and have it loop forever. I also wish to set the output to 1080i. I have the HD2000 running version 1.1.20. Using the supplied autorun.bas works fine, except for the output resolution part.

Anyone wish to share a few lines of code with me?

thanks,
Wolfeman

2 comments

  • 0
    Avatar
    RokuLyndon


    You can set the videomode in either the playlist or csv file using the following command:



    videomode 1024x768x60p





    You can modify the autorun.bas directly by adding code like the following:



    REM **Force video mode to component**

    display="1280x720x60p"

    vmode=CreateObject("roVideoMode")

    ok=vmode.SetMode(display)

    if debug print "Setting Video Mode to component..."

    if ok = false then print "Failed to set video mode to component.."



    You can find details about different video mode settings in the object reference manual.
  • 0
    Avatar
    wolfeman


    Thank you for your help!  



    I ended up editing the autorun.bas, removing most all of the code and pasting in the stuff posted.  I changed the output mode to 1920x1080x60i.  the card booted up and is running a short HD animation loop.



    I am hoping the ethernet port will be available soon.  We would like to be able to access files on a server and play them out or at least transfer them to the CF card at some point.
Please sign in to leave a comment.