It is currently 26 Jun 2017, 23:19



[Prototype] Controlling CasparCG with Elgato Stream Deck

Moderators: Macey, Jonas Hummelstrand, didikunz

[Prototype] Controlling CasparCG with Elgato Stream Deck

Postby k0d » 24 May 2017, 15:31

I've been looking for a cheap device for controlling CasparCG, something with tactile buttons but easily customisable. I think I have now finally found that device!

The Elgato Stream Deck https://www.elgato.com/en/gaming/stream-deck

It has 15 buttons, each with their own little LCD screen behind. 72x72 pixels per button. It seems to have bee developed primarily for gamer-broadcasters, Twitch/youTube etc. But I think it'd be perfect for controlling CasparCG with.

So I ordered one, it arrived yesterday so I set about developing a prototype. It doesn't do so much yet, but I have big plans for it! You can see below what I have made so far. I'm testing the performance at the moment to see what refresh rate I can get out of each button. It seems I can update one button at a decent (~30) fps.

I'd love to hear what you think, is it something you think you could use? How would you use it?

// Mark Olsson

IMG_4577.JPG
IMG_4577.JPG (158.65 KiB) Viewed 1769 times
k0d
 
Posts: 11
Joined: 16 Mar 2017, 20:39

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby Jesper Stærkær » 24 May 2017, 16:01

Got mine today. It is awesome!
Jesper Stærkær
Independent Consultant at SuperFly.tv
User avatar
Jesper Stærkær
 
Posts: 853
Joined: 13 Apr 2010, 18:06
Location: Trondheim, Norway

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby didikunz » 24 May 2017, 16:02

That seems to be an interessting device.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3478
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby Jesper Stærkær » 24 May 2017, 16:12

Oh yeah, it is _the_ ultimate control device at the market at the moment. Have been looking for such a device for 5-7 years now, and really didn't want to spend 20 times the price of this one on the JLCooper alternatives.
Jesper Stærkær
Independent Consultant at SuperFly.tv
User avatar
Jesper Stærkær
 
Posts: 853
Joined: 13 Apr 2010, 18:06
Location: Trondheim, Norway

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby k0d » 24 May 2017, 17:13

What's your thoughts on integrating it to CasparCG? I guess the NodeJS API you've worked on?

I was thinking of integrating it with the official client....but am not 100% sure yet.
k0d
 
Posts: 11
Joined: 16 Mar 2017, 20:39

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby didikunz » 24 May 2017, 19:15

Is there a kind of API for it?
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3478
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby k0d » 24 May 2017, 19:24

No official API yet, but someone has started to make a nodeJS library for it.

https://github.com/Lange/node-elgato-stream-deck

Would you like one in another language? I can code just about anything :)
k0d
 
Posts: 11
Joined: 16 Mar 2017, 20:39

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby didikunz » 24 May 2017, 19:33

No, I saw, that it can create hotkeys and to capture them from an app is easy.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3478
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby k0d » 24 May 2017, 19:48

I'm thinking that to be able to send custom graphics in realtime to the buttons could be useful...
k0d
 
Posts: 11
Joined: 16 Mar 2017, 20:39

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby zbang » 24 May 2017, 19:51

There doesn't seem to be much documentation for the device/software. Are there resources not on elgato's web site? The windows installer doesn't containing anything interesting that I could see.
zbang
 
Posts: 44
Joined: 10 Apr 2015, 02:09

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby k0d » 24 May 2017, 22:40

Have started to write an API in Swift, I've got button states working fine, will write the code to send images to the device tomorrow hopefully.

Screen Shot 2017-05-24 at 23.35.34.png
Screen Shot 2017-05-24 at 23.35.34.png (76.77 KiB) Viewed 1701 times
k0d
 
Posts: 11
Joined: 16 Mar 2017, 20:39

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby emisiona » 26 May 2017, 08:54

Connecting it to a raspberry pi and being able to configure it via webgui will be so awesome...

I love the future!!
User avatar
emisiona
 
Posts: 137
Joined: 27 Jun 2014, 09:45
Location: Barcelona

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby k0d » 26 May 2017, 11:37

Yeah emisiona...that sounds like a good idea. Would you expect the Pi to talk AMCP back to a CasparCG server?
k0d
 
Posts: 11
Joined: 16 Mar 2017, 20:39

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby zbang » 26 May 2017, 17:07

k0d wrote:Have started to write an API in Swift, I've got button states working fine, will write the code to send images to the device tomorrow hopefully.


Are you talking to the device directly or to the windows app? I haven't seen much doc on the device; are you reverse-engineering the API? It looks very interesting but I don't want to pop the (probably) $250 for the device without reading more about it.

thx.
zbang
 
Posts: 44
Joined: 10 Apr 2015, 02:09

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby emisiona » 26 May 2017, 19:05

I went ahead and ordered one too, it looks super promising.

k0d, sending amcp commands from a Pi to a CCG server has to be pretty straight forward. The hard part would be programming a webgui to configure the elgato keyboard, button images, etc.
User avatar
emisiona
 
Posts: 137
Joined: 27 Jun 2014, 09:45
Location: Barcelona

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby k0d » 26 May 2017, 22:38

@emisiona Great that you ordered one! I really love mine.

It was super easy to link it with the AMCP nodejs lib, so have already got control of my CasparCG server with it. Of course, linking the buttons to specific macros and fetching some images will require some work. I'd say it's all very easy...just needs a little time.

@zbang Right now I'm using the nodeJS library to talk to the device. Someone has already started to reverse engineer the API. I've found some methods that they haven't implemented/mentioned yet. So I'll look to implement them.

