没有这样的文件或目录 - 找不到ffprobe二进制文件错误。

7

我正在使用 carrierwave-video gem 通过 carrierwave 上传视频,但是它无法工作。

video_uploader.rb

class VideoUploader < CarrierWave::Uploader::Base
  include CarrierWave::Video
  storage :file
  def store_dir
    "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
  end
end

video.rb

class Video < ActiveRecord::Base
  mount_uploader :file, VideoUploader

  def set_success(format, opts)
    self.success = true
  end
end

我遇到的错误是:
No such file or directory - the ffprobe binary could not be found in /home/administrator/.rvm/gems/ruby-2.3.0/bin:/home/administrator/.rvm/gems/ruby-2.3.0@global/bin:/usr/share/rvm/rubies/ruby-2.3.0/bin:/usr/share/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

你是否检查了错误消息路径中提到的所有文件夹,如果缺少某个文件夹(ffprobe二进制文件所在的位置),然后(或者可能询问如何)“发布”更改后的路径,以便Ruby可以搜索它? - Dilettant
2个回答

13

0

3
这个链接基本上是FFmpeg Wiki:在Ubuntu/Debian上编译FFmpeg的陈旧版抄袭。此外,仅提供链接的答案是不被鼓励的,请添加一些上下文。 - llogan

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接