# Heart rate overlay

**URL:** <https://casparcgforum.org/t/heart-rate-overlay/1518>\
**Category:** General\
**Created:** [February 22, 2019, 1:50pm UTC](https://casparcgforum.org/t/heart-rate-overlay/1518 "2019-02-22T13:50:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flo](https://casparcgforum.org/letter_avatar_proxy/v4/letter/f/b38774/32.png) [@Flo](https://casparcgforum.org/u/Flo)\
**Post date:** [February 22, 2019, 1:50pm UTC](https://casparcgforum.org/t/heart-rate-overlay/1518/1 "2019-02-22T13:50:20Z")

</div>

Hi guys,

I love CasparCG and we use mostly own HTML templates for lower thirds, countdown overlays and stuff like that.

Now we are working on bringing a live heart rate into CasparCG but we have no idea how to do it.  
In OBS it’s pretty easy since we use window capture of Golden Cheetah and the live heart rate.  
As far as I know window capturing is not possible in Caspar and therefore not an option.  
What else can we do? My first thought was to get the heart rate into json format and read it into the html template via AJAX but I don’t know any software which is capable of writing health informations like that into a local JSON-File in real time.

What are your thoughts?

---

<div class="post-metadata">

**Author:** ![hreinnbeck](https://casparcgforum.org/user_avatar/casparcgforum.org/hreinnbeck/32/154_2.png) [@hreinnbeck](https://casparcgforum.org/u/hreinnbeck)\
**Post date:** [February 22, 2019, 2:12pm UTC](https://casparcgforum.org/t/heart-rate-overlay/1518/2 "2019-02-22T14:12:43Z")

</div>

You could use ffmpeg to do the screencapture. You could also do the screen capture with NDI Scan converter from Newtek NDI tools.

---

<div class="post-metadata">

**Author:** ![Flo](https://casparcgforum.org/letter_avatar_proxy/v4/letter/f/b38774/32.png) [@Flo](https://casparcgforum.org/u/Flo)\
**Post date:** [February 22, 2019, 2:44pm UTC](https://casparcgforum.org/t/heart-rate-overlay/1518/3 "2019-02-22T14:44:01Z")

</div>

Thanks! That sounds great! I’m afraid I don’t know anything about embedding about embedding one of those to my rundown in Caspar. Is there any resource you would recommend?

---

<div class="post-metadata">

**Author:** ![TheYouth](https://casparcgforum.org/user_avatar/casparcgforum.org/theyouth/32/24_2.png) [@TheYouth](https://casparcgforum.org/u/TheYouth)\
**Post date:** [February 22, 2019, 5:39pm UTC](https://casparcgforum.org/t/heart-rate-overlay/1518/4 "2019-02-22T17:39:00Z")

</div>

Why do you need Caspar for that? If it´s a simple screencapture do a PiP in your vision mixer?

---

<div class="post-metadata">

**Author:** ![Flo](https://casparcgforum.org/letter_avatar_proxy/v4/letter/f/b38774/32.png) [@Flo](https://casparcgforum.org/u/Flo)\
**Post date:** [February 22, 2019, 6:50pm UTC](https://casparcgforum.org/t/heart-rate-overlay/1518/5 "2019-02-22T18:50:53Z")

</div>

It depends on the workflow. We use Blackmagic all the way to our LiveU endcoder. Graphics are generated by Caspar send via a Blackmagic Decklink Duo - and it does A LOT more than just being the device for displaying the heartbeat.  
That said we use the ATEM Television Studio Pro 4k, which provides ONE Upstreamkey. So we would have to make a choise: PiP OR Chromakey for transparency. Both at the same time won’t happen with this mixer (yeah, I’ve heard of that macro voodoo using the DSK for PiP).  
OR we can do it with Caspar and use one of two DownstreamKeys + all the other stuff we already do with Caspar.  
So the latter option sounds pretty good to me, but we need to get it done within Caspar.

---

<div class="post-metadata">

**Author:** ![TheYouth](https://casparcgforum.org/user_avatar/casparcgforum.org/theyouth/32/24_2.png) [@TheYouth](https://casparcgforum.org/u/TheYouth)\
**Post date:** [February 24, 2019, 11:21pm UTC](https://casparcgforum.org/t/heart-rate-overlay/1518/6 "2019-02-24T23:21:50Z")

</div>

So I would use Caspar as a DSK with Key+Fill, so your Upstream Key is free for the PiP. If it won´t fit in your workflow at all then put the Heartbeat into Caspar via an additional MiniRecorder or other type BMD card, create a layer with that input and resize/transform it within Caspar.

---

<div class="post-metadata">

**Author:** ![markusnygard](https://casparcgforum.org/user_avatar/casparcgforum.org/markusnygard/32/8_2.png) [@markusnygard](https://casparcgforum.org/u/markusnygard)\
**Post date:** [June 22, 2020, 10:51am UTC](https://casparcgforum.org/t/heart-rate-overlay/1518/7 "2020-06-22T10:51:24Z")

</div>

According to Golden Cheetahs homepage it can export data as CSV or JSON.  
Wouldnt (I know more work) the right workflow be to generate the graphics in CasparCG instead of doing a PiP?
