
Recherche avancée
Médias (91)
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Paul Westerberg - Looking Up in Heaven
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Le Tigre - Fake French
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Thievery Corporation - DC 3000
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Dan the Automator - Relaxation Spa Treatment
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Gilberto Gil - Oslodum
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (51)
-
Qualité du média après traitement
21 juin 2013, parLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...) -
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...) -
MediaSPIP Init et Diogène : types de publications de MediaSPIP
11 novembre 2010, parÀ l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)
Sur d’autres sites (3838)
-
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 on Mamp wrong path
24 août 2012, par user1595349I am having some problems with running ffmpeg on a MAMP environment an a Mac. I was able to install ffmpeg with homebrew and i can use it in the terminal with no problems.
However I am not able to call ffmpeg with MAMP via php exec.
I'm using this script :
<?php
exec('ffmpeg -i test.mp3 test.wav');
?>I think something might be wrong with the path ? Do I need to install ffmpeg in the MAMP folder ? At the moment it is installed in my "usr/Users/Username/local/bin" folder...?
Thank you for your help !
-
Anomalie #2857 : Mauvaise identité de l’auteur de la révision dans le bloc révision de /ecrire
15 septembre 2012, par jluc -Correction sur la dernière phrase : ce n’est pas JAMAIS. Le bloc révision de /ecrire affiche l’IP de la personne faisant la modif si celle ci n’est pas identifiée (déconnectée) TANT QU’un auteur identifié n’a pas fait de modifications sur le site : à ce moment, c’est le nom de cet auteur qui apparaît (...)