|
|
Thread Tools | Display Modes |
12-02-2019, 11:55 AM | #1 |
Human being with feelings
Join Date: Aug 2010
Location: Seattle, WA
Posts: 211
|
Script for Uploading Files to Web Service for Downloading/Streaming (Nerd Alert!)
I assist the technical team at church with mixing and recording weekly events. For the past several years, we've recorded each event directly to a CD which is quickly duplicated and available for attendees to grab on their way out the door. In addition, we do a raw multi-track recording, using REAPER, which we can use to do a more detailed mix or pipe back through the console for training or critique.
We also have recordings available online, but this means someone has to rip the CD's back to an audio file and then publish them. I'd like to bring us into the current age and automate the process of grabbing the files recorded via REAPER (on a Windows 7 system) and uploading them to a webpage to be available for streaming or download. Obviously, we wouldn't upload all of the recorded tracks, but we could configure a stereo track that contains everything we need. I was initially thinking about writing a PowerShell script that would upload audio files into a filestore and a quick and dirty Node backend that would automatically detect changes to the filestore and serve up the audio files. However, we have a very simple web hosting plan, and it doesn't allow us to install Node. Does anyone have any experience automating this process?
__________________
How can you tell the stage is level? . . . The drummer drools out of both sides of his mouth. Audiosyncrasy.com - Custom drum tracks for your project. |
12-02-2019, 12:38 PM | #2 |
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
What sort of hosting is it? If it's just a server sharing whatever you put in folder X then the new files should be available as soon as they're uploaded.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate |
12-02-2019, 02:35 PM | #3 |
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,686
|
I seem to remember that we had this discussion already several months ago ?!?!?
-Michael |
12-02-2019, 02:40 PM | #4 |
Human being with feelings
Join Date: May 2009
Posts: 29,260
|
Something has to enumerate and display those files via http on the server if it is automated which means back-end code. Browser FTP pages and directory browsing are insecure and outdated workarounds. They could potentially script the enumeration locally including appending the html page locally, then just uploading the files and the updated page. Sort of primitive but would work.
__________________
Music is what feelings sound like. |
12-02-2019, 03:24 PM | #5 | |
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Quote:
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate |
|
12-02-2019, 03:27 PM | #6 | |
Human being with feelings
Join Date: May 2009
Posts: 29,260
|
Quote:
One reason I made that suggestion is because the OP mentioned powershell and if they can script powershell, they can do this easily.
__________________
Music is what feelings sound like. Last edited by karbomusic; 12-02-2019 at 03:32 PM. |
|
12-02-2019, 03:33 PM | #7 |
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Sorry, that's what I thought you meant - whoever's uploading the files should be uploading a new index. That's how static sites are supposed to work.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :( Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate |
12-02-2019, 03:36 PM | #8 |
Human being with feelings
Join Date: May 2009
Posts: 29,260
|
Got it, makes sense - the files gotta get there somehow.
__________________
Music is what feelings sound like. |
12-03-2019, 03:15 PM | #9 |
Human being with feelings
Join Date: Aug 2010
Location: Seattle, WA
Posts: 211
|
Thanks for the suggestions! Treating it as a static upload and updating the index locally sounds like a sensible solution. I would of course prefer to have the more elegant solution with a dynamic backend watching for changes, but this will probably do the trick for a static host.
Sounds like I’ll be spending some time on StackOverflow and other Internet forums to research best-practices.
__________________
How can you tell the stage is level? . . . The drummer drools out of both sides of his mouth. Audiosyncrasy.com - Custom drum tracks for your project. |
12-12-2019, 10:14 AM | #10 |
Human being with feelings
Join Date: Aug 2010
Location: Seattle, WA
Posts: 211
|
Update: I have a working PowerShell script on my test machine. It's successfully uploading audio files and a JSON file, containing the date, title and url for the audio file.
The recording machine is Windows 7, so I need to update PowerShell to v5.1 before I implement the solution. Then, I'll need to get REAPER recording to the correct directory. Finally, I'll need to schedule the script to be run once per week. Eventually, I'll need to update the script to more elegantly handle file uploads. Right now, it's simply overwriting the directory containing the audio files on the server, which is clunky at best.
__________________
How can you tell the stage is level? . . . The drummer drools out of both sides of his mouth. Audiosyncrasy.com - Custom drum tracks for your project. |
12-12-2019, 10:19 AM | #11 |
Human being with feelings
Join Date: May 2009
Posts: 29,260
|
Glad it's moving along.
__________________
Music is what feelings sound like. |
Thread Tools | |
Display Modes | |
|
|