
Recherche avancée
Autres articles (63)
-
Le plugin : Gestion de la mutualisation
2 mars 2010, parLe plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
Installation basique
On installe les fichiers de SPIP sur le serveur.
On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
< ?php (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (6448)
-
C# Recording 3D object ffmpeg
1er décembre 2015, par SkyxI want to make a screen recording on my application in C# which has a 3D model in it. I found out that i can do the recording with ffmpeg. I implemented the CopyFromScreen function which records the whole screen.
CopyFromScreen.graphics.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size);
I want to record only my 3D model viewport without recording the whole screen. Does anyone know or experience working with ffmpeg recording just the specifiek object or a 3D viewport ?
private readonly HelixViewport3D _viewport = new HelixViewport3D(); // my 3D model viewport
-
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 -
How to parse ffmpeg progress real time in ruby
7 octobre 2015, par jryancantySo I was struggling with this problem a long time last night and finally figured it out so I wanted to post here in case someone ran across the same issue.
The goal is to parse the output of FFmpeg so that it would run in a Sidekiq worker and save progress and duration to an ActiveRecord model so I could get a progress bar in the UI by polling the database.
How do I parse ffmpeg
duration
andtime
real-time without waiting for the process to finish ?