Skip to content

Commit a787d6c

Browse files
authored
Merge pull request rails#42533 from ashiksp/activestorage-audio-analyzer-guides
[ci skip]Added audio analysis info to activestorage guides.
2 parents db9209d + fe22485 commit a787d6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

guides/source/active_storage_overview.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,9 @@ Analyzing Files
674674
Active Storage analyzes files once they've been uploaded by queuing a job in Active Job. Analyzed files will store additional information in the metadata hash, including `analyzed: true`. You can check whether a blob has been analyzed by calling [`analyzed?`][] on it.
675675

676676
Image analysis provides `width` and `height` attributes. Video analysis provides these, as well as `duration`, `angle`, and `display_aspect_ratio`.
677+
Audio analysis provides `duration` and `bit_rate` attributes.
677678

678-
Analysis requires the `mini_magick` gem. Video analysis also requires the [FFmpeg](https://www.ffmpeg.org/) library, which you must include separately.
679+
Analysis requires the `mini_magick` gem. Audio/Video analysis also requires the [FFmpeg](https://www.ffmpeg.org/) library, which you must include separately.
679680

680681
[`analyzed?`]: https://api.rubyonrails.org/classes/ActiveStorage/Blob/Analyzable.html#method-i-analyzed-3F
681682

0 commit comments

Comments
 (0)