The Game Show Forum

The Game Show Forum => GSN® and BUZZR TV® => Topic started by: tvmitch on April 10, 2019, 10:46:04 PM

Title: Buzzr Streaming Question
Post by: tvmitch on April 10, 2019, 10:46:04 PM
Sorry if this belongs in another location and please feel free to move the thread if so.

For those of you who use Buzzrís online stream on their site or on Pluto: do you have a method of recording video from the stream at set times, sort of like a crude DVR? Is there software available to do that?
Title: Re: Buzzr Streaming Question
Post by: chrisholland03 on April 11, 2019, 04:47:47 AM
I'm interested in this as well.  Doing screen capture from their website isn't cutting it.

Title: Re: Buzzr Streaming Question
Post by: clemon79 on April 11, 2019, 10:58:47 AM
I have seen software that allows you to capture streams directly, and you could potentially set that up to run as a scheduled task, but there are a whole lot of "if"s in there, up to and including "do they even work with Buzzr."

I remember at one time we were able to extract the standalone Buzzr stream (though I think it's since changed from the information I have) so that would be a big step forward if that is still doable.
Title: Re: Buzzr Streaming Question
Post by: snowpeck on April 11, 2019, 11:22:29 AM
I was doing it that way before I had access to an OTA affiliate.

Assuming you're on Windows, all you really need is the ffmpeg command line program (https://ffmpeg.org/) which works great for this.

Install that, and then place this .bat file in the folder where it installed: https://drive.google.com/file/d/1BhhX4xRZNpMsfjrVeReGnCe2MRK3Ju8t/view?usp=sharing

Feel free to edit the file to change the filename and length of the recorded file. I have it set at an hour right now (plus some padding), but it can be set for any length.

Then use either the Windows task scheduler or a 3rd party scheduling program to run the .bat file at whatever time you choose, and voila, you have an excellent quality recording of Buzzr's stream.
Title: Re: Buzzr Streaming Question
Post by: chrisholland03 on April 11, 2019, 11:30:06 AM
Thanks Greg!

I'll take a look at the software you were using - I was trying something similar with a couple of other tools and wasn't happy with the results.  I set up a virtual machine to run the capture software, but I had to keep the stream up in the VM at all times.

Title: Re: Buzzr Streaming Question
Post by: snowpeck on April 11, 2019, 11:31:00 AM
Thanks Greg!

I'll take a look at the software you were using - I was trying something similar with a couple of other tools and wasn't happy with the results.  I set up a virtual machine to run the capture software, but I had to keep the stream up in the VM at all times.

Cool. I updated my original post because I realized I had the wrong program listed, so make sure you refresh.
Title: Re: Buzzr Streaming Question
Post by: clemon79 on April 11, 2019, 01:28:48 PM
That was the sort of solution I was thinking of; well played! Is that the current Buzzr stream URL or is that a redirect of some kind? My Plex channels stopped working at some point (not that it matters so much now that Pluto carries it, but yanno) and I think I need to update the URL.
Title: Re: Buzzr Streaming Question
Post by: parliboy on April 11, 2019, 01:39:18 PM
Assuming you're on Windows, all you really need is the ffmpeg command line program (https://ffmpeg.org/) which works great for this.

Off-topic departure:

I need to record some 4k material from one of my screens, but ffmpeg won't give me more than 10FPS, even if I use a version compiled with nvidia flags.  And OBS has been a giant pain for my use case.  What might you suggest as a dedicated box for encoding?
Title: Re: Buzzr Streaming Question
Post by: snowpeck on April 11, 2019, 01:57:45 PM
That was the sort of solution I was thinking of; well played! Is that the current Buzzr stream URL or is that a redirect of some kind? My Plex channels stopped working at some point (not that it matters so much now that Pluto carries it, but yanno) and I think I need to update the URL.

The current streaming URL is in the .bat file I shared.
Title: Re: Buzzr Streaming Question
Post by: clemon79 on April 11, 2019, 02:17:16 PM
The current streaming URL is in the .bat file I shared.

Right, but that is the direct one straight to Buzzr and not a redirect or anything that you might have set up, yes?
Title: Re: Buzzr Streaming Question
Post by: snowpeck on April 11, 2019, 02:40:45 PM
The current streaming URL is in the .bat file I shared.

Right, but that is the direct one straight to Buzzr and not a redirect or anything that you might have set up, yes?

Right, yes. That's straight from Buzzr.
Title: Re: Buzzr Streaming Question
Post by: clemon79 on April 11, 2019, 02:45:46 PM
Right, yes. That's straight from Buzzr.

Awesome, thank you sir!
Title: Re: Buzzr Streaming Question
Post by: chrisholland03 on April 11, 2019, 06:57:24 PM
Very cool - it works like a charm!

Title: Re: Buzzr Streaming Question
Post by: jalman on April 11, 2019, 07:17:45 PM
Oh, I made a batch file that can Buzzr with a timestamp added so I don't worry about overwriting. While my file uses Streamlink, ffmpeg is incredibly versatile.

Timestamp for Windows batch. Add %dtStamp% to the filename somewhere to get the timestamp.

Quote
SET HOUR=%time:~0,2%
SET dtStamp9=%date:~-4%%date:~4,2%%date:~7,2%_0%time:~1,1%%time:~3,2%%time:~6,2%
SET dtStamp24=%date:~-4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%

if "%HOUR:~0,1%" == " " (SET dtStamp=%dtStamp9%) else (SET dtStamp=%dtStamp24%)
Title: Re: Buzzr Streaming Question
Post by: chrisholland03 on April 12, 2019, 09:54:01 AM
Oh, I made a batch file that can Buzzr with a timestamp added so I don't worry about overwriting. While my file uses Streamlink, ffmpeg is incredibly versatile.

Timestamp for Windows batch. Add %dtStamp% to the filename somewhere to get the timestamp.

Quote
SET HOUR=%time:~0,2%
SET dtStamp9=%date:~-4%%date:~4,2%%date:~7,2%_0%time:~1,1%%time:~3,2%%time:~6,2%
SET dtStamp24=%date:~-4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%

if "%HOUR:~0,1%" == " " (SET dtStamp=%dtStamp9%) else (SET dtStamp=%dtStamp24%)

Awesome -- this was also super helpful.  I stuck this ahead of the ffmpeg line in the batch file, and then changed the file name to Buzzr_%dtStamp%.mp4, works like a charm.

I am having a weird issue with the batch file and Task Scheduler.  No issues setting up the task, no issues when I manually kick off the task in Scheduler.  When Scheduler kicks it off , I see the window open and start but within 3-5 seconds it shuts down, no file generated.

My first instinct was that it's a write permission issue, but I've given full access to all users to the folder at every level up to root, and the batch file.  I also tried toggling between 'Run When User is Logged in' and 'Run when User is or is not Logged in', selected 'Run with highest priviledges', tried different configuration profiles. 

Same result - when kicked off manually, or immediately in Task Scheduler, it works perfectly, when scheduled it kicks off but stops after 2 seconds.

Title: Re: Buzzr Streaming Question
Post by: snowpeck on April 12, 2019, 11:10:34 AM
Oh, I made a batch file that can Buzzr with a timestamp added so I don't worry about overwriting. While my file uses Streamlink, ffmpeg is incredibly versatile.

Timestamp for Windows batch. Add %dtStamp% to the filename somewhere to get the timestamp.

Quote
SET HOUR=%time:~0,2%
SET dtStamp9=%date:~-4%%date:~4,2%%date:~7,2%_0%time:~1,1%%time:~3,2%%time:~6,2%
SET dtStamp24=%date:~-4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%

if "%HOUR:~0,1%" == " " (SET dtStamp=%dtStamp9%) else (SET dtStamp=%dtStamp24%)

Awesome -- this was also super helpful.  I stuck this ahead of the ffmpeg line in the batch file, and then changed the file name to Buzzr_%dtStamp%.mp4, works like a charm.

I am having a weird issue with the batch file and Task Scheduler.  No issues setting up the task, no issues when I manually kick off the task in Scheduler.  When Scheduler kicks it off , I see the window open and start but within 3-5 seconds it shuts down, no file generated.

My first instinct was that it's a write permission issue, but I've given full access to all users to the folder at every level up to root, and the batch file.  I also tried toggling between 'Run When User is Logged in' and 'Run when User is or is not Logged in', selected 'Run with highest priviledges', tried different configuration profiles. 

Same result - when kicked off manually, or immediately in Task Scheduler, it works perfectly, when scheduled it kicks off but stops after 2 seconds.

Yeah, I've had weird issues with Windows's built in task scheduler. I ended up using a third-party program: https://www.splinterware.com/products/scheduler.html

It may need to be configured to run the .bat file as an administrator too (or set the .bat file itself to always run as administrator).
Title: Re: Buzzr Streaming Question
Post by: tvmitch on April 12, 2019, 04:51:51 PM
Thanks everyone. The Windows solutions look great and ingenious. Unfortunately, the main computer in my home is my iMac. I do think I have an old Windows box laying around somewhere, this will give me reason to fire that up...
Title: Re: Buzzr Streaming Question
Post by: clemon79 on April 12, 2019, 05:14:51 PM
Thanks everyone. The Windows solutions look great and ingenious. Unfortunately, the main computer in my home is my iMac. I do think I have an old Windows box laying around somewhere, this will give me reason to fire that up...

All of this should work on a Mac as well, in roughly the same way: install FFMpeg (it exists for the Mac), set up the script / batch file, schedule tasks. The devil will just be in the details of how those things are done on a Mac as opposed to Windows.
Title: Re: Buzzr Streaming Question
Post by: tvmitch on April 13, 2019, 08:09:57 AM
All of this should work on a Mac as well, in roughly the same way: install FFMpeg (it exists for the Mac), set up the script / batch file, schedule tasks. The devil will just be in the details of how those things are done on a Mac as opposed to Windows.
Nice, thanks. I will check it out. Assumed it was Windows-only.
Title: Re: Buzzr Streaming Question
Post by: chrisholland03 on April 13, 2019, 10:08:55 AM
All of this should work on a Mac as well, in roughly the same way: install FFMpeg (it exists for the Mac), set up the script / batch file, schedule tasks. The devil will just be in the details of how those things are done on a Mac as opposed to Windows.

Yeah, the details were a pain with Win10.  It's pretty slick when it's up and running.
Title: Re: Buzzr Streaming Question
Post by: WhammyPower on April 13, 2019, 07:17:06 PM
The scripting is fairly straightforward for Mac (and probably also Linux) folks:

Quote
#!/bin/bash

ffmpeg -re -i https://buzzr.global.ssl.fastly.net/out/u/buzzr_hls_4.m3u8 -ss 00:00:00.0 -t 01:04:00.0 -c:v copy -c:a copy Buzzr-$(date '+%Y%m%d_%H%M%S').mp4 -y

Just save that to a file, chmod 700 it, and run it from your Terminal.
Title: Re: Buzzr Streaming Question
Post by: clemon79 on April 14, 2019, 11:53:57 AM
The scripting is fairly straightforward for Mac (and probably also Linux) folks:

Quote
#!/bin/bash

ffmpeg -re -i https://buzzr.global.ssl.fastly.net/out/u/buzzr_hls_4.m3u8 -ss 00:00:00.0 -t 01:04:00.0 -c:v copy -c:a copy Buzzr-$(date '+%Y%m%d_%H%M%S').mp4 -y

Just save that to a file, chmod 700 it, and run it from your Terminal.

Is there functionality in the UI akin to Scheduled Tasks in Windows, or would you need to set up a cron job from the command line if you wanted to do it on a timer?

(Heck, is there functionality to handle the chmod from the UI? There's got to be, right? Now I wanna set this all up on my Mac just as proof of concept.)
Title: Re: Buzzr Streaming Question
Post by: clemon79 on April 14, 2019, 01:19:15 PM
So I'm fooling around here and the script above is throwing an error on me:

Unrecognized option 'i https://buzzr.global.ssl.fastly.net/out/u/buzzr_hls_4.m3u8 -ss'.
Error splitting the argument list: Option not found

Is it possible something needs to be in quotes somewhere in that command line? (Also, does the resulting file land in your home directory?)
Title: Re: Buzzr Streaming Question
Post by: chrisholland03 on April 14, 2019, 01:50:58 PM
Possible dumb question -

Have you checked the spacing in your script?  -i designates the input file.  It's not seeing the '-' and doesn't know what to do with just 'i'

The file should drop to the same directory as the batch file unless you get fancy and specify another file path in the script.

Title: Re: Buzzr Streaming Question
Post by: clemon79 on April 14, 2019, 02:05:22 PM
Possible dumb question

When it comes to me and Unix, there is no such thing. :)

Quote
Have you checked the spacing in your script?  -i designates the input file.  It's not seeing the '-' and doesn't know what to do with just 'i'

Yeah. that's what I thought that meant. I'm using TextEdit and originally it tried to save it as an RTF; maybe a rogue control character has broken spacing. Lemme type it manually to make sure it goes in clean.

....yep, that was it. It's doing something now that looks oddly like recording. I'll come back in four minutes (I did munge the length for testing) and see what I have. :)

Quote
The file should drop to the same directory as the batch file unless you get fancy and specify another file path in the script.

Great, thanks!
Title: Re: Buzzr Streaming Question
Post by: clemon79 on April 14, 2019, 02:13:49 PM
Yep, that worked. The file is in my root user folder, but no matter. Now to figure out Automator just on principle. (Also maybe make FFMpeg compress the file a little? Four minutes was 75 meg.)
Title: Re: Buzzr Streaming Question
Post by: chrisholland03 on April 14, 2019, 06:34:58 PM
My guess aligns with yours - saving it as an RTF file likely reformatted the text even though it looks the same on the screen.

Glad to help out! 

I appreciate Greg sharing - he did the hard work! 

 
Title: Re: Buzzr Streaming Question
Post by: chrisholland03 on April 19, 2019, 06:03:39 PM
How frequently does Buzzr miss timing cues?  I had the stream set up 90 sec early for Password Plus and the file was missing the first 1 minute.  By the time they got to CS they were back on the half hour again.
Title: Re: Buzzr Streaming Question
Post by: SRIV94 on April 19, 2019, 10:15:55 PM
How frequently does Buzzr miss timing cues?  I had the stream set up 90 sec early for Password Plus and the file was missing the first 1 minute.  By the time they got to CS they were back on the half hour again.

I notice it a lot on DVRing.  Iíll set up a recording for SP for two minutes before the scheduled start and I still occasionally miss the first 30-60 seconds.