The Game Show Forum > Game Show Channels & Networks

Buzzr Streaming Question

<< < (5/11) > >>

WhammyPower:
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
--- End quote ---

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

clemon79:

--- Quote from: 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
--- End quote ---

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

--- End quote ---

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.)

clemon79:
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?)

chrisholland03:
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:

--- Quote from: chrisholland03 on April 14, 2019, 01:50:58 PM ---Possible dumb question
--- End quote ---

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'
--- End quote ---

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.

--- End quote ---

Great, thanks!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version