Saving Stream Key(s) in Settings.xml

Questions about ATEM Switchers, Camera Converter and everything live!
  • Author
  • Message
Offline
User avatar

bryanav8r

  • Posts: 3
  • Joined: Fri Aug 30, 2024 11:59 am
  • Location: Fall River MA
  • Real Name: Bryan Boyle

Saving Stream Key(s) in Settings.xml

PostFri Aug 30, 2024 12:19 pm

Greetings, all. Newish user here migrating from an embedded church service switching system (basically a camera switcher) to the Mini Pro to give us some flexibility and production capabilities over a simplisting A/B switch to feed Castr or the service provided by the installer.

Wondering, to make it easy for the non-tech user, if there is an XML keypair for the Settings.xml file that would allow me to store, in the settings file, the stream key for the distribution/restream services we use. Seems to me (and I may be off base, so if so, please let me know) that, after searching the forum(s), this has been asked before, but never saw any response. I'm not worried about someone pushing the on-air button since the Mini and PC are located in a locked room.

If I'm missing something ...please excuse, but thought I'd throw this out an see if there is any insight or solution that anyone has come across.

TIA

Bryan
Bryan Boyle
Morrisville PA
Fall River MA
Commercial Pilot/CFII/FAA Safety Team
Amateur Extra Class Operator & FCC Volunteer Examiner
Offline

Jim Simon

  • Posts: 36095
  • Joined: Fri Dec 23, 2016 1:47 am

Re: Saving Stream Key(s) in Settings.xml

PostMon Sep 02, 2024 8:42 pm

I'm not aware of this being possible, just because the Streaming Key will sometimes change.

Our handling is to keep a Streaming Keys text file in the Documents folder of the Laptop so it's always easy to Copy/Paste when needed.
My Biases:

You NEED training.
You NEED a desktop.
You NEED a calibrated (non-computer) display.
Offline

Mackenflow

  • Posts: 5
  • Joined: Mon Apr 27, 2020 3:45 am
  • Real Name: John Wright

Re: Saving Stream Key(s) in Settings.xml

PostMon Oct 07, 2024 4:50 pm

I'm running a mini pro direct to a streaming platform, no laptop.

It's very inconvenient to have to re-enter a stream key, grrrr
Offline

Gary Adams

Blackmagic Design

  • Posts: 1518
  • Joined: Sat Aug 25, 2012 6:14 am

Re: Saving Stream Key(s) in Settings.xml

PostMon Oct 07, 2024 8:15 pm

There are two things you can do to save a key.

1) Set the key up in the Software Control and start streaming to verify everything is working. Then use File->Save the Startup State. Wait 30 seconds before shutting down the ATEM. When you next power up even without the ATEM software running you should be able to hit On Air and the stream will start as the key is retained in hardware at this point. Note when you power up it will not auto start streaming.

2) Make a custom XML file for YouTube with the stream key inserted. Load this custom file from the Stream->Load Stream Settings and the key will be inserted in the field. This method uses the software but doesn't require typing in the same key. A custom XML would look like this at the top:

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<streaming>
   <service>
      <name>YouTube Test</name>
      <key>You-Tube-Stream-Key</key>
      <servers>
         <server>
            <name>YouTube Test</name>
            <url>rtmp://a.rtmp.youtube.com/live2</url>
         </server>
      </servers>


I verified both of these work with YouTube. I hope this helps.

Gary
Gary Adams
Blackmagic Design
Offline

whankin2

  • Posts: 7
  • Joined: Fri Nov 06, 2020 8:06 pm
  • Real Name: Woodrow Hankins

Re: Saving Stream Key(s) in Settings.xml

PostFri Oct 18, 2024 7:31 pm

Gary, is there an updated XML file that would help to make the YouTube stream work? I keep getting cache full error and YT not receiving date issues. I am using firmware 9.6.2. I suspect it has to do with the bit rate. Any help is greatly appreciated, because currently I cannot stream our services reliably, thanks

Woodrow
Offline
User avatar

bryanav8r

  • Posts: 3
  • Joined: Fri Aug 30, 2024 11:59 am
  • Location: Fall River MA
  • Real Name: Bryan Boyle

Re: Saving Stream Key(s) in Settings.xml

PostWed Nov 13, 2024 9:45 pm

Thanks, Gary.

I'm using my MiniPro with Castr as my re-distribution feed, so, your #1 seems to be the best way to handle and use #2 as a backup if (when?) some electrical glitch in this 120-year-old electrical wiring building does its thing (my equipment is on the other side of a UPS from the building, so, I'm trying to minimize issues there...) Don't need/want autostreaming, so we're all good from that angle, since we roll slides before any feed from OBS thru the mini and segue to live when we start.

Wondering, though, if I couldn't just put the stream key (it hasn't changed at Castr in 3 years...which is why I chose them...) in the regular settings file using the <key> ... </key> entry? Just a thought.

Thanks much for the feedback and information!

Bryan

Gary Adams wrote:There are two things you can do to save a key.

1) Set the key up in the Software Control and start streaming to verify everything is working. Then use File->Save the Startup State. Wait 30 seconds before shutting down the ATEM. When you next power up even without the ATEM software running you should be able to hit On Air and the stream will start as the key is retained in hardware at this point. Note when you power up it will not auto start streaming.

2) Make a custom XML file for YouTube with the stream key inserted. Load this custom file from the Stream->Load Stream Settings and the key will be inserted in the field. This method uses the software but doesn't require typing in the same key. A custom XML would look like this at the top:

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<streaming>
   <service>
      <name>YouTube Test</name>
      <key>You-Tube-Stream-Key</key>
      <servers>
         <server>
            <name>YouTube Test</name>
            <url>rtmp://a.rtmp.youtube.com/live2</url>
         </server>
      </servers>


I verified both of these work with YouTube. I hope this helps.

Gary
Bryan Boyle
Morrisville PA
Fall River MA
Commercial Pilot/CFII/FAA Safety Team
Amateur Extra Class Operator & FCC Volunteer Examiner
Offline

greggbhill

  • Posts: 3
  • Joined: Sat Sep 28, 2024 9:15 pm
  • Real Name: Gregg Hill

Re: Saving Stream Key(s) in Settings.xml

PostFri Nov 15, 2024 9:41 pm

FWIW:
I frequently do test streams to verify changes in my hardware and software over time. I have a “live” default key and I set up a separate “test” key. I schedule livestreams out a few weeks using the “live” key, and then schedule test streams as needed using the “test” key.

I created 2 macros: 1 that sets the ATEM key to the “live” key, and the other sets the ATEM key to the “test” key. I just press the appropriate macro button prior to starting a stream - no typing, no copy/paste…

Return to Live Production

Who is online

Users browsing this forum: No registered users and 46 guests