Recherche avancée

Médias (91)

Autres articles (95)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (12107)

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

  • FFmpeg and Ruby linkage

    9 août 2012, par Thomas Kobber Panum

    I'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.0

    I'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
  • Ffmpeg how to reduce video weight after convertation

    27 octobre 2013, par Dirk Swarz

    Im using this php code to convert from avi to mp4 :

    $ffmpeg_command = 'ffmpeg -i '.$convert_source.' -acodec libmp3lame -vcodec libx264 -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 '.$converted_file;

    and this is bad becose when i convert for example 1mb avi movie it converts and plays in flash player but it weights 11mb how can i reduce it ?