# Output remaining clip time to display

**URL:** <https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340>\
**Category:** General\
**Created:** [July 17, 2020, 1:00am UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340 "2020-07-17T01:00:04Z")\
**Posts on this page:** 15\
**Page:** 1

<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:** [July 17, 2020, 1:00am UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340/1 "2020-07-17T01:00:04Z")

</div>

Hi there,

does anyone have an smart solution for the following?: I need to display the remaining clip time (would be great with the clip title given in the Client) on an external display. Maybe via an Raspberry or so? At the end I need SDI, so output via an Decklink output would also be possible.  
Sadly I´m not such an big programmer, so I have not really an idea how to do that. Maybe someone could give me some tipps?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![rrebuffo](https://casparcgforum.org/user_avatar/casparcgforum.org/rrebuffo/32/165_2.png) [@rrebuffo](https://casparcgforum.org/u/rrebuffo)\
**Post date:** [July 17, 2020, 1:20am UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340/2 "2020-07-17T01:20:58Z")

</div>

OSC protocol allows you tu receive that data from the server in real time.  
It’s fairly easy. If you are familiar with ActionScript you could use a template to output that data through caspar. There’s a library you can work with.  
The same applies to Javascript but it would require some node.js server.  
I’ve been thinking of coding a simple app to do that but didn’t find the time to get into it.  
A raspberry solution would be great!

---

<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:** [July 17, 2020, 2:01am UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340/3 "2020-07-17T02:01:08Z")

</div>

For Raspberry there is this one: [https://github.com/dimitry-ishenko-casparcg/timer](https://github.com/dimitry-ishenko-casparcg/timer)  
But it seems that it doesn‘t work anymore. Already spend some hours on it to get it running, but no luck with it 😕

I will look into this Actionscript library. Thanks for the hint. Got an link for it, by the way? 🙂

---

<div class="post-metadata">

**Author:** ![rrebuffo](https://casparcgforum.org/user_avatar/casparcgforum.org/rrebuffo/32/165_2.png) [@rrebuffo](https://casparcgforum.org/u/rrebuffo)\
**Post date:** [July 17, 2020, 2:07am UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340/4 "2020-07-17T02:07:50Z")

</div>

A quick search reminded me that it used some kind of air server also (like the node.js-javascript counterpart). I tested that a couple years ago, even before getting into CasparCG related development.  
It’s the tuio-as3 library that includes osc.  
I think a web based node.js app would be a nice solution. You could make it run easily on a smart tv or a raspberry pi.

---

<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:** [July 18, 2020, 1:46am UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340/5 "2020-07-18T01:46:38Z")

</div>

@Julusian - I saw you´ve build something very promising already here: [https://github.com/GuildTV/ccg-bitc](https://github.com/GuildTV/ccg-bitc)  
Maybe you could adjust this for the new Caspar versions? 🙂

---

<div class="post-metadata">

**Author:** ![mint](https://casparcgforum.org/user_avatar/casparcgforum.org/mint/32/2355_2.png) [@mint](https://casparcgforum.org/u/mint)\
**Post date:** [July 18, 2020, 7:19am UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340/6 "2020-07-18T07:19:28Z")

</div>

You just have to change this block of code for the updated osc addressed: [https://github.com/GuildTV/ccg-bitc/blob/master/index.js#L142](https://github.com/GuildTV/ccg-bitc/blob/master/index.js#L142)

Should be pretty easy to do yourself 😃

---

<div class="post-metadata">

**Author:** ![Julusian](https://casparcgforum.org/user_avatar/casparcgforum.org/julusian/32/12_2.png) [@Julusian](https://casparcgforum.org/u/Julusian)\
**Post date:** [July 18, 2020, 1:06pm UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340/7 "2020-07-18T13:06:38Z")

</div>

@TheYouth yes, that is designed to use a secondary casparcg channel to output a copy of the video with a timecode overlay.  
I had a suspicion I had already used it with 2.2, and managed to find that code so I have pushed a new build which should work with 2.2 and 2.3 now too. [https://github.com/GuildTV/ccg-bitc/releases/tag/v0.3.0](https://github.com/GuildTV/ccg-bitc/releases/tag/v0.3.0)

---

<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:** [July 18, 2020, 1:51pm UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340/8 "2020-07-18T13:51:09Z")

</div>

Yay, that works like a charm. Great!  
Thank you very much for your help @Julusian 🙂

---

<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:** [July 20, 2020, 2:12am UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340/9 "2020-07-20T02:12:21Z")

</div>

@Julusian I edited the source code a little bit to fit for my needs. Veeeery slowly I´m getting into this and understand what happens where. 🙂  
Added this Loop warning as some guys of my crew forget to disable the loop in Caspar. - It´s there if the clip is on loop.  
Guess I will add an “paused” or similar in the middle of the screen when the clips is on hold… We´ll see… so far so good.  
Thanks again for your initial help with this!

 ![grafik](https://casparcgforum.org/uploads/default/original/2X/8/8bbfc6b1afd228e86a0ba74db3161e05b733b886.jpeg)

---

<div class="post-metadata">

**Author:** ![Hos](https://casparcgforum.org/letter_avatar_proxy/v4/letter/h/e56c9b/32.png) [@Hos](https://casparcgforum.org/u/Hos)\
**Post date:** [July 21, 2020, 9:04am UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340/10 "2020-07-21T09:04:51Z")

</div>

@Julusian is it possible to have clean video on sdi and video with timecode on PC preview monitor?

---

<div class="post-metadata">

**Author:** ![Julusian](https://casparcgforum.org/user_avatar/casparcgforum.org/julusian/32/12_2.png) [@Julusian](https://casparcgforum.org/u/Julusian)\
**Post date:** [July 21, 2020, 9:49am UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340/11 "2020-07-21T09:49:52Z")

</div>

@TheYouth sorry, I was going to give you some help with that, but I was buy all weekend. Im glad you got it working.  
The provided layout has been kept intentionally simple as we generally use it via the atem multiviewer, so the text has to be large to be readable.

@Hos yes, you could setup the second channel to use a screen consumer instead of a decklink

---

<div class="post-metadata">

**Author:** ![frozen](https://casparcgforum.org/letter_avatar_proxy/v4/letter/f/9fc29f/32.png) [@frozen](https://casparcgforum.org/u/frozen)\
**Post date:** [September 10, 2020, 5:52pm UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340/12 "2020-09-10T17:52:05Z")

</div>

Hi could I please suggest the feature of a launch option to change the “\*VT A\*” label? something like  
–output.label

---

<div class="post-metadata">

**Author:** ![nicholas.ichkitidze](https://casparcgforum.org/letter_avatar_proxy/v4/letter/n/ecc23a/32.png) [@nicholas.ichkitidze](https://casparcgforum.org/u/nicholas.ichkitidze)\
**Post date:** [August 22, 2021, 6:52am UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340/13 "2021-08-22T06:52:53Z")

</div>

could you please share code?

---

<div class="post-metadata">

**Author:** ![Martin](https://casparcgforum.org/user_avatar/casparcgforum.org/martin/32/1499_2.png) [@Martin](https://casparcgforum.org/u/Martin)\
**Post date:** [October 1, 2021, 11:27pm UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340/14 "2021-10-01T23:27:13Z")

</div>

Hi @Julusian @TheYouth,

I’m kind of a noob in node.js developpement… Maybe in all kind developpement

I started to edit the JS files and hmtl file from the source in visualstudio 2019.  
I can test my chunk and see on [http://127.0.0.1:8081/](http://127.0.0.1:8081/) if it’s work or not. (So happy it’s work as i need)  
When i test it run the chunk in node.js, but i don’t know how to compile in a self exe file.

If you don’t use VS, i can switch for an other ide, your favorite if need.

Thank’s

---

<div class="post-metadata">

**Author:** ![Sidon](https://casparcgforum.org/user_avatar/casparcgforum.org/sidon/32/1299_2.png) [@Sidon](https://casparcgforum.org/u/Sidon)\
**Post date:** [March 3, 2023, 10:40am UTC](https://casparcgforum.org/t/output-remaining-clip-time-to-display/3340/15 "2023-03-03T10:40:30Z")

</div>

Very interesting, I will try to set it up a bit.  
How would you go about scaling it to 2 or more channels?
