question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request: Dynamic Stream Title Naming

See original GitHub issue

With the current custom function template it is possible to set custom or remove track names. I’m searching for a way to set them in a dynamic way, for example name the audio track Language + Codec + Channel Count @ Bitrate = German E-AC3 Atmos 5.1 @ 640 kbps. Same for subtitles eg. Language + Disposition = German Forced or English SDH

I think this should be possible with the custom functions, but I just don’t know how I could implement this.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mdhigginscommented, May 26, 2022

My sample was missing the HDR parameter which the video title was including and thus was triggering an exception so your video custom function wasn’t working, had it on my test and on the wiki just forgot to include it in the sample

3ba66d7cb80639f12962a088d5304005a05c4eaf

That fixes it

def streamTitle(mp, stream, options, hdr=False, imageBased=False, path=None):
1reaction
mdhigginscommented, May 26, 2022

I mean this is python 101 I can’t hold your hand through all of it, watch a video on string formatting

"%s %d %sk" % (options.get("codec"), options.get("channels"), options.get("bitrate"))
Read more comments on GitHub >

github_iconTop Results From Across the Web

Two Quick Ways to Add Dynamic Text to Your Live Video ...
When you open Livecounts you'll see it's very simple. Just click below the text and a pop up box will appear to ask...
Read more >
Nginx RTMP dynamic stream name
I'm trying to create a simple RTMP/HLS server to be able to stream to and to view streams from, however, I am unable...
Read more >
Request: Dynamic Variable for Media Player Source Name ...
I'm looking for a way to dynamically change the name of a button to display the name of a Media Player source image....
Read more >
ADVANCED Stream Title Tips For MORE Twitch Viewers
Creating better titles for your Twitch stream is one of the easiest, but most overlooked methods for getting more viewers to your channel....
Read more >
Configure a dynamic screen name for a list screen
On the Applets form, select a list screen to inherit the dynamic screen name. Apply an existing UI parameter in the UI parameter...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found