
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (73)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (8372)
-
aacenc : Fix target bitrate for twoloop quantiser search
4 mai 2013, par Claudio Freire -
Carrierwave and FFMPEG saving to 2 destinations - Rails, Fog, S3
20 avril 2013, par dodgerogers747I have a video model, which uses Carrierwave, Fog, FFMPEG and S3 to handle video files. I have a method in my video model that takes a screenshot before the video is saved to S3. Both Video and screenshot are saved to S3 using 2 Carrierwave Uploader classes, Image_uploader and video_uploader with the video being saved to the Video.file column and screenshot saved at the Video.screenshot.
This all works as intended, however, FFMPEG also saves a copy of the screenshot to the rails filesystem, "Rails.root/file_is_saved_here". For now I have FFMPEG saving this file into the Rails.root/public/uploads folder along with the tmp files created by Carrierwave.
How can I get one screenshot saved to S3 without the second being saved on the filesystem ?
Commit & trace data and
Running transcoding...
/opt/local/bin/ffmpeg -y -i /Users/me/rails_projects/teebox_network/public/uploads/tmp/200/14_jan_2013_hk.mov -ss 3 -vframes 1 -f image2 /Users/garyrogers/rails_projects/teebox_network/public/uploads/14_jan_2013_hk.mov_screenshot.png
Transcoding of /Users/me/rails_projects/teebox_network/public/uploads/tmp/200/14_jan_2013_hk.mov to /Users/garyrogers/rails_projects/teebox_network/public/uploads/14_jan_2013_hk.mov_screenshot.png succeeded
Started POST "/videos" for 127.0.0.1 at 2013-04-19 17:03:07 -0700
Processing by VideosController#create as */*
Parameters: {"utf8"=>"✓", "authenticity_token"=>"DjFIu3971GxKYJzjDFu7LaBx85iOHPa5HzO6PLdSW+8=", "video"=>{"user_id"=>"5", "file"=>#quicktime\r\n", @tempfile=#var/folders/1g/d9qbm7_s0_5fcljtvzysp1gc0000gn/T/RackMultipart20130419-751-19kisab>>}}
User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1
(0.2ms) BEGIN
SQL (14.9ms) INSERT INTO `videos` (`created_at`, `file`, `question_id`, `screenshot`, `updated_at`, `user_id`) VALUES ('2013-04-20 00:03:20', '14_jan_2013_hk.mov', NULL, '14_jan_2013_hk.mov_screenshot.png', '2013-04-20 00:03:20', 5)video.rb
class Video < ActiveRecord::Base
attr_accessible :user_id, :question_id, :file
belongs_to :question
belongs_to :user
default_scope order('created_at DESC')
before_save :take_screenshot
mount_uploader :file, VideoUploader
mount_uploader :screenshot, ImageUploader
def to_param
"#{id} - #{File.basename(self.file.path)}".parameterize
end
private
def take_screenshot
FFMPEG.ffmpeg_binary = '/opt/local/bin/ffmpeg'
movie = FFMPEG::Movie.new(self.file.current_path)
self.screenshot = movie.screenshot("#{Rails.root}/public/uploads/#{File.basename(self.file.path)}_screenshot.png", seek_time: 3 )
end
endimage_uploader class
class ImageUploader < CarrierWave::Uploader::Base
include Sprockets::Helpers::RailsHelper
include Sprockets::Helpers::IsolatedHelper
storage :fog
process resize_and_pad: [270, 135, '#000']
def store_dir
"uploads/#{model.class.to_s.underscore}_screenshots/#{mounted_as}_images/#{model.id}"
end
def extension_white_list
%w(png jpg)
# %w(ogg ogv 3gp mp4 m4v webm mov)
endVideo uploader class
class VideoUploader < CarrierWave::Uploader::Base
include Sprockets::Helpers::RailsHelper
include Sprockets::Helpers::IsolatedHelper
storage :fog
def store_dir
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
end
def extension_white_list
%w(ogg ogv 3gp mp4 m4v webm mov m2v 3g2)
# %w(ogg ogv 3gp mp4 m4v webm mov)
end -
Convert video as soon as possible to 854x480p and bitrate 1100kb/s [ffmpeg]
29 septembre 2016, par JensejIs any fast solution to convert video file to 854x480p and bitrate 1100kb/s using ffmpeg.
because now it goes with speed of 10 kb / s.I using this command :
ffmpeg -y -threads 8 -i /var/filmy/'.$new_name.' -b 1200k -minrate 1200k -maxrate 1200k -bufsize 1200k -ab 124k -vcodec libx264 -acodec aac -strict -2 -ac 2 -ar 44100 -s 854x480 -y /var/filmy/'.implode('.',array_slice(explode('.',$result['ffilename']), 0, -1)).'.mp4
CPU : model name : Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
RAM : 32 GB
there is a solution ?