
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (46)
-
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" (...) -
MediaSPIP en mode privé (Intranet)
17 septembre 2013, parÀ partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)
Sur d’autres sites (8683)
-
FFmpeg and Ruby linkage
9 août 2012, par Thomas Kobber PanumI'm getting this error :
Failed encoding. Errors: no output file created. Full output: dyld: Library not loaded: /usr/local/lib/libogg.0.dylib
Referenced from: /usr/local/bin/ffmpeg
Reason: Incompatible library version: ffmpeg requires version 9.0.0 or later, but libogg.0.dylib provides version 6.0.0I've installed ffmpeg through brew, and installed both the 'ffmpeg' gem and the 'streamio-ffmpeg' gem.
Running :
otool -L /usr/local/lib/libogg.0.dylib
gives me this output :
/usr/local/lib/libogg.0.dylib:
/usr/local/lib/libogg.0.dylib (compatibility version 9.0.0, current version 9.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)The file I'm using ffmpeg in, looks like this :
# lib/carrierwave/ffmpeg.rb
require 'streamio-ffmpeg'
module CarrierWave
module FFMPEG
module ClassMethods
def resample( bitrate )
process :resample => bitrate
end
end
def resample( bitrate )
directory = File.dirname( current_path )
tmpfile = File.join( directory, "tmpfile" )
FileUtils.mv( current_path, tmpfile )
file = ::FFMPEG::Movie.new(tmpfile)
file.transcode( current_path, :audio_bitrate => bitrate)
File.delete( tmpfile )
end
end
end -
Unable to upload/convert videos using Paperclip-FFMPEG gem in Rails
31 juillet 2012, par GraemeFIXED : It's due to a typo in the relevant lib file that I hadn't spotted ! See this issue for more details.
I'm still a bit of a Ruby on Rails newbie (running Rails 3.2.6 and Ruby 1.9.3p194), but I'm finding it very difficult to convert video files using the paperclip-ffmpeg gem. No matter what I do, an error message is displayed on the page after attempting to upload the video :
"cannot load such file : /[...My info...]/lib/paperclip_processors/ffmpeg.rb"
I'm trying to test using .mov files for the moment.
I'm trying to follow the instructions on the gem's github page, but without much success.
Firstly, I'm using a Mac (Snow Leopard) and ffmpeg is installed (running
which ffmpeg
tells me it's in/user/local/bin/ffmpeg
)In my application, I've added the following lines to the gemfile :
gem 'paperclip'
gem 'paperclip-ffmpeg'I've also added
Paperclip.options[:command_path] = "/usr/local/bin/"
to config/environments/development.rb as per the instructions :Myapp::Application.configure do
...
Paperclip.options[:command_path] = "/usr/local/bin/"
end(The instructions also suggest "in your environment config file, let Paperclip know to look there by adding that directory to its path", but I don't know what this means - maybe this is the problem ?).
My class is structured as follows :
class Myvideo > ActiveRecord::Base
attr_accessible :description, :title, :video
has_attached_file :video, :styles => {
:medium => { :geometry => "640x480", :format => 'flv' }
}, :processors => [:ffmpeg]
endMy understanding is that the above code converts the uploaded movie from .mov (or whatever) to .flv format.
However, the error I describe above appears whenever the user clicks on the Upload button (save for a few seconds while the video appears to be uploading).
Note that I can upload a video via the standard Paperclip gem without converting with no problems. Therefore, this code works (i.e. the video is uploaded but no conversion occurs) :
attr_accessible :description, :title, :video
has_attached_file :videoAny ideas where I might be going wrong ? Thanks !
EDIT - the original error message ("Cannot load such file...") appears to have arisen because I hadn't included the relevant ffmpeg.rb file from Github within the
/lib
directory. Thanks to @wehal3001 for pointing this out !However, while I now have this file in my application, I still get the following error when trying to upload a video :
uninitialized constant Paperclip::Ffmpeg::PaperclipError
...
lib/paperclip_processors/ffmpeg.rb:123:inrescue in make'
lib/paperclip_processors/ffmpeg.rb:120:inmake'
app/controllers/videos_controller.rb:43:innew'
app/controllers/videos_controller.rb:43:increate'
Any help would be much appreciated !
-
ffmpeg concat batch loop with text file
4 octobre 2013, par Lisa JacobsI'm trying to batch a concat loop for a series of avi files where I need to add to each AVI a preroll and postroll movie.
Here's what I've tried :
_input.txt
file :file '3D_preroll.avi'
file '%%a'
file '3D_postroll.avi'concat.bat
file :for %%a in ("*.avi") do ffmpeg -f concat -i _input.txt -c:v libx264 -b:v 1700k -minrate 1500k -maxrate 1900k -bufsize 1900k -deinterlace -acodec libvo_aacenc -ac 2 -ar 48000 -ab 92k "%%a"_432p.mp4
pauseUnfortunately, I get the following error message before FFMPEG crashes :
Impossible to open '%%a'What am I doing wrong ?
Thank you :)