Add metadata value for presence of video channel in video blobs #42431
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Complement to #42392
Related to rails/marcel#57
While building video editing capabilities in our app, we've stumbled on a bit of an edge case. Android's voice recorder saves files as
m4a
but encodes with 3GP (ftyp3gp4), which is a container for both audio and video. Marcel recognizes it as video, and this ends up breaking our pipeline, which is expecting to be able to use video filters on any video file.This PR adds
video
boolean entry to the video analyzer, to indicate whether the file has a video channel or not.Other Information
If you believe this PR makes sense, it might be better for me to close it and add the code to #42392. I've only separated it because I was not sure it would be approved.
While
audio
felt like a good key for presence/absence of audio channel, I'm not so sure about avideo
key in a video file. Might be better them tovideo_channel
andaudio_channel
I think (or maybe_stream
).