Conditional recording #2036
Unanswered
ArvyRogerio
asked this question in
Q&A
Replies: 1 comment
-
Hi! This is a good question, thanks for asking. I was writing a response and realized some of the methods for it weren't included in the With this release, you should be able to do something like this: # Source to record
s = ...
# Record the source, start disabled:
recorder = output.file(start=false, ...)
# Later in your script:
recorder.start()
# Then, when you want to stop:
recorder.stop() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking for a way to do a conditional recording.
I have a radio show called "Flash Hits" (dynamic playlist) and I want to use output.file to record it in MP3 format.
How can I do a conditional recording based on metadata? I know how to trigger based on source.on_metadata.
I don't know how to start and stop a source based on output.file(). Dynamic filename is not a problem.
Something like:
if (m['title']=="Flash Hits Intro") .... start output.file(%mp3(),...)
if (m['title']=="Flash Hits End") .... stop the previous source (source.shutdown()? how?)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions