错误:ffmpeg:无法下载资源“sqlite”

问题描述 投票:0回答:0

我正在尝试下载 ffmpeg,但出现此错误!谁能帮忙?我正在使用回形针 gem 添加图像和视频。当我尝试添加新视频 Av::UnableToDetect 时,我在 heroku 上收到此错误(无法检测到任何支持的库,所以这就是我尝试下载 ffmpeg 的原因。有人可以帮忙吗!提前致谢

酿造安装 ffmpeg

curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
HTTPS-proxy has similar options --proxy-cacert and --proxy-insecure.
Error: ffmpeg: Failed to download resource "sqlite"
Download failed: https://sqlite.org/2022/sqlite-autoconf-3400100.tar.gz

当我在 heroku 上向我的网站添加新视频时出现此错误

2023-02-22T06:23:03.207072+00:00 app[web.1]: User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
2023-02-22T06:23:03.208471+00:00 app[web.1]: Steptation Load (0.7ms)  SELECT  "steptations".* FROM "steptations" WHERE "steptations"."id" = $1 LIMIT 1  [["id", 1802]]
2023-02-22T06:23:03.210118+00:00 app[web.1]: [paperclip] Trying to link /tmp/RackMultipart20230222-2-1i28xon.mp4 to /tmp/847606d3771b12aa2d91db7647fe3a4920230222-2-165fycl.mp4
2023-02-22T06:23:03.210923+00:00 app[web.1]: [paperclip] Trying to link /tmp/847606d3771b12aa2d91db7647fe3a4920230222-2-165fycl.mp4 to /tmp/847606d3771b12aa2d91db7647fe3a4920230222-2-p6icfm.mp4
2023-02-22T06:23:03.211217+00:00 app[web.1]: Command :: file -b --mime '/tmp/847606d3771b12aa2d91db7647fe3a4920230222-2-p6icfm.mp4'
2023-02-22T06:23:03.218799+00:00 app[web.1]: [AV] Running command: if command -v avprobe 2>/dev/null; then echo "true"; else echo "false"; fi
2023-02-22T06:23:03.221000+00:00 app[web.1]: [AV] Running command: if command -v ffmpeg 2>/dev/null; then echo "true"; else echo "false"; fi
2023-02-22T06:23:03.222208+00:00 heroku[router]: at=info method=POST path= "/step_images?id=1802" host=www.mobileimplantlab.ca request_id=39f2b001-ab36-4a59-ae94-1f300d386a40 fwd="207.216.102.221" dyno=web.1 connect=0ms service=900ms status=500 bytes=234 protocol=https
2023-02-22T06:23:03.222987+00:00 app[web.1]: Completed 500 Internal Server Error in 18ms (ActiveRecord: 1.6ms)
2023-02-22T06:23:03.223510+00:00 app[web.1]: 
2023-02-22T06:23:03.223511+00:00 app[web.1]: Av::UnableToDetect (Unable to detect any supported library):
2023-02-22T06:23:03.223511+00:00 app[web.1]: app/controllers/step_images_controller.rb:15:in `create'
2023-02-22T06:23:03.223512+00:00 app[web.1]: 
2023-02-22T06:23:03.223512+00:00 app[web.1]: 
2023-02-22T06:23:14.356278+00:00 app[web.1]: Started POST "/step_images?id=1802" for 207.216.102.221 at 2023-02-22 06:23:14 +0000
2023-02-22T06:23:14.357993+00:00 app[web.1]: Processing by StepImagesController#create as HTML
2023-02-22T06:23:14.358067+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"PgRtPGgyOSPP8lQlbf9fAgOSZre/XlYcKBKJhe81oOz9Ge81GZZzEfc4Xcnz0zzZ35S7PpsfKOse3Q73mxhjEA==", "step_image"=>{"product_id"=>"4", "text"=>"", "text2"=>"", "text3"=>"", "text4"=>"", "text5"=>"", "video"=>#<ActionDispatch::Http::UploadedFile:0x000055f8400b9288 @tempfile=#<Tempfile:/tmp/RackMultipart20230222-2-1stq4d4.mp4>, @original_filename="IMG_2826.mp4", @content_type="video/mp4", @headers="Content-Disposition: form-data; name=\"step_image[video]\"; filename=\"IMG_2826.mp4\"\r\nContent-Type: video/mp4\r\n">, "text6"=>"test", "user_id"=>"73", "case_id"=>"311", "step_id"=>"3"}, "commit"=>"Submit", "id"=>"1802"}
2023-02-22T06:23:14.359735+00:00 app[web.1]: User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
2023-02-22T06:23:14.360954+00:00 app[web.1]: Steptation Load (0.7ms)  SELECT  "steptations".* FROM "steptations" WHERE "steptations"."id" = $1 LIMIT 1  [["id", 1802]]
2023-02-22T06:23:14.362132+00:00 app[web.1]: [paperclip] Trying to link /tmp/RackMultipart20230222-2-1stq4d4.mp4 to /tmp/847606d3771b12aa2d91db7647fe3a4920230222-2-1jq0dqp.mp4
2023-02-22T06:23:14.362719+00:00 app[web.1]: [paperclip] Trying to link /tmp/847606d3771b12aa2d91db7647fe3a4920230222-2-1jq0dqp.mp4 to /tmp/847606d3771b12aa2d91db7647fe3a4920230222-2-9hfi7z.mp4
2023-02-22T06:23:14.362932+00:00 app[web.1]: Command :: file -b --mime '/tmp/847606d3771b12aa2d91db7647fe3a4920230222-2-9hfi7z.mp4'
2023-02-22T06:23:14.370045+00:00 app[web.1]: [AV] Running command: if command -v avprobe 2>/dev/null; then echo "true"; else echo "false"; fi
2023-02-22T06:23:14.372073+00:00 app[web.1]: [AV] Running command: if command -v ffmpeg 2>/dev/null; then echo "true"; else echo "false"; fi
2023-02-22T06:23:14.374070+00:00 app[web.1]: Completed 500 Internal Server Error in 16ms (ActiveRecord: 1.5ms)
2023-02-22T06:23:14.374254+00:00 heroku[router]: at=info method=POST path= "/step_images?id=1802" host=www.mobileimplantlab.ca request_id=4a0702a2-8d14-454a-9f1f-edf154e140fc fwd="207.216.102.221" dyno=web.1 connect=0ms service=267ms status=500 bytes=234 protocol=https
2023-02-22T06:23:14.374720+00:00 app[web.1]: 
2023-02-22T06:23:14.374721+00:00 app[web.1]: Av::UnableToDetect (Unable to detect any supported library):

在我的 gem 文件中

source 'https://rubygems.org'


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.11.1'
# Use postgresql as the database for Active Record
gem 'pg', '~> 0.20.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'pry', '~> 0.13.1'
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development


group :development do
  # Access an IRB console on exception pages or by using <%= console %> in views
  gem 'web-console', '~> 2.0'

  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
end

gem 'devise'
group :development, :test do
  gem "interactive_editor"
  gem "hirb"
  gem "awesome_print"
  gem 'byebug'
end
group :production do
  gem 'rails_12factor'
  gem 'puma'
end
gem 'mail_form'
gem 'font-awesome-sass', '~> 5.12.0'

gem 'bootsnap', '>= 1.1.0', require: false
gem 'bootstrap-sass', '~>3.2.0'

gem 'paperclip'

gem 'aws-sdk-s3'
gem 'aws-sdk', '< 2.0'

gem 'thor', '0.19.1'
gem 'omniauth-google-oauth2'
gem "recaptcha", require: "recaptcha/rails"
gem 'friendly_id', '~> 5.4.0'

gem 'activeadmin'

gem 'cocoon'
gem 'bigdecimal', '1.3.5'
gem 'bundler', '1.17.3'
gem 'paperclip-av-transcoder'
gem "paperclip-ffmpeg", "~> 1.2.0"
gem "will_paginate", "~> 3.0.4" 
gem 'rails-erd'
gem 'rails_autolink'

gem 'rails-erd', group: :development

在模型中

  has_attached_file :video, :styles => {
     :medium => { :geometry => "500x500", :format => 'jpg' },
     :thumb => { :geometry => "100x100", :format => 'jpg' }
  }, :processors => [:transcoder]

  validates_attachment_content_type :video,
    :content_type => [
      "video/mp4", 
      "video/quicktime",
      "video/3gpp",
      "video/x-ms-wmv",
      "video/mov",
      "video/flv",
      
      ]
sql sqlite heroku ffmpeg paperclip
© www.soinside.com 2019 - 2024. All rights reserved.