
Recherche avancée
Médias (1)
-
1 000 000 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Sur d’autres sites (1965)
-
Rails 4 App Video Uploading CarrierWave AWS & Heroku - ffmpeg : command not found
14 juin 2016, par still_learningHave a basic Rails 4 App where users can register and then upload a video.
Can’t get app working in production on Heroku with CarrierWave and AWS.
Whenever I try upload a video I get the following error :
Errno::ENOENT (No such file or directory - the ffprobe binary could not be found in /app/vendor/bundle/ruby/2.2.0/bin :/app/bin :/app/vendor/bundle/bin :/usr/local/bin :/usr/bin :/bin) :
Used brew to install ffmpeg and ffmpeg2theora on my system.
Then used the Heroku Buildpacks to add ffmpeg to my Heroku App.
$ heroku buildpacks
=== serene-temple-75731 Buildpack URLs
1. heroku/ruby
2. https://github.com/shunjikonishi/heroku-buildpack-ffmpegBut when I run :
$ heroku run "ffmpeg -version"
Running ffmpeg -version on ⬢ serene-temple-75731... up, run.8863
bash : ffmpeg : command not foundHow do I get round this issue ?
Gemfile.rb
gem 'carrierwave'
gem 'carrierwave-video'
gem 'video_thumbnailer'
gem 'carrierwave-ffmpeg'
gem "fog"video_uploader.rb
class VideoUploader < CarrierWave::Uploader::Base
include CarrierWave::RMagick
include CarrierWave::Video
include CarrierWave::FFmpeg
include VideoThumbnailer
storage :file
version :mp4 do
process encode_video: [:mp4, custom: '-ss 00:00:00.000 -t 00:00:17.000', preserve_aspect_ratio: :height]
def full_filename for_file
png_name for_file, version_name, "mp4"
end
end
endinitializers/carrierwave.rb
CarrierWave.configure do |config|
# Use local storage if in development or test
if Rails.env.development? || Rails.env.test?
CarrierWave.configure do |config|
config.storage = :file
end
end
# Use AWS storage if in production
if Rails.env.production?
CarrierWave.configure do |config|
config.storage = :fog
end
end
config.fog_credentials = {
:provider => 'AWS',
:aws_access_key_id => 'ENV["AWS_ACCESS_KEY_ID"]',
:aws_secret_access_key => 'ENV["AWS_SECRET_ACCESS_KEY"]',
}
config.fog_directory = 'ENV["S3_BUCKET_NAME"]'
#config.fog_host = 'https://assets.example.com'
#config.fog_public = false
config.fog_attributes = {'Cache-Control'=>'max-age=315576000'}
endAny suggestions ? If you want more code just ask.
-
ffmpeg on linux server
9 mai 2014, par yahya akhtarI have download static build for linux and save into the media temple project directory it gives me blank page. But on the windows localhost every thing working fine
$main_dir = dirname(__FILE__);
$output= shell_exec($main_dir."/ffmpeg 2>&1");
$ourFileName = $main_dir."/testFile.txt";
$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");
fwrite($ourFileHandle,$output);
fclose($ourFileHandle);
print $output; -
Revision 30966 : eviter le moche ’doctype_ecrire’ lors de l’upgrade
17 août 2009, par fil@… — Logeviter le moche ’doctype_ecrire’ lors de l’upgrade