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

Adjust non-media item filtering in ffprobe #6023

Merged
merged 3 commits into from
Sep 16, 2024
Merged

Adjust non-media item filtering in ffprobe #6023

merged 3 commits into from
Sep 16, 2024

Conversation

masaball
Copy link
Contributor

@masaball masaball commented Sep 5, 2024

In QA it was found that a video was improperly processed as audio. This was a result of keying off display aspect ratio to filter out non-audio/video items, under the false assumption that all videos would have a display aspect ratio.

Using Marcel, we can check the file mimetype before feeding it into ffprobe and filter out non-audio/video files.

Related issue: #5762

In QA it was found that a video was improperly processed as audio. This
was a result of keying off display aspect ratio to filter out
non-audio/video items, under the false assumption that all videos would
have a display aspect ratio. Explicitly filtering out plain text files
and using frame count to filter images will hopefully be more
consistent.
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 overall. I have some refactoring suggestions that I think would clean things up a big.

lib/avalon/ffprobe.rb Outdated Show resolved Hide resolved
lib/avalon/ffprobe.rb Outdated Show resolved Hide resolved
lib/avalon/ffprobe.rb Outdated Show resolved Hide resolved
lib/avalon/ffprobe.rb Outdated Show resolved Hide resolved
lib/avalon/ffprobe.rb Show resolved Hide resolved
lib/avalon/ffprobe.rb Show resolved Hide resolved
Co-authored-by: Chris Colvard <[email protected]>
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 great!

@masaball masaball merged commit e07abd8 into develop Sep 16, 2024
2 checks passed
@masaball masaball deleted the video_check branch September 16, 2024 13:36
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