Skip to content

Turns your Raspberry Pi into a OSC-controlled videoplayer

License

Notifications You must be signed in to change notification settings

rasmuskreiner/OSCVideo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSCVideo

Turns your Raspberry Pi into a OSC-controlled video player.

Download:

A fully working image can be found here: http://rasmuskreiner.dk/OSCVideo.zip. Flash onto your own SD-card using ApplePiBaker.

To start the server double click the start server icon on the desktop. To quit/reboot or shutdown while software is running please use the OSC command below. Login details for the smb server is: user: pi, pass: oscVIDEO

Manually install:

OSCVideo depends on two libraries:

Install using:
       - cd /home/pi/Documents.
       - git clone https://github.com/rasmuskreiner/OSCVideo.git

Supported methods:

/background_on - Adds a black bottom layer and removes the command line.

/background_off - Removes the bottom layer and reverts to the command line.

/load - Preloads a video to a specific player.
      Args:
            playerNumber (int): Load the file to this player (1..10)
            layer (int): The video layer of the player - currently not used
            fileName (String): The file name

/play - Starts a specific player.
      Args:
            playerNumber (int): The number of the player to start.
            fileName (String): If file not preloaded then specific the file name (optional).

/pause - Pauses a specific player.
      Args:
            playerNumber (int): The number of the player to pause.

/stop - Stops a specific player.
      Args:
            playerNumber (int): The number of the player to stop.

/loop - Loops a specific player. Should be called before loading a player
      Args:
            playerNumber (int): The number of the player to loop.

/opacity - Set the opacity of a specific player.
      Args:
            playerNumber (int): The number of the player to set the opacity on
            opacity (float): The transparency (0..255)

/setPosition - Sets the posistion of a specific player.
      Args:
            playerNumber (int): The number of the player to set the opacity on
            x1 (int): Top left x coordinate (px)
            y1 (int): Top left y coordinate (px)
            x2 (int): Bottom right x coordinate (px)
            y2 (int): Bottom right y coordinate (px)

/heartbeat - Requests a heartbeat sequence specific to QLab. (See soon to come template)
      Args:
            cueName (String): The of the cue in QLab that the method should interact with.

/testImage_on - Displays a test image
      Args:
            cueName (String): The resolution of the test image ['pal', '720', '1080']

/testImage_off - Removes the test image

/quit - Terminates the program loop.
      Args:
            QuitProcedure (String): Use one of thees keywords ['shutdown', 'reboot', 'quit']

Todo's

  • Add the ability to use args
  • Make more user friendly
  • Better feedback to user

About

Turns your Raspberry Pi into a OSC-controlled videoplayer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages