Closed aCS6 closed 1 year ago
@Michele0303 , I sincerely appreciate your insights and the solutions you provided. However, I would like to clarify my requirements as they differ slightly from the suggestions you made. I do not intend to schedule the recording; instead, I am seeking a way to stop the recording based on user input provided through a command-line argument, if available. I value your understanding and assistance in addressing this specific need.
Sorry I wasn't specific enough. I wanted to show you the -t flag
So as for ffmpeg, it would be enough to change it to:
ffmpeg.output(stream, output, t=max_duration)
oh. thanks. I lot of code is going to be reduced. @Michele0303 would you make the change? or I should give the PR, after the necessary changes ? thanks, anyway
You make the changes and then send the PR. Thanks
It would be helpful if users could specify the duration of the recording when starting the program. For example, if a live stream is scheduled to be 1 hour long but the user only wants to record 10 minutes of it, they should be able to input this duration. Once the recording reaches the specified duration (10 minutes in this case), the program should automatically stop.
I am currently conducting research and development to address this requirement. If anyone has any suggestions or opinions regarding this functionality or knows of any existing solutions, please feel free to comment. I am open to exploring different approaches and would appreciate any input or guidance on this matter.