Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce ffmpeg timeout to 1 minute #5468

Merged
merged 2 commits into from
Nov 15, 2023
Merged

Reduce ffmpeg timeout to 1 minute #5468

merged 2 commits into from
Nov 15, 2023

Conversation

cjcolvar
Copy link
Member

In a manual test using the same ffmpeg commands outside of ruby and without the timeout it took 7 seconds to run for a 1 hour audio file and 25 seconds for a 2 hour video file. Given this I think a 1 minute timeout should be enough and keeps the queue from getting clogged as much when the stream doesn't close nicely for ffmpeg.

Locally, this would help us move through the backlog created by the mass push (https://github.iu.edu/AvalonIU/Avalon/issues/176).

In a manual test using the same ffmpeg commands outside of ruby and without the timeout it took 7 seconds to run for a 1 hour audio file and 25 seconds for a 2 hour video file.  Given this I think a 1 minute timeout should be enough and keeps the queue from getting clogged as much when the stream doesn't close nicely for ffmpeg.
Copy link
Contributor

@masaball masaball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@cjcolvar cjcolvar merged commit 4db6d0f into develop Nov 15, 2023
@cjcolvar cjcolvar deleted the minute_by_minute branch November 15, 2023 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants