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

Remove mediainfo gem, replace with ffprobe call #5982

Merged
merged 4 commits into from
Aug 29, 2024
Merged

Conversation

masaball
Copy link
Contributor

@masaball masaball commented Aug 12, 2024

Related issue: #5762

Copy link
Member

@cjcolvar cjcolvar 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 so far!

config/initializers/ac_mediainfo.rb Show resolved Hide resolved
config/initializers/about_page.rb Outdated Show resolved Hide resolved
Active encode still uses MediaInfo for the time being so we need to make
sure that variables are still being set up properly.

This commit also adds safe navigation or other conditionals to prevent
errors when MediaInfo or FFmpeg are not defined properly in
Settings.yml.
Copy link
Member

@cjcolvar cjcolvar 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 and I'm excited to take the next steps to build on this but have to restrain myself since they're out of scope of this PR.

lib/avalon/ffprobe.rb Outdated Show resolved Hide resolved
lib/avalon/ffprobe.rb Show resolved Hide resolved
@cjcolvar
Copy link
Member

cjcolvar commented Aug 26, 2024

FWIW I looked at the ffprobe analyzer service in ActiveStorage which looks really similar to Avalon::FFprobe. It isn't usable outside of ActiveStorage, but maybe we can watch it and see what can be gleaned from it.

https://github.com/rails/rails/blob/main/activestorage/lib/active_storage/analyzer/video_analyzer.rb
https://blog.saeloun.com/2021/06/30/rails-7-adds-audio-analyzer-to-active-storage/

Copy link
Member

@cjcolvar cjcolvar 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!

@masaball masaball merged commit c3dce9d into develop Aug 29, 2024
2 checks passed
@masaball masaball deleted the remove_mediainfo branch August 29, 2024 20: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