Automate 24/7 Stream for a scheduled Playlist

I use a concept called blocks which is maybe the same as carts. I use two template editors, one for the timeline and one for the overlays. A timeline consists of at min 4 blocks, S,P,F,E (start,program,fill,end) and 20 custom blocks (or carts). The P block only has 1 file in it - the main file for the time slot. The F block has on directory in it will fill videos etc in it. Any Block that has only one entry in it can have multiple inserts in it. So in the main program P Block, after 10 minutes, it can play another block (insert) and then resume where it left off
1610753349912.png
1610753349912.png
1610753368548.png
 
Above is a tree printout of an individual schedule. You can see the blocks (Carts?). Also at the bottom, you can see the overlays schedule. In This example, we are running S (start), block 1, then Block P, then F -Fill and E end. In the P block you see that I have inserted another copy of block 1 into the p block and it breaks up the p block into before and after block 1. In the overlay schedule at the bottom, the g block is "global" and is time from the start of the time slot while block s and 1 start from the start of those blocks The numbers at the left are the time in seconds from the start + duration. I told it to make a program 30 minutes long , so it did - 1800 seconds = 30 minutes.
 
KIOF uses a Web based Automation system I up load to their FTP every day.

You are on the right track. You make a base for the show, because that is going to take the most time out of the hour. Then you fill in the rest. For a good reference check out Simian from BSI (BSIUSA.com) It uses "+" is play/do next "@" is at this time do this regardless. and blank is wait for the trigger. Stations use Relays and Tones to trigger the local breaks for syndication. Then there is Play at this time only after the current file is done. With those 3 operations, you can program your OBS with Scenes and Playlists. All I am doing is slaving them to Hotkeys then having AutoHotkey fire those Key Strokes off Task Scheduler to set hard times. Once My full 24h is up I'll post a link and make a video on how I programmed it. I'm not at the level you are with Any form of Codes so I have to use training wheels, but I'm still riding a bike!... lol
 
KIOF uses a Web based Automation system I up load to their FTP every day.

You are on the right track. You make a base for the show, because that is going to take the most time out of the hour. Then you fill in the rest. For a good reference check out Simian from BSI (BSIUSA.com) It uses "+" is play/do next "@" is at this time do this regardless. and blank is wait for the trigger. Stations use Relays and Tones to trigger the local breaks for syndication. Then there is Play at this time only after the current file is done. With those 3 operations, you can program your OBS with Scenes and Playlists. All I am doing is slaving them to Hotkeys then having AutoHotkey fire those Key Strokes off Task Scheduler to set hard times. Once My full 24h is up I'll post a link and make a video on how I programmed it. I'm not at the level you are with Any form of Codes so I have to use training wheels, but I'm still riding a bike!... lol
Just because I can code, does not mean that I am not learning also LOL. I have training wheels also. Thank god for google and on line doc to help me do a task. Thousands of people have generously offered their pain to spare my pain. Please remember that I am writing using a public access channel model which is totally un-attended. Doesn't mean there aren't hooks for future capabilities but the main drive is to get it up (phase 1) and start scheduling. One of the features I want to do is to have a scene where you get a what's coming up next scene, either with just words (easy) or words and a small window in window of the next main program. You can do lots of thing if you are outside of OBS. As you say, a traffic director. I do like the term "TRAFFIC DIRECTOR". In my traffic director, it cues up the next show to run while running the current program. So I have access to a ready to run (next) scheduled program, from which I can extract all sorts of info.
 
Got ya! Traffic Director is mostly the position but I do like it in terms of the Program too. Hell it does most of the work for me might as well get the title too!

OBS has a lot of tools baked in too. If you were looking at "Up next" then maybe putting the Title/Info into a Notepad and have OBS read that. Once you save a notepad, OBS auto updates the words. I don't mind having to step outside into a 3rd system/program if I am using it with the rest. Kida like using a Christmas Tree Timer to "Automate" your Evening Lamps. I've had to use IP plugs to automate things before. It is a very Rube Goldberg way to look at it, but it works.
 
What I am working on now is metadata. In the video file name, I'm setting it up like this "20100112 [title = dawd,genre = pets,author = dave famous] - ep 10 my dog story.mp4. In obs I have sources named OVERLAY_METADATA_genre or _title or _author. These text will show up in the obs sources and be scheduled dynamically. If you want to invent your own source metadata, you just create a source called overlay_metadata_XXXX and put a XXXX= something in the file name. Cool? For larger texts, will just use a text file. I do plan on putting tv guides and up next info in files that are updated dynamically. When writing a full blown program, you can do all sorts of custom things. Where there is a WANT, there is a way.
 
FYI - Command line args for OBS

Launch Parameters
OBS Studio supports the following launch parameters for automation and portable use

Parameter Description
--help, -h Get list of available parameters.
--version, -v Get OBS version.*
--startstreaming Automatically start streaming.
--startrecording Automatically start recording.
--startvirtualcam Automatically start virtual camera.
--startreplaybuffer Automatically start Replay Buffer.
--collection "name" Start with given scene collection.
--profile "name" Start with given profile.
--scene "name" Start with given scene.
--studio-mode Start with Studio Mode active.
--minimize-to-tray Start minimized to system tray.
--portable, -p Use portable mode.
--multi, -m Don't warn when launching multiple instances.
--always-on-top Start in 'always on top' mode.
--verbose Make log more verbose.
--unfiltered_log Disable log filter (do not suppress repeated lines).
--disable-updater Disable built-in updater (Windows/macOS only).
--allow-opengl Allow OpenGL renderer on Windows.
* = Not available on Windows

' What I use a lot - bring up 2 instances of obs, one on port 4444 and one on 4445

These are two different short cut icons

Z:\Video\OBS\obs-studio\bin\64bit\obs64.exe --multi, -m --profile "STANDARD_YOUTUBE_PORT_4444" <-bring up port 4444
and
Z:\Video\OBS\obs-studio\bin\64bit\obs64.exe --multi, -m --profile "STANDARD_YOUTUBE_PORT_4445" <-bring up port 4445

A profile file contains the port address and scene collection name

What that means is to allow multiple obs instances without complaining and use profile "STANDARD_YOUTUBE_PORT_4445"
In that profile, it contains the port number 4445. I use "STANDARD_YOUTUBE_PORT_4444" for port 4444

Note: When the last obs running instance exits, it saves that information for the next startup. So can't depend on the default settings if not the 4444 one
The profile also contains the youtube setting and key

Anyway - you can run more than one instance of obs

1610923993672.png


You can see in the titles the different profiles
 
Hi folks, really inspired by your discussion here :)

I've recorded a video walkthrough for the installation of OBS video scheduler I've mentioned somewhere above in the thread: https://youtu.be/nvNznDg5yh4

It is nowhere close to the real TV station management portal, but maybe it would be helpful to someone.

As we're all still locked down due to pandemic, I'll be open to suggestions on how I can make it more usable, so don't hesitate to reach out!
 
Hi folks, really inspired by your discussion here :)

I've recorded a video walkthrough for the installation of OBS video scheduler I've mentioned somewhere above in the thread: https://youtu.be/nvNznDg5yh4

It is nowhere close to the real TV station management portal, but maybe it would be helpful to someone.

As we're all still locked down due to pandemic, I'll be open to suggestions on how I can make it more usable, so don't hesitate to reach out!
We have a couple of discord discussions going on in parallel. Interested?
 
Viewed you video. Wow. From writing my own code, I know how much work is involved. Earlier in this thread, I discussed a lot of what I am doing. If you haven't read previous messages, you might want to. I do sort of explain what I am doing. Anyway, Welcome to this discussion and thank you for your work. I moved from the bay area (San Jose) about 5 years ago to nevada. Love it here.
 
Quicky FYI. My program is a windows app written in visual basic talking thru websocket-sharp talking to obs_websocket talking to obs.
 
Well, Good Morning. Haven't heard from any of you 24/7s lately. Thats what I am calling ourselves lately, great nick name, LOL. Anything new? I've been thinking about dynamic programming. So far, I've talked about static or handling pre-recorded material, i.e. braodcast tv, public access. But what about time sensitive material?

Like what: Maybe adult commerials at late night or a different type of program based on time. So how would you do this?? The answer is meta data. What pray-tell is metadata. If you have a video file, such as "my dawd.mp4", what does that name tell a computer program? Well nothing. But what if the name is "[title=my Dawg,subject=pets].mp4.

Well, right away, the computer program knows what the title and subject is. A sort of poor man's database. Many commerial programs do have database bases and a means of creating metadata. But this way, the info is carried with the video file.

So back to time sensitive videos. We add the metadata token "TOD" or time of day. So our file becomes "[TITLE=My Dawg,SUBJECT=pets,TOD=1800]. That tells the computer to only play this video after 1800 or 6PM.

I've talked about metadata before and asked for suggestions. So what are your suggestions?

Mine so far are:

Artist - Tex Ritter
Author -
Song - Paint it black
Loc (Location)
TITLE - My Dawg
GENRE - ie Western
Who
What
DATE - 20210102 = jan 2, 2021
TOD - Time of Day - 0900,1800 etc
DOW - Day of week, - SUNDAY etc.
SERIES - John Wayne - Westerns
TYPE - Commerial
EP - Episode #
The metadata has [ and ] surrounding them and each pair of metadata names and value are separated by commas.

[TITLE = My Dawg , DATE = 20210206 ]

You can see with DOW, that you might only select church videos,
but with TOD of 0100 (1am), it might be horror films. All based on when your program is scheduled to run.

So here's your chance to standardize on video file metadata names. This also gives you a chance to search for 'tags'.

So think about this. Also the metadata does not have to be in the filename, but can be part of the folder structure.

Example. G:\Shows\[TYPE=Commerials]\[DOW=SUNDAY]\[TITLE=Local Church Service,DATE=20210206,TOD=900].mp4

Time to Suggest is NOW.
 
Last edited:
Back
Top