Skip to content

Commit

Permalink
Improve ActiveStorage analyzer error message for missing ffprobe. Add…
Browse files Browse the repository at this point in the history
… mention to guides.
  • Loading branch information
weavermedia committed Jan 7, 2022
1 parent f2d9316 commit bc9060a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -54,7 +54,7 @@ def probe_from(file)
end
end
rescue Errno::ENOENT
logger.info "Skipping audio analysis because FFmpeg isn't installed"
logger.info "Skipping audio analysis because ffprobe isn't installed"
{}
end

Expand Down
Expand Up @@ -133,7 +133,7 @@ def probe_from(file)
end
end
rescue Errno::ENOENT
logger.info "Skipping video analysis because FFmpeg isn't installed"
logger.info "Skipping video analysis because ffprobe isn't installed"
{}
end

Expand Down
2 changes: 1 addition & 1 deletion guides/source/active_storage_overview.md
Expand Up @@ -38,7 +38,7 @@ Various features of Active Storage depend on third-party software which Rails
will not install, and must be installed separately:

* [libvips](https://github.com/libvips/libvips) v8.6+ or [ImageMagick](https://imagemagick.org/index.php) for image analysis and transformations
* [ffmpeg](http://ffmpeg.org/) v3.4+ for video/audio analysis and video previews
* [ffmpeg](http://ffmpeg.org/) v3.4+ for video previews and ffprobe for video/audio analysis
* [poppler](https://poppler.freedesktop.org/) or [muPDF](https://mupdf.com/) for PDF previews

Image analysis and transformations also require the `image_processing` gem. Uncomment it in your `Gemfile`, or add it if necessary:
Expand Down

0 comments on commit bc9060a

Please sign in to comment.