Right now, there isn't simple integration between the device and CasparCG server, but it's only just been released and we already know how how the API works. So in the near future I'd expect to see a lot of implementations in various languages.

What I'm keen to know is how you'd think of using it? what would you wish the buttons to do when you press them and what info would you like to display on the buttons? A generic library is easy to make and is kind of already available, but I don't have production experience with CasparCG yet so would like to hear of some real-life examples of how you might want to use the Stream Deck to control CasparCG.
k0d
 
Posts: 11
Joined: 16 Mar 2017, 20:39

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby k0d » 29 May 2017, 14:20

I've committed the code I've made so far for the Swift API, it still has only button status support, but I'm working on full support!

https://github.com/open-broadcasting/st ... -api-swift
k0d
 
Posts: 11
Joined: 16 Mar 2017, 20:39

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby TheYouth » 01 Jun 2017, 13:52

Got mine today :)
It´s an sweet handy device that fits easy in the backpack.
Hopefully it will get OSC and Midi support in the future, that would be awesome.
TheYouth
 
Posts: 126
Joined: 01 Jul 2013, 09:23

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby emisiona » 01 Jun 2017, 16:08

By now, the easiest and fastest way for us to get the Stream Deck working with CasparCG is by using the "Website" buttons to make url calls. Just installing xampp and writing a few lines of php code does the trick.

For example, to play a video file we use something like this:
Code: Select all
http://127.0.0.1/playvideo.php?filename=amb&channel=1&layer=1


And the php code would be something like:

Code: Select all
<?php
require("./CasparCG-PHP/CasparServerConnector.php");
include_once("./config.php");

$connector = new CasparServerConnector($config['ip'], $config['port']);

$channel = $_GET['channel'];
$layer = $_GET['layer'];
$video = $_GET['filename'];
$response = $connector->makeRequest("PLAY " . $channel . "-" . $layer . "\"" . $video . "\"");
$response = $connector->makeRequest("LOADBG " . $channel . "-" . $layer . " EMPTY MIX 20 AUTO");
?>


I've trying to start a node webkit client using Lange's library, but I'm getting errors from the arrow functions :-s
User avatar
emisiona
 
Posts: 137
Joined: 27 Jun 2014, 09:45
Location: Barcelona

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby TheYouth » 03 Jun 2017, 16:00

I´ve emailed Elgato and asked for an SDK and Midi / OSC / Telnet Support:

"We're thrilled to see so many people interested in integrating Stream Deck with third party solutions. With Stream Deck's custom actions for global keyboard shortcuts you can start integrating for demo setups right away while we evaluate our options for a more developer-friendly SDK."

Midi / OSC / Telnet request hast been forwarded to the development department....

We´ll see...
TheYouth
 
Posts: 126
Joined: 01 Jul 2013, 09:23

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby k0d » 03 Jun 2017, 16:02

That's awesome! Maybe you can send them a link to this forum topic?
k0d
 
Posts: 11
Joined: 16 Mar 2017, 20:39

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby Theo » 06 Jun 2017, 17:13

In the netherlands I see this device for €150,- !
Regards,
Theo Kooijmans
UniversalDV
User avatar
Theo
 
Posts: 92
Joined: 03 Jun 2012, 10:44
Location: The Netherlands

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby Armin Hafizovic » 07 Jun 2017, 08:47

Nice! :)

I will try to get one Stream Deck, it looks really interesting and cool.
Armin Hafizovic
CasparCG Client Lead developer at SVT
User avatar
Armin Hafizovic
 
Posts: 31
Joined: 06 Feb 2013, 10:22

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby didikunz » 07 Jun 2017, 09:33

I had a converstion with their support yesterday. They will hopefully soon release a SDK that can send icons to the Stream Deck, so that a more elegant integration in custom client software would be possible.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3478
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby Armin Hafizovic » 07 Jun 2017, 09:50

didikunz wrote:I had a converstion with their support yesterday. They will hopefully soon release a SDK that can send icons to the Stream Deck, so that a more elegant integration in custom client software would be possible.


Sounds good! :)
Armin Hafizovic
CasparCG Client Lead developer at SVT
User avatar
Armin Hafizovic
 
Posts: 31
Joined: 06 Feb 2013, 10:22

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby Jesper Stærkær » 07 Jun 2017, 13:17

Check out @langes node library!
Jesper Stærkær
Independent Consultant at SuperFly.tv
User avatar
Jesper Stærkær
 
Posts: 853
Joined: 13 Apr 2010, 18:06
Location: Trondheim, Norway

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby phallyka » 16 Jun 2017, 15:45

I guess the NodeJS API you've worked on?


^Goldenslot^
phallyka
 
Posts: 1
Joined: 19 May 2017, 10:53

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby Jesper Stærkær » 16 Jun 2017, 21:03

No, this one from @lange, the creator of NodeCG:

https://github.com/Lange/node-elgato-stream-deck
Jesper Stærkær
Independent Consultant at SuperFly.tv
User avatar
Jesper Stærkær
 
Posts: 853
Joined: 13 Apr 2010, 18:06
Location: Trondheim, Norway

Re: [Prototype] Controlling CasparCG with Elgato Stream Deck

Postby jondezwaan » 26 Jun 2017, 17:35

I'm trying to control the regular CasparCG Client with the Stream Deck with just regular hotkeys (f1, f2 etc) assigned to the buttons, but the client doesn't respond to it, other software does however. Anyone else having the same?

Setup: CasparCG Client V2.0.8 on ZBook Studio G4 with Windows 10 Pro.

Thanks!
jondezwaan
 
Posts: 16
Joined: 04 Sep 2015, 08:16
Location: The Netherlands


Return to General discussions

Who is online

Users browsing this forum: k0d and 5 guests

cron