Skip to content

Instantly share code, notes, and snippets.

@gwenprime
Last active April 21, 2020 01:47
Show Gist options
  • Save gwenprime/4df422e194f84cc0538a7b362e225319 to your computer and use it in GitHub Desktop.
Save gwenprime/4df422e194f84cc0538a7b362e225319 to your computer and use it in GitHub Desktop.
Notes from my talk at Live Code Lab 2019

Tech Tips

  • Melt
    • If you wanna run melt don't try to do it in windows. It is immensely unstable
    • If you're trapped in windows I reccomend VMWare Player with debian/xfce.
      • Make sure you install the nifty VMWare tools inside the linux
    • Start with "melt -query" to see all the available producers, filters and transitions
    • Check out the docs fom MLT
  • VLC
    • You need to explicitly turn on the telnet interface to do what I did. This is annoyingly deep inside VLC's settings.\
      1. Tools>preferences>all>Main Interface: enable Web and telnet
      2. Tools>preferences>all>Main Interface>Lua: set a password in both fields
    • Check out these instructions if my notes above did not help
    • the command "help" will give you whats available and "longhelp " will give details on one command specifically.
    • Here is the tiny boilerplate I used in the talk. Run it with irb -I . -r master.rb
#filename: master.rb
require 'socket'

$vlcSock = TCPSocket.new 'localhost', 4212

#password. put whatever you set it to in place of 1234
$vlcSock.puts "1234"

def vlc arg
  $vlcSock.puts arg
end

The Best of the Rest of the Bad Bad Bad

All the other terrible ideas I didn't have time to talk about.

  • YouTube iFrame API - Youtube has a JS library to load up iFrames with players in them and give you complete programatic control over the iFrame.
  • AVIDemux - The ancient on of Open Source video editors. Has aPython REPL built in, but no docs at all.
  • Natron - GUI fans rejoice. Natron provides a node-base video compositing system. Highlights include: GLSL filter, G'MIC espressions, SeExpr,
    • performance leave more than a little to be desired. I can get like... maybe 15fps on anything cool
  • Adobe API - Adobe has an API for writing plugins to like Premier and such. But if you hack in and use it to live code instead you'll be my hero.
  • OBS - Very Popular streaming tool. Has a Lua and Python scripting api. Also has a C plugin architecture; make of that what you will.
  • LiVES - a GUI tool for VJ stuff in linux. I have never been able to figure out how to operate the thing, let alone script it. But I read in an ancient tome once that it is possible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment