OBS Studio and scheduled recordings

174 views
Skip to first unread message

s.la...@googlemail.com

unread,
Jun 4, 2021, 2:54:58 AM6/4/21
to Opencast Users
Hello,

did anyone try to use OBS Studio to do scheduled recordings? 
OBS would solve us a few issue using NDI in our environment.

Could it be combined with pyCA?

Best regards
Sven

y...@oul.ch

unread,
Jun 4, 2021, 3:57:35 AM6/4/21
to us...@opencast.org
Hi Sven,

I’m working on this also. Using websocket to start and stop live and record. Initiate with a .bat started from pyca. 

A bit tricky, a specific component would be a better idea to handle scheduling in OBS directly. 

Best,
Yannis

Le 4 juin 2021 à 08:55, 's.la...@googlemail.com' via Opencast Users <us...@opencast.org> a écrit :

Hello,
--
To unsubscribe from this group and stop receiving emails from it, send an email to users+un...@opencast.org.

Matthias Neugebauer

unread,
Jun 14, 2021, 10:26:42 AM6/14/21
to Opencast Users
pyCA just starts and stops a binary / script at the specified times. This process is then responsible for producing the desired files in the correct folder.

E.g. people use FFmpeg and gstreamer to capture from a source such as NDI and produce output files. Note that FFmpeg does _not_ support NDI
anymore. I don’t know about gstreamer, but there is probably a CLI implementation for capturing NDI streams.

– Matthias


ZHLdigital (eLectures)
Westfälische Wilhelms-Universität
Leonardo-Campus 3 - Raum 334
48149 Münster
Telefon: +49 251 83-38268
E-mail: matthias....@uni-muenster.de
Message has been deleted

s.la...@googlemail.com

unread,
Jul 15, 2021, 10:40:38 AM7/15/21
to Opencast Users, Yannis Marti
Hi Yannis,

I just implemented this too. We are running OBS on windows machines because the NDI implementation and hardware support for encoding is much better and hassle free than on Linux (which I like more).
First I tried to run pyCA from Windows Subsystem for Linux which worked, but then I wanted to try to run it natively on Windows python. This was a bit more difficult but in the end it is working.

What I did was take the pyCA sources and make it aware of the underlying platform. There were a few functions/libraries which were only available on linux boxes, that needed to be excluded from being called on windows.
After that I didn't want to call another script to trigger the recording so I looked and found "obs-websocket-py" which made it quite easy to control OBS via websockets. So after that pyCA itself controls OBS natively instead of calling an external script.

Whats left to do is to make it running as a windows service.

Not working is the additional gunicorn webserver component. But the integrated web server component (flask??) is working and can show the status. But I don't know if this is a security issue?
"* Serving Flask app 'pyca.ui' (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off"

Regards
Sven
Reply all
Reply to author
Forward
Message has been deleted
0 new messages