01-23-2021, 05:56 AM | #1 |
Human being with feelings
Join Date: Sep 2020
Location: Portugal
Posts: 110
|
Recording videos in REAPER (through OBS)
Did you ever want to record videos in REAPER as easily as you can audio? Maybe you’re doing video tutorials, maybe you’re doing videosongs…
I built a bridge between REAPER and OBS to do just that: |
01-24-2021, 12:18 PM | #2 |
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,622
|
Ok, I tried to get it run on Windows but there are some issues, with some that I could fix, others I couldn't.
Basically, you run the command "leafac_obs-cli.exe". On my system, it looks like this: Code:
'C:\Ultraschall-US_API_4.1.001/Data/leafac_obs-cli.exe' --address 'localhost:4444' --password '' --field 0.rec-folder GetRecordingFolder 'SetRecordingFolder={ "rec-folder": "D:\Users\Meo-Ada Mespotine\Documents\REAPER Media/" }' StartRecording So on Windows, you need to use string.gsub to replace all / with \\ on the path for leafac_obs-cli.exe 'C:\Ultraschall-US_API_4.1.001/Data/leafac_obs-cli.exe' becomes this: 'C:\Ultraschall-US_API_4.1.001\Data\leafac_obs-cli.exe' whereas on Linux and Mac, this isn't necessary. Now the other problem is that, when I run the line in the command-line, just as it is(and with the separators corrected), Code:
'C:\Ultraschall-US_API_4.1.001\Data\leafac_obs-cli.exe' --address 'localhost:4444' --password '' --field 0.rec-folder GetRecordingFolder 'SetRecordingFolder={ "rec-folder": "D:\Users\Meo-Ada Mespotine\Documents\REAPER Media\" }' StartRecording This I can't fix, as I have no experience with JSON, so maybe, you can check, what could be wrong in the line above.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish On vacation for the time being... |
01-26-2021, 03:18 AM | #3 |
Human being with feelings
Join Date: Sep 2020
Location: Portugal
Posts: 110
|
Thanks for helping me out here!
Regarding slashes: Okay, that’s an easy fix. I had read online that Windows allowed backslashes and forward slashes interchangeably. As it turns out, that’s not the case. Regarding the JSON issue: The problem here is the quotes. I Googled around to learn more about this; can you please try some of the combinations below? Code:
SetRecordingFolder='{ "rec-folder": "D:\Users\Meo-Ada Mespotine\Documents\REAPER Media\" }' "SetRecordingFolder={ \"rec-folder\": \"D:\Users\Meo-Ada Mespotine\Documents\REAPER Media\\" }" "SetRecordingFolder={ ^"rec-folder^": ^"D:\Users\Meo-Ada Mespotine\Documents\REAPER Media\^" }" "SetRecordingFolder={ """rec-folder""": """D:\Users\Meo-Ada Mespotine\Documents\REAPER Media\""" }" (The error message complaining about JSON means that the leafac_obs-cli.exe itself is working. It’s even getting to the part where it tries to parse the JSON. That’s great news, since I haven’t tested the executable on Windows at all!) |
01-27-2021, 06:25 AM | #4 |
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,622
|
They all return unexpected token in JSON.
I used variations of this line: Code:
"C:\Ultraschall-US_API_4.1.001\Data\leafac_obs-cli.exe" --address 'localhost:4444' --password '' --field 0.rec-folder GetRecordingFolder "SetRecordingFolder={ """rec-folder""": """D:\Users\Meo-Ada Mespotine\Documents\REAPER Media\""" }" 2) unexpected token U in JSON at position 20 3) unexpected token ^ in JSON at position 2 4) unexpected token U in JSON at position 20 In regards of / being accepted for \ as well, yes this is for most Lua/ReaScript-functions, but there are some exceptions. For instance, all functions that execute commands in a commandline, need \\ instead of / on Windows, as only Lua converts / to \\. But ExecProcess basically passes over a string with the command-options you put into it. So lua doesn't know, it has filenames in it and doesn't do any conversion. Lua wouldn't also know, how to do it, as a / can be for an option of a command or a path-separator in filenames. As you can have both in this string, Lua cannot convert it without possible edge-cases. Long story short: when working with command-line-stuff within Lua, keep track of separators, otherwise, Lua does it for you. (Maybe os.execute is an exception, but it pops up a shell-window on Windows, so it's probably not an option). I've added a note to my docs for future reference. So the next update will feature a note about separators: https://mespotin.uber.space/Ultrasch...ml#ExecProcess Edit: I have a strong feeling, that the JSON-problem could have something to do with " or ' Maybe I'm wrong about that, but maybe this in combination with the command-line-behavior could mess up itself somehow. BTW: Is there an option in leafac_obs-cli.exe to just check, if the connection is successfully established or not? Maybe I can write a small configurator-script, that also includes a small button to check, whether the settings work successfully or need to be changed again. Could be helpful for less experienced people to get, if the settings don't work at all and to report problems related to that. But I would need to have the option to get a "success" or "failed" returnmessage by the leafac_obs-cli.exe-tool.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish On vacation for the time being... |
01-28-2021, 05:06 PM | #5 |
Human being with feelings
Join Date: Dec 2020
Posts: 8
|
So I was thinking...
This is really cool and all but... Now maybe this is a stupid idea but, how hard would it be to wrap the source code from obs and just make it a reaper extension or plugin? I'm trying to figure out where to start with that atm...
|
01-31-2021, 09:33 AM | #6 | ||
Human being with feelings
Join Date: Sep 2020
Location: Portugal
Posts: 110
|
Mespotine:
Thanks for the explanation about backward vs forward slashes 😀 This will be easy to fix once we get the quotes right. First, I learned that I should be using double quotes everywhere instead of single quotes, so things like --address 'localhost:4444' should be replaced with --address "localhost:4444". (Aside: By coincidence, I ran into a similar problem of quotes on Windows when working on a completely unrelated project. I eventually found this: https://github.com/prettier/prettier...ment-392817015) Now it’s only a matter of figuring out how to escape those double quotes in the JSON. There’s no other way because both Windows & JSON require double quotes. Here are some options that may work that I ask you to please try: Code:
"C:\Ultraschall-US_API_4.1.001\Data\leafac_obs-cli.exe" "SetRecordingFolder={ `"rec-folder`": `"D:\Users\Meo-Ada Mespotine\Documents\REAPER Media\`" }" "C:\Ultraschall-US_API_4.1.001\Data\leafac_obs-cli.exe" "SetRecordingFolder={ ^"rec-folder^": ^"D:\Users\Meo-Ada Mespotine\Documents\REAPER Media\^" }" "C:\Ultraschall-US_API_4.1.001\Data\leafac_obs-cli.exe" "SetRecordingFolder={ \"rec-folder\": \"D:\Users\Meo-Ada Mespotine\Documents\REAPER Media\\" }" "C:\Ultraschall-US_API_4.1.001\Data\leafac_obs-cli.exe" "SetRecordingFolder={ \\"rec-folder\\": \\"D:\Users\Meo-Ada Mespotine\Documents\REAPER Media\\\" }" "C:\Ultraschall-US_API_4.1.001\Data\leafac_obs-cli.exe" "SetRecordingFolder={ ""rec-folder"": ""D:\Users\Meo-Ada Mespotine\Documents\REAPER Media\"" }" "C:\Ultraschall-US_API_4.1.001\Data\leafac_obs-cli.exe" "SetRecordingFolder={ """rec-folder""": """D:\Users\Meo-Ada Mespotine\Documents\REAPER Media\""" }" You’ll know that it worked because: 1. It won’t complain about JSON parsing; and 2. Your recording folder will have changed in OBS (you can check that under Settings > Output > Recording > Recording Path). For reference, here are some links I collected while doing research on this: https://stackoverflow.com/questions/...meter/15262019 http://www.windowsinspired.com/under...ndows-program/ https://stackoverflow.com/questions/...cript/44169953 https://stackoverflow.com/questions/...gn-in-a-comman https://superuser.com/questions/1824...and-as-example https://community.idera.com/database...ershell-script https://www.gnu.org/software/gawk/ma...S-Quoting.html If the options I listed above don’t work and you’re so inclined, you may want to try some of the suggestions on these links. (This is a surprising and frustrating problem we’re having :/) Thank you very much for your help! 😃 Quote:
Ericoid: Quote:
That said, I’m interested in whatever you end up creating! Make sure you report back here 😃 |
||
02-02-2021, 05:04 PM | #7 |
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,622
|
Ok, tried all of them, still JSON-parser issues:
1) Unexpected token ` in JSON at position 2 2) Unexpected token ^ in JSON at position 2 3) Unexpected token U in JSON at position 20 4) Unexpected token \ in JSON at position 2 5) Unexpected token U in JSON at position 20 6) Unexpected token U in JSON at position 20 Maybe we should do it in another way. Could you add a testmode, that allows parsing a minimal JSON-string to the command-line-tool? Something that must work for sure, even if it doesn't do anything useful. Something like a "Hello World"-equivalent for JSON. Cause, if that doesn't work, then the tool doesn't accept the JSON in the first place, may it be due a faulty parser or just a problem with the command-line-option. If it works, then it's only a JSON-syntax-problem. Another thing would be to try to work with an external file, which holds the JSON. Command-lines on Windows are known to have issues with Unicode, when the wrong codepage is set. Maybe it's an issue with unicode, so reading the JSON directly from a temporary file(which could be deleted by the tool afterwards) could circumvent such an issue. Edit: The following seems to be accepted by the parser. I have no idea, whether it is correct in it's contents, but at least, no parsing problem anymore. Code:
"C:\Ultraschall-US_API_4.1.001\Data\leafac_obs-cli.exe" "SetRecordingFolder={ """rec-folder""": ""D:\\Users\\Meo-Ada Mespotine\\Documents\\REAPER Media"" }"
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish On vacation for the time being... Last edited by Meo-Ada Mespotine; 02-02-2021 at 05:32 PM. |
02-03-2021, 03:41 PM | #8 |
Human being with feelings
Join Date: Jul 2006
Posts: 12,480
|
Imagine we could do this in REAPE natively (since Justin also did LICEcap):
-> record-arm a track in REAPER -> choose "Screencapture" (with suboptions like "Desktop", "active Application window", "Webcam") as input -> record Result: Video recorded on REAPER track This would be dope :-) Last edited by Dstruct; 02-03-2021 at 03:56 PM. |
02-03-2021, 07:58 PM | #9 |
Human being with feelings
Join Date: Jun 2008
Location: Whales, UK
Posts: 6,009
|
V Long requested.. would be awesome, so many use cases..
Is this obs effort working well now? (Don't worry will check!) Thanks for the work..
__________________
JS Super8 Looper Template & intro | BCF2000 uber info Thread | Who killed the Lounge? Last edited by BenK-msx; 02-03-2021 at 08:04 PM. |
02-04-2021, 06:07 AM | #10 |
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,622
|
On Mac, yes. On Windows we're on it.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish On vacation for the time being... |
02-04-2021, 11:04 AM | #11 |
Human being with feelings
Join Date: Oct 2014
Posts: 1,358
|
thanks for the "right" string.
i got it running with some more " and string.gsub the reaper.get tproject to get more \ fiddling with the command string (the ' set to ") and voila obs records while reaper plays. on windows. i won't show the code here but leave it to leandro, to get this into shape. i guess there is more ongoing and this is only one construction site. lua ain't too bad. |
02-04-2021, 01:47 PM | #12 |
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,622
|
Can you post your modified line as well as reference for leafac to check against?
Multiple working examples are always helpful.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish On vacation for the time being... |
02-04-2021, 04:27 PM | #13 |
Human being with feelings
Join Date: Sep 2020
Location: Portugal
Posts: 110
|
Hey everyone,
I think I figured out this Windows situation! Can you please update to 2.6.3, give it a try, and report back? Caveat: I tested that REAPER could control OBS, but I couldn’t do an actual test recording because my computer couldn’t handle it (see below); that’s why I need your help to test Here’s the full story: I don’t have a PC, and I don’t have a Windows license, so the only way I can test on Windows is with one of those virtual machines that Microsoft makes available for web developers to test their stuff on Internet Explorer and Edge. I wanted to avoid this as much as possible, because working in virtual machines is always painful, and my physical machine isn’t the fastest… Anyway, I bit the bullet, my computer fans went flying, and here’s what I learned: 1. Windows really does seem to not care about forward vs backward slashes. I tried paths like C:\Users/IEUser\Download/leafac_obs-cli.exe on cmd.exe and on reaper.ExecProcess(), and they worked. For simplicity, I’m not changing the script to convert forward slashes into backward slashes. If that really becomes a problem for you let me know. 2. There are three different ways to escape double quotes in parameters, depending on the context: Code:
'I am a single command-line parameter including a escaped double quote " and then some more text' Code:
"I am a single command-line parameter including a escaped double quote "" and then some more text" Code:
"I am a single command-line parameter including a escaped double quote \" and then some more text" Fact 1: The behavior of reaper.ExecProcess() depends on the operating system. And note how cmd.exe and reaper.ExecProcess() don’t look the same on Windows. Fact 2: The ' ... " ... ' pattern works on the macOS/Linux command line, but not on reaper.ExecProcess() on macOS. Conclusion: There’s no single cross-platform way that I could find to escape quotes; you must check in which operating system you are and adapt (' ... " ...' for macOS/Linux and " ... \" ..." for Windows). Oh, and of course if you have backslashes in the values (like I had, because they were Windows paths like C:\Users\...), then you have to string.gsub(value, [[\]], [[\\]]) on Windows. |
02-04-2021, 10:02 PM | #14 | |
Human being with feelings
Join Date: Oct 2014
Posts: 1,358
|
maybe if placeholders for all the " ' / are used and replaced and mangled os-wise before running.
testing as soon as possible anyhow i will post my efforts here as soon as i get my windows-maschine at hands. and without this i had been lost Quote:
|
|
02-05-2021, 02:12 AM | #15 |
Human being with feelings
Join Date: Oct 2014
Posts: 1,358
|
Ha..
leandro made a fine job.. running in windows now with the 2.6.3 going to test it in linux know. only for comparison reason so here is my edited for Windows Start-recording script marked the edited lines with --here and those pending editing with --here TODO https://stash.reaper.fm/v/41283/obs_edt.lua Last edited by bobobo; 02-06-2021 at 12:08 AM. |
02-05-2021, 05:09 AM | #16 |
Human being with feelings
Join Date: Oct 2014
Posts: 1,358
|
got some difficulties running the obs-websocket in my linux (debian 10) the obs-studio is too old ..
i got an older version obs-websocket_4.5.1-1_amd64.deb and VOILA Linux is ok tested in debian 10 obs 22er-Version with obs-websocket 4.5.1.1 Well Done one thing.. obs records to an extension flv. the script "wants" mkv START and STOP are OK (using mov as extension in both scripts) (and set that as output in obs as well) but loading fails when using TOGGLE TOGGLE complains about a not running obs, though recording itself is ok i resolved this , obs output to mov as well as in the scripts. all three run flawless in my debian10 linux now fantastic job. Last edited by bobobo; 02-06-2021 at 10:48 AM. |
02-05-2021, 07:41 AM | #17 |
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,622
|
Ok, tested latest version.
Communication between Reaper and OBS works great, but it doesn't seem to find the recordings, giving me an errormessage: "Failed to find recording. Do you have the right EXTENSION configured for this source code for this action? Extension: mkv Project folder: C:\Users\Meo\Desktop\Recordings" After some more tests, it seems like it's writing the files as .mp4 and not as .mkv. One more note: If somebody stops recording in OBS itself and then runs the your stop-recording-action, it throws an error-message. Code:
...ndro Facchinetti\Utility\leafac_OBS - Stop recording.lua:19: Failed to control OBS. 1. Check that OBS and obs-websocket are running. 2. Check the configuration (for example, ADDRESS and PASSWORD) in the source code for this action. 3. Report the issue to reaper@leafac.com. Command: "C:\Ultraschall-US_API_4.1.001/Data/leafac_obs-cli.exe" --address "localhost:4444" --password "" StopRecording "SetRecordingFolder={ \"rec-folder\": \"C:\\Users\\Meo\\Desktop\\Tudelu\\Recordings\" }" Output: 1 { "error": "recording not active", "message-id": "1", "status": "error", "messageId": "1" } When do you receive the filename for the recorded video? Already at starttime of the recording? Or just after you've stopped recording? If the former, it could be stored during start recording in a temporary key-value-store called "ProjExtState", so you could retrieve the stored filename and check, if it's there, before throwing an error-message.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish On vacation for the time being... |
02-05-2021, 07:59 AM | #18 |
Human being with feelings
Join Date: Dec 2012
Posts: 13,333
|
I think you can change the format in Options as I did. MKV format is much better, because if you start recording and something happens, you get no errors in the output file, unlik in FLV.
|
02-05-2021, 09:16 AM | #19 |
Human being with feelings
Join Date: Oct 2014
Posts: 1,358
|
yep,
setting the output to mkv (in the scripts AND in obs) nails it. |
02-05-2021, 10:14 AM | #20 |
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,622
|
Ah, so it's necessary to set the format on both and isn't told to OBS by the script itself.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish On vacation for the time being... |
02-05-2021, 10:39 AM | #21 |
Human being with feelings
Join Date: Oct 2014
Posts: 1,358
|
i fear the obs websocket can't set the recording format
https://github.com/Palakis/obs-webso...ed/protocol.md maybe you find a way |
02-05-2021, 03:34 PM | #22 | ||||
Human being with feelings
Join Date: Sep 2020
Location: Portugal
Posts: 110
|
all: Thank you to everyone who helped here. It seems like we’re ready to share the Windows version with a wider audience. I’ll contact the people who asked about this in YouTube comments and emails to let them know.
Regarding issues with the file extension: In my OBS installations (macOS & Windows) the default is .mkv. Did you change this setting yourselves, or were your OBS installations recording with another extension by default? Also, a piece of advice, if you allow me: You should record in .mkv. Reasons: 1. .mkv is supported just fine in REAPER for editing (REAPER doesn’t support multiple tracks in the .mkv, but the whole point here is that you’re recoding audio in REAPER directly, so this won’t affect you). 2. If OBS crashes in the middle of the recording, a .mkv will hold your recording up to the crash, while most other formats will end up corrupted and you’ll lose the whole recording. (OBS is pretty robust, but video recording is resource-intensive, so things may go bad.) (As far as I can tell REAPER also produces .wav that don’t go corrupt in case of a crash.) 3. Even if you need to bring the .mkv into another editor that doesn’t support it, it’s easy and fast to convert .mkv into .mp4 from within OBS itself (something that OBS calls remuxing the recording). If you still want to recording in another format, you may copy the script and tweak the advanced settings (I show how to do that in the YouTube video above). Mespotine: Quote:
In any case, I’m not too worried because you’re never losing footage. Worst-case scenario you’ll have to import the video the normal way and sync it by hand. Not the end of the world. Hopefully the script is so good that people will get in the habit of recording the way I do: I open OBS, minimize it, and never look at it again. (I can tell it’s recording by the menubar icon.) Quote:
Also, you can’t query for the filename yet. The feature has been added to obs-websocket code base(https://github.com/Palakis/obs-websocket/pull/621), but a version with it hasn’t been released yet. The way I work around this is a hack: I know the OBS recording folder, because I set it when starting the recording (it’s set to the REAPER recording folder). When stopping the recording, I list the files in that folder, filter for everything ending in .mkv (hence that configuration option), sort the names, and use the last one. This works assuming that: 1. You don’t change the default OBS settings for filenames, which produces names based on the date in a way that sorts right for the script 2. You don’t have other files in the folder that end in .mkv and whose name would sort after your recordings. So far no one has complained about this, so the hack seems to hold for now. Quote:
Aside: ProjExtState is how we’re storing the start time so we know where in the timeline to put the video item when the recording is over. bobobo: Quote:
|
||||
02-05-2021, 05:46 PM | #23 |
Human being with feelings
Join Date: Sep 2020
Location: Portugal
Posts: 110
|
Here’s a bonus for y’all: The tool I developed to test the command-line parameters and eventually figure out the Windows situation:
https://github.com/leafac/echo-command-line-parameters |
02-05-2021, 06:34 PM | #24 |
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,622
|
Ok, it's really looking good then.
So I go into making customization easier within the next few days so people don't need to edit code anymore. This will be awesome
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish On vacation for the time being... |
02-06-2021, 08:37 AM | #25 |
Human being with feelings
Join Date: Sep 2020
Location: Portugal
Posts: 110
|
Mespotine:
X-Raym commented in the YouTube video with some ideas on how to make configuration easier: https://www.youtube.com/watch?v=E4R4...6assYwN4AaABAg I was going to work on this myself, but since you’re offering, I’ll leave it to you. I’m looking forward to seeing what you come up with |
02-09-2021, 03:54 AM | #26 |
Human being with feelings
Join Date: Sep 2020
Location: Portugal
Posts: 110
|
For people interested in how this works, I just published a code review:
I hope you find this useful if you’re just getting into ReaScripts and Lua. |
03-19-2021, 02:59 PM | #27 |
Human being with feelings
Join Date: Aug 2019
Posts: 6
|
I just want to thank you for this. I've done a couple of split-screen multi-instrument covers in Reaper this month, but without this. I just installed it tonight, and I think it's going to change my world. The latency offset even works consistently across both my cameras, in the early testing. Awesome.
Two things I noticed, that might be extremely hard to fix (but would be very useful to me) - it doesn't seem to play at all nicely with pre-roll or count-in, and even less nicely with loop recording, which I would often use to lay backing vocals. This is still a huge win even without those, though! |
04-03-2021, 02:39 PM | #28 |
Human being with feelings
Join Date: Sep 2020
Location: Portugal
Posts: 110
|
Hi DrRick,
Thanks for checking my work; I’m glad you’re finding it useful. I took note of your suggestions and will work on them in the future. I’ll come back here to let you know how it goes… Best. |
04-09-2021, 03:16 PM | #29 |
Human being with feelings
Join Date: Aug 2019
Posts: 6
|
Thank you for even thinking about it! One thing that might be very easy - for you - that would help me is a "abort recording without adding it in" command.
At the moment I have a macro set up that does "stop recording and delete all" in Reaper then sends the stop recording command to OBS. This kind of works, in that nothing appears in the track, but doesn't in as much as the recorded video is hung up internally as a take, and so doesn't clean out of the project directory when I run a clean. It's workable around, it'd just be nice for efficiency! It is phenomenally useful to me as it is, and I'm very grateful. |
05-01-2021, 12:09 AM | #30 |
Human being with feelings
Join Date: Jan 2018
Location: Brisbane, Australia
Posts: 81
|
Love your work, Leandro! This will be very useful to me! I've ALMOST got things working on my Windows 10 desktop - but not quite.
I've installed everything as instructed and when I run the Toggle Recording script (V3.0), both OBS and Reaper start recording as expected. A message from OBS pops up saying that I have a New WebSocket Connection - but then seconds later another message appears saying WebSocket Client Disconnected. The recording continues. When I run the script again to stop the recording, exactly the same thing happens. Any suggestions greatly appreciated. Thanks. |
05-03-2021, 01:42 AM | #31 |
Human being with feelings
Join Date: Aug 2019
Posts: 6
|
Mine does that. It's still working. I assume it doesn't keep the connection open throughout. Is yours not working?
|
05-03-2021, 02:13 AM | #32 |
Mobile
Join Date: Jan 2006
Location: London & São Paulo. Hardcore commercial REAPERite
Posts: 1,669
|
Thank you for your amazing work on this!
__________________
Proudly using REAPER exclusively for... * Media and event music composition & production, sound design + auto-processing at Qsonics.com * Broadcast branding, promos, education & training and narration voice-overs at DrewWhite.com |
05-03-2021, 05:07 AM | #33 | |
Human being with feelings
Join Date: Jan 2018
Location: Brisbane, Australia
Posts: 81
|
Quote:
It looks like it's working and when I stop recording, an OBS track is created in Reaper. But, my recording just has the words 'OFFLINE' printed across it. There's no video anywhere that I can see. **EDIT** Problem all fixed! Turns out, as suggested by DrRick, the WebSocket was not the issue. Instead it was the 32bit version of VLC that my 64bit Reaper didn't like. All good now, though. Thanks again for an awesome script, Leandro!! Last edited by jesus4c; 05-04-2021 at 07:33 PM. |
|
05-09-2021, 01:20 AM | #34 | ||
Human being with feelings
Join Date: Sep 2020
Location: Portugal
Posts: 110
|
@Everyone
Thank you for the nice words. I’m glad you’re finding my script useful @DrRick Quote:
@jesus4c Quote:
In any case, I’m glad you sorted things out and the script is working for you. |
||
06-14-2021, 04:06 PM | #35 |
Human being with feelings
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
|
leafac one question the subfolder I need to put the folder obs is writing to? the only way here I could make work is leave this option with a space.... But I am getting some bugs (windows here), every time I run the script it change the output folder in obs adding what is on the subfolder setting.
Like running one time "C:\Users\DSL\Downloads\test\Testeee\AudioC:\Users \DSL\Downloads\test\Testeee" Ah ok i just need to ad the name of the folder I want. Everything right now |
06-17-2021, 08:31 AM | #36 | |
Human being with feelings
Join Date: Aug 2019
Posts: 6
|
Quote:
It would be HUGELY useful to me if we could get it to work with pre-roll/count-in (ideally, to record throughout and drop it in at the start of the pre-roll). I might make trying to get it to do that a summer project, since I know it's not hugely relevant to your own use case . |
|
06-17-2021, 04:54 PM | #37 | |
Human being with feelings
Join Date: Sep 2020
Location: Portugal
Posts: 110
|
Quote:
|
|
07-03-2021, 11:30 PM | #38 |
Human being with feelings
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
|
Leandro I am wondering how did u pass info through net work connections, and if it would be possible for other people use the same method.
I am looking at this video https://youtu.be/dxfM4ftB1hM; it seems you use a 3 exe app you made to pass info via web sockets {?} |
07-04-2021, 12:12 AM | #39 | |
Human being with feelings
Join Date: Sep 2020
Location: Portugal
Posts: 110
|
Quote:
As far as I can tell the REAPER API doesn’t include functions to do networking stuff, for example, making HTTP requests and opening WebSockets. But REAPER can call programs on the command line, so I wrote a command-line application (https://github.com/leafac/obs-cli) that does the networking stuff I needed (opening a WebSockets connection, in this case). By the way, I used a similar trick of calling a command-line application in this other action: https://github.com/leafac/reaper/blo...ia%20files.lua The intent in this case was totally different: To call ffmpeg to process some media. |
|
07-04-2021, 08:05 AM | #40 |
Human being with feelings
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
|
That is a really nice solution I wonder if we could have a exe for general purpose of network communication or that would be hard
|
Thread Tools | |
Display Modes | |
|
|