Recherche avancée

Médias (91)

Autres articles (87)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (8050)

  • Evolution #2815 (Nouveau) : Filtre ou syntaxe pour obtenir le chemin d’un logo

    10 août 2012, par Maïeul Rouquette

    (#LOGO_XX nous donne chemin du logo + timestamp [(#LOGO_XX**)] nous donne le nom du logo mais sans le chemin. À ma connaissance, il n’existe pas de syntaxe permettant d’avoir le chemin du logo sans le timestamp, sauf contorsion. Pour le moment le plus simple que j’ai (...)

  • Anomalie #2826 (Nouveau) : Corriger le RSS de suivi des articles proposés pour arriver sur la bonn...

    19 août 2012, par Maïeul Rouquette

    Le RSS de suivi des articles de l’espace privé pose pb. Pour le moment il renvoi sur ecrire/ ?exec=articles&id_article=x, alors qu’ils serait plus pertinent de renvoyer vers /ecrire/ ?exec=article&id_article=x Ci joint le patch a appliquer sur (...)

  • Unable to upload/convert videos using Paperclip-FFMPEG gem in Rails

    31 juillet 2012, par Graeme

    FIXED : 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]


    end

    My 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 :video

    Any 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:in

    rescue in make'
    lib/paperclip_processors/ffmpeg.rb:120:in

    make'
    app/controllers/videos_controller.rb:43:in

    new'
    app/controllers/videos_controller.rb:43:in

    create'

    Any help would be much appreciated !