Welcome, Guest. Please login or register.

Author Topic: Buzzr Streaming Question  (Read 36359 times)

snowpeck

  • Member
  • Posts: 2063
Re: Buzzr Streaming Question
« Reply #15 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).
Co-owner, The Daytime TV Schedule Archive
My website: http://www.gregbrobeck.net
My board game collection: http://boardgamegeek.com/collection/user/snowpeck (recently passed the 100 mark!)

tvmitch

  • Member
  • Posts: 1419
Re: Buzzr Streaming Question
« Reply #16 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...
You should follow me on Twitter

clemon79

  • Member
  • Posts: 27681
  • Director of Suck Consolidation
Re: Buzzr Streaming Question
« Reply #17 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.
Chris Lemon, King Fool, Director of Suck Consolidation
http://fredsmythe.com
Email: clemon79@outlook.com  |  Skype: FredSmythe

tvmitch

  • Member
  • Posts: 1419
Re: Buzzr Streaming Question
« Reply #18 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.
You should follow me on Twitter

chrisholland03

  • Member
  • Posts: 1538
Re: Buzzr Streaming Question
« Reply #19 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.

WhammyPower

  • Member
  • Posts: 1792
Re: Buzzr Streaming Question
« Reply #20 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.
« Last Edit: April 13, 2019, 07:30:13 PM by WhammyPower »

clemon79

  • Member
  • Posts: 27681
  • Director of Suck Consolidation
Re: Buzzr Streaming Question
« Reply #21 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.)
Chris Lemon, King Fool, Director of Suck Consolidation
http://fredsmythe.com
Email: clemon79@outlook.com  |  Skype: FredSmythe

clemon79

  • Member
  • Posts: 27681
  • Director of Suck Consolidation
Re: Buzzr Streaming Question
« Reply #22 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?)
Chris Lemon, King Fool, Director of Suck Consolidation
http://fredsmythe.com
Email: clemon79@outlook.com  |  Skype: FredSmythe

chrisholland03

  • Member
  • Posts: 1538
Re: Buzzr Streaming Question
« Reply #23 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.


clemon79

  • Member
  • Posts: 27681
  • Director of Suck Consolidation
Re: Buzzr Streaming Question
« Reply #24 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!
Chris Lemon, King Fool, Director of Suck Consolidation
http://fredsmythe.com
Email: clemon79@outlook.com  |  Skype: FredSmythe

clemon79

  • Member
  • Posts: 27681
  • Director of Suck Consolidation
Re: Buzzr Streaming Question
« Reply #25 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.)
Chris Lemon, King Fool, Director of Suck Consolidation
http://fredsmythe.com
Email: clemon79@outlook.com  |  Skype: FredSmythe

chrisholland03

  • Member
  • Posts: 1538
Re: Buzzr Streaming Question
« Reply #26 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! 

 

chrisholland03

  • Member
  • Posts: 1538
Re: Buzzr Streaming Question
« Reply #27 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.

SRIV94

  • Member
  • Posts: 5516
  • From the Rock of Chicago, almost live...
Re: Buzzr Streaming Question
« Reply #28 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.
Doug
----------------------------------------
"When you see the crawl at the end of the show you will see a group of talented people who will all be moving over to other shows...the cameramen aren't are on that list, but they're not talented people."  John Davidson, TIME MACHINE (4/26/85)

cyclone45

  • Member
  • Posts: 315
Re: Buzzr Streaming Question
« Reply #29 on: September 05, 2019, 01:31:00 AM »
Seems like I can only record from a Roku, which I do not have. If there were a way to record on PC, that'd be great.