Resource icon

Stream/Recording Start/Stop Beep (SRBeep) (Unsupported) 2.1.1

adocilesloth submitted a new resource:

Stream/Recording Start/Stop Beep (SRBeep) - Plays a sound when obs-studio starts/stops streaming/recording

Plays a sound when you start or stop a stream or recording.

Someone somewhere mentioned that they thought it would be a good idea and I've been struggling with the OBS Studio TS3Plugin port. So I thought I'd so something simple and quick. Two days later (about 1.5 days longer than I expected) we have this.

Done like the sounds I made? It's all good! Swap out the .mp3 files in the plugin's data folder (e.g. in Windows, obs-studio/data/obs-plugins/SRBeep/) with what ever you like. Just make sure it's a stereo (thanks Dracrius) .mp3 and the names are the same. There is also a silence.mp3 if you don't want a sound and want to keep the OBS logs clean. You can also just delete the .mp3 you don't want to use. Bonus points if you know what the sounds I made are from.

Works with Windows and Linux. The code should be portable to it will probably work on macs too, although I can't test or guarantee it will work. If you get it working on a Mac, let me know.

I provide the built binaries for Windows, both 32bit and 64bit. I also provide built binaries for Ubuntu 14.04 LTS along with the dependencies. Download also includes source code. Shout out to someone on the dev IRC (who's name I forget, it began with R..., I apologise) who helped me out getting this running on Linux.

Installing:
Windows
Drag and drop obs-studio folder into C:\Program Files (or where ever you have obs-studio installed). Merge all files down and you should be good to go.
Delete any .mp3 files you don't want to use or copy and rename silence.mp3

Linux
Dependancies:
obs (duh)
ffmpeg (you should have this if you have a working obs)
SDL2 (Simple Directmedia Layer, see https://www.libsdl.org/download-2.0.php)

I provide binaries for Ubuntu 18.04.3 LTS 64bit for the PPA version of OBS
Just run
>make install
and it should install for you in the right places. If it doesn't, you may have to check the paths to FFmpeg, SDL2 and OBS and fix as necessary.

=For others=, compile and install with
>make
>make install
#NOTE# make install may not work. See below.

I've provided a best guess for make install. If your files are set up how I think they will be, put SRBeep-bin into the obs-studio folder, uncomment the bottom section and comment out the install: and clean: bits that aren't commented.

You'll probably have to move the .so.## for ffmpeg into
/usr/lib/
but obs-studio should throw a warning for each .so.## (one at a time) when it tries to load the module to tell you what they are. They should be in the ffmpeg/lib folder (where ever that may be for you)

Mac
Uh, sould work. Probably. Don't have a MAC to test with.
So...
You can try the "For others" bit of LINUX. Let me know if you get it to work!

Source:
If you don't want to download and are curious at how bad my coding is, source is over on Git Hub

Read more about this resource...
 
Last edited:
Doesn't seem to do anything for me:(

EDIT:

Seems to have to do with my profiles, may be that it doesn't detect Advanced Recording?
 
Last edited:
Doesn't seem to do anything for me:(

EDIT:

Seems to have to do with my profiles, may be that it doesn't detect Advanced Recording?

It detects advanced recording, it doesn't detect custom recording but I can probably fix that.

Assuming that you are using custom recording settings, can you post a log file? I'm just after what the name of the output is called to see if it's consistent with what I think it's called.
 
You mean this?
Code:
18:30:40.371: output 'adv_stream' (rtmp_output) created
18:30:40.371: output 'adv_ffmpeg_output' (ffmpeg_output) created
18:30:40.371: encoder 'streaming_h264' (obs_x264) created
 

Bazim

Member
Nice plugin i like that. Can you make a warning sound when mic/windows sound on live stream are muted? Like TS3 have.
 
Nice plugin i like that. Can you make a warning sound when mic/windows sound on live stream are muted? Like TS3 have.
As far as I know, the audio can't be monitored via the API yet (I may be wrong) so I can't do this. Even if I could, I doubt I would.
 

decordas

New Member
I downloaded this today and tried it with OBS Studio 0.14.2 and it didn't seem to do anything when I started or stopped recording. Judging from the log it seems to not be locating the mp3 files? Which is odd because they are definitely located in /data/obs-plugins/SRBeep/. Thoughts?



19:45:07.952: ==== Recording Start ===============================================
19:45:07.952: [ffmpeg muxer: 'adv_file_output'] Writing file 'D:/VIDEOS/2016-06-28 19-45-07.mp4'...
19:45:08.086: SRBeep: play_clip: Failed to open file
19:45:08.086: ›/../data/obs-plugins/SRBeep/record_start_sound.mp3
19:45:11.582: [ffmpeg] [aac @ 000000000aa2f620] Qavg: 220.984
19:45:11.582: [ffmpeg] [aac @ 000000000aa2f620] 2 frames left in the queue on closing
19:45:11.585: [ffmpeg muxer: 'adv_file_output'] Output of file 'D:/VIDEOS/2016-06-28 19-45-07.mp4' stopped
19:45:11.585: Output 'adv_file_output': stopping
19:45:11.585: Output 'adv_file_output': Total frames: 218
19:45:11.585: Output 'adv_file_output': Number of skipped frames: 0 (0%)
19:45:11.585: ==== Recording Stop ================================================
19:45:11.654: SRBeep: play_clip: Failed to open file
19:45:11.654: /../data/obs-plugins/SRBeep/record_stop_sound.mp3

EDIT: Actually I just tried it two more times and the start sound didn't play either time, but the stop sound played the first time, but not the second time?

19:55:33.546: [FFmpeg aac encoder: 'Track1'] bitrate: 160, channels: 2
19:55:33.548: ==== Recording Start ===============================================
19:55:33.548: [ffmpeg muxer: 'adv_file_output'] Writing file 'D:/VIDEOS/2016-06-28 19-55-33.mp4'...
19:55:33.585: SRBeep: play_clip: Failed to open file
19:55:33.585: š/../data/obs-plugins/SRBeep/record_start_sound.mp3
19:55:35.529: [ffmpeg] [aac @ 0000000000a4b1a0] Qavg: 304.951
19:55:35.529: [ffmpeg] [aac @ 0000000000a4b1a0] 2 frames left in the queue on closing
19:55:35.531: [ffmpeg muxer: 'adv_file_output'] Output of file 'D:/VIDEOS/2016-06-28 19-55-33.mp4' stopped
19:55:35.531: Output 'adv_file_output': stopping
19:55:35.531: Output 'adv_file_output': Total frames: 119
19:55:35.531: Output 'adv_file_output': Number of skipped frames: 0 (0%)
19:55:35.531: ==== Recording Stop ================================================
19:55:35.649: [ffmpeg] [mp3 @ 000000000aa2f020] Skipping 0 bytes of junk at 461.
19:55:37.821: ---------------------------------
19:55:37.821: [x264 encoder: 'recording_h264'] preset: ultrafast
19:55:37.821: [x264 encoder: 'recording_h264'] profile: high
19:55:37.821: [x264 encoder: 'recording_h264'] settings:
19:55:37.821: bitrate: 1000
19:55:37.821: buffer size: 0
19:55:37.821: crf: 0 (0 when CBR is enabled)
19:55:37.821: fps_num: 60
19:55:37.821: fps_den: 1
19:55:37.821: width: 1280
19:55:37.821: height: 720
19:55:37.821: keyint: 250
19:55:37.821: vfr: off
19:55:37.821: cbr: on
19:55:37.821: [x264 encoder: 'recording_h264'] VBV maxrate specified, but no bufsize, ignored
19:55:37.821:
19:55:37.827: ---------------------------------
19:55:37.828: [FFmpeg aac encoder: 'Track1'] bitrate: 160, channels: 2
19:55:37.830: ==== Recording Start ===============================================
19:55:37.830: [ffmpeg muxer: 'adv_file_output'] Writing file 'D:/VIDEOS/2016-06-28 19-55-37.mp4'...
19:55:37.885: SRBeep: play_clip: Failed to open file
19:55:37.885: š/../data/obs-plugins/SRBeep/record_start_sound.mp3
19:55:40.603: [ffmpeg] [aac @ 0000000000a61fc0] Qavg: 333.886
19:55:40.603: [ffmpeg] [aac @ 0000000000a61fc0] 2 frames left in the queue on closing
19:55:40.606: [ffmpeg muxer: 'adv_file_output'] Output of file 'D:/VIDEOS/2016-06-28 19-55-37.mp4' stopped
19:55:40.606: Output 'adv_file_output': stopping
19:55:40.606: Output 'adv_file_output': Total frames: 166
19:55:40.606: Output 'adv_file_output': Number of skipped frames: 0 (0%)
19:55:40.606: ==== Recording Stop ================================================
19:55:40.686: SRBeep: play_clip: Failed to open file
19:55:40.686: š/../data/obs-plugins/SRBeep/record_stop_sound.mp3
 
Last edited:
I downloaded this today and tried it with OBS Studio 0.14.2 and it didn't seem to do anything when I started or stopped recording. Judging from the log it seems to not be locating the mp3 files? Which is odd because they are definitely located in /data/obs-plugins/SRBeep/. Thoughts?

Which OS are you using?
Which version of OBS are you using (32bit or 64bit)?

The thing that looks a bit odd to me is the file path. Specifically the š/, / (assuming it's Windows), and ›/ at the beginning of the times it didn't work. Looks like it's picking up some random characters from somewhere.
 

decordas

New Member
I'm on Windows 7, and I'm using the 64-bit version. And yeah, I was wondering if those characters indicated something strange.
 

stacalkas

New Member
Works as advertised.

I did have a slight problem adding custom sounds. It played a slower version of the sounds that I had added. Re-saved the .mp3 files using these settings and it worked:
  • bitrate: 128
  • channels: 2
  • sample rate: 44100
  • bits-per-sample: 16
 
When i use this plugin i cant use hotkeys for start/stop streaming.
The plugin doesn't do anything with hotkeys. It just polls if recording/streaming has started/stopped. Hotkeys work fine on both 32 and 64bit version on Win10 for me. Haven't checked on Linux.

Make sure you hotkeys are still bound and try a different one.

Else post OS and version (32/64) and a log or I can't really help you.
 
Win 10 x64 but when i copy this plugin to my obs my hotkey settings just disapier .
I have no idea why that's happening. The plugin doesn't edit anything in OBS. It just monitors things. All I can suggest is the obvious unfortunately. Reset your hotkeys. Sorry :(

Thank you for this update, it works perfectly now :)
Glad it's working now :)

I can't seem to get this to work, can anyone explain how to install it step by step. I think that can help me. :)
I'm going to assume you are on Windows. Would be useful if people put their OS when they ask for help...

To install:
Download the File.
Unzip the file.
Navigate into the SRBeep folder (the one you just unzipped).
Navigate into the windows folder.
In another window, navigate to where you installed OBS (By default, this will be C:\Program Files\)
Drag the obs-studio folder from SRBeep\windows folder into your other window. (So by default, drag the obs-studio into C:\Program Files)
When prompted, merge all folders.
Run OBS.
 

SerioDmGuy

New Member
I'm going to assume you are on Windows. Would be useful if people put their OS when they ask for help...

To install:
Download the File.
Unzip the file.
Navigate into the SRBeep folder (the one you just unzipped).
Navigate into the windows folder.
In another window, navigate to where you installed OBS (By default, this will be C:\Program Files\)
Drag the obs-studio folder from SRBeep\windows folder into your other window. (So by default, drag the obs-studio into C:\Program Files)
When prompted, merge all folders.
Run OBS.

Thank you, and yeah I should have let people know I was on windows! my bad
 
Top