0

HD1010 with oudioexpansion em 100



hello all we have a hd 1010 with the em 100 we want to do the following: play an vob file with ac3 audio in it over the em 100 optical out. we have tried it with this script: a2=createobject("roAudioPlayer") a3=createobject("roAudioPlayer") serial=createobject("roSerialPort",0,9600) p=createobject("roMessagePort") serial.SetLineEventPort(p) v1.SetPort(p) rem video mode mode=createobject("roVideoMode") mode.SetMode("1920x1080x60i") REM Settings v1.SetAudioOutput(3) v1.MapStereoOutput(1) 'expander 1 a2.SetAudioOutput(0) a2.MapStereoOutput(2) 'expander 2 a3.SetAudioOutput(0) a3.MapStereoOutput(3) 'expander 3 listen: print "rdy" msg = wait(0,p) if type(msg) = "roVideoEvent" then if msg.GetInt() = 8 then v1.StopClear() a2.Stop() a3.Stop() print "fin" goto listen endif elseif type(msg) = "roStreamLineEvent" then if msg = "play1" then goto start1 endif goto listen start1: REM It might be necessary to pad the audio files,or play some silence REM before the audio files play v1.PlayFile("video1.mpg") a2.PlayFile("audio1a.mp3") a3.PlayFile("audio1b.mp3") print "ply" goto listen but nuthing works. can brightsign play vob with integrated ac3 out over the em 100 1 what is ment by goto listen, i want autoplay and loop the ohter thing: i wan´t to play an mpeg file with 3 mp3 audiofiles (em 100 analoge out); it play´s but it is not synchron.

9 comments

  • 0
    Avatar
    RokuLyndon


    On the last question, playing a video and three separate audio files, you'll need to pad the audio for it to work. That is, add silence to the beginning of your audio files to get then to start in sync.

    Yes, the unit can play a video with ac3 output.  Ok, so your script had some issues. Are you using a serial command to start the file? There is a serial command in your script. Do you want it to play all the time, or as it was currently designed, to wait for input, play, and then stop, and wait for serial input again?

    v=createobject("roVideoPlayer")
    p=createobject("roMessagePort")
    v.SetPort(p)
    serial=createobject("roSerialPort",0,9600)
    serial.SetLineEventPort(p)

    rem video mode
    mode=createobject("roVideoMode")
    mode.SetMode("1920x1080x60i")

    REM Settings
    v.SetAudioOutput(3)
    v.MapDigitalOutput(1) 'expander spdif

    listen:
    msg = wait(0,p)

    if type(msg) = "roVideoEvent" then
    if msg.GetInt() = 8 then
    v.StopClear()
    print "fin"
    endif

    elseif type(msg) = "roStreamLineEvent" then
    if msg = "play1" then goto start1
    endif

    goto listen


    start1:
    REM It might be necessary to pad the audio files,or play some silence
    REM before the audio files play
    v.PlayFile("video1.mpg")
    print "ply"
    goto listen

  • 0
    Avatar
    boris


    i wan´t to play the file by start up (power on) and than loop, without any external trigger
    so please can you change the script therefore
  • 0
    Avatar
    RokuLyndon


    This is a second version that just plays a file called autoplay.vob, in a loop. This script resolution is set to 720x576. THe previous one was set to 1080i. Not sure which you need, but I received an email with this very same question, but asking about a standard resolution.

    v=createobject("roVideoPlayer")
    p=createobject("roMessagePort")
    v.SetPort(p)


    rem video mode
    mode=createobject("roVideoMode")
    mode.SetMode("720x576x50p")

    REM Settings
    v.SetAudioOutput(3)
    v.MapDigitalOutput(1) 'expander spdif

    listen:
    msg = wait(0,p)

    if type(msg) = "roVideoEvent" then
    if msg.GetInt() = 8 then
    goto start1
    endif
    endif

    goto listen


    start1:
    v.PlayFile("autoplay.vob")
    goto listen

  • 0
    Avatar
    boris


    hi

    the script doesn´t work, my screen is black
    what could i do?
  • 0
    Avatar
    boris


    now i tried mpeg with empeded ac3, mpeg witch steeo, vob with stereo........nothing out over optical (em 100) everything made with brightauthor-video works

    with all scripts - no video - no audio
  • 0
    Avatar
    RokuLyndon


    Can you confirm what resolution you need to use for playing back your video? Was it 720x576?
  • 0
    Avatar
    RokuLyndon


    There was a line missing...


    v=createobject("roVideoPlayer")
    p=createobject("roMessagePort")
    v.SetPort(p)


    rem video mode
    mode=createobject("roVideoMode")
    mode.SetMode("720x576x50p")

    REM Settings
    v.SetAudioOutput(3)
    v.MapDigitalOutput(1) 'expander spdif
    goto start1

    listen:
    msg = wait(0,p)

    if type(msg) = "roVideoEvent" then
    if msg.GetInt() = 8 then
    goto start1
    endif
    endif

    goto listen


    start1:
    v.PlayFile("autoplay.vob")
    goto listen


  • 0
    Avatar
    boris


    720x576
  • 0
    Avatar
    boris


    that´s it
    thanks
Please sign in to leave a comment.