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

Fix skip transcoding with minio/s3 file #5615

Merged
merged 2 commits into from
Feb 1, 2024
Merged

Conversation

cjcolvar
Copy link
Member

The pass through encode model previously copied the s3 content into a local tempfile and passed that to active_encode to workaround the issue of mediainfo not being able to read s3 urls. That may have worked at one point but now the tempfiles get deleted/garbage collected after one read so mediainfo always returns an empty xml file leading to failed encodes. This PR resolves this by making changes to the PassThroughAdapter in active_encode and then relying on that instead of having a workaround locally.
samvera-labs/active_encode#132

This PR also resolves an issue with FileLocator::S3File that I discovered while debugging this issue locally. The single_request mode is not as efficient as a multi-part download but was the only way I could get it to work with minio.

Related to #5594

masaball
masaball previously approved these changes Jan 31, 2024
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 b38c41a into develop Feb 1, 2024
1 check failed
@cjcolvar cjcolvar deleted the minio_pass_through branch February 1, 2024 01:54
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