Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (111)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP 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, par

    Chaque 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 (9885)

  • 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 (...)

  • ffmpeg on Mamp wrong path

    24 août 2012, par user1595349

    I 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 !

  • 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 !