Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (39)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (6355)

  • How ffmpeg work on server for different type of users ? [on hold]

    7 août 2016, par sam

    I have a question about ffmpeg and I am using mac and xampp and php and jQuery. I make a function that upload video or image file or another type when I saw examples of ffmpeg in Stack Overflow. My questions are :

    1. client can be window user or mac or another than we have to download all different type of ffmpeg file for example ffmpeg.exe and mac can be another because when I saw how to download ffmpeg than they show me different operating system.

    2. And where we have to save ffmpeg file in xampp

    3. If I download all things for mac and I run it and it works and I make my website online and than any Windows user or Linux user will upload video it will work for him also. But we do not client download ffmpeg in their system

    If anybody know good example of create thumbnail for video please tell me.

  • Raising and Rescuing Custom Exception

    24 décembre 2013, par cmw

    I'm using Rails 3 with Carrierwave and FFMPEG to handle video uploads and encoding.

    In my uploader, I'm using FFMPEG to grab the duration of the video from cache before storing it.

    I'd like to raise a custom exception if the video's duration exceeds a specific length and then route the user accordingly. I've spent quite a bit of time trying to figure out how to create, raise and rescue my own custom exceptions in Rails – but, I've had no luck.

    Some posts I've used to try to piece this together include this stack overflow post and this article on customized exception handling in Rails 3. I've had no luck yet.

    I'm hoping someone can offer guidance on the proper approach to this. My mind is blown.

    Below is what my uploader looks like :

    class VideoUploader < CarrierWave::Uploader::Base

     before :store, :ffmpeg

     # Set storage type
     storage :fog

     # Override the directory where uploaded files will be stored.
     def store_dir
       "#{model.class.to_s.underscore}/videos/#{model.id}"
     end

     # Add a white list of extensions which are allowed to be uploaded.
     def extension_white_list
       %w(mov avi mp4 mkv wmv mpg)
     end

     def full_cache_path
       "#{::Rails.root}/public/#{cache_dir}/#{cache_name}"
     end

     private

     def ffmpeg(*args)
       @model.video.cache_stored_file!
       movie = FFMPEG::Movie.new("#{model.video.full_cache_path}")
       if movie.duration > 600
         raise "my custom exception will go here one day"
       end
     end

    end
  • Sidekiq not processing video meta data using stremio-ffmpeg in rails app

    22 juillet 2017, par Arnold

    I am trying to process different video resolutions in background using carrierwave backgrounder, carrierwave-video and sidekiq. everything is working well (all the versions are created in background) except the meta data captured using stremio-ffmpeg. I am completely stuck and can’t figure out why the meta data are not being processed.

    below are my sample codes

    video_uploader.rb

    require 'streamio-ffmpeg'
    class VideoUploader < CarrierWave::Uploader::Base
    include CarrierWave::Video  # for your video processing
    include CarrierWave::Video::Thumbnailer
    include ::CarrierWave::Backgrounder::Delay
    # Include RMagick or MiniMagick support:
    # include CarrierWave::RMagick
    # include CarrierWave::MiniMagick
    # Choose what kind of storage to use for this uploader:
    storage :file
    # storage :fog
    #byebug
    process :save_metadata
    # Override the directory where uploaded files will be stored.
    # This is a sensible default for uploaders that are meant to be mounted:
    def store_dir
    default_path = "/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
    # if FLAVOR == "uglive"
    #   default_path = "/uglive#{default_path}"
    # end
    "#{VIDEO_STORAGE}#{default_path}"
    end
    version :thumb do
    process thumbnail: [{format: 'png', quality: 10, size: 360, strip: false,
    square: false, logger: Rails.logger}]
    def full_filename for_file
     png_name for_file, version_name
    end
    end
    def png_name for_file, version_name
    #remove all accents
    I18n.transliterate(%Q{#{version_name}_#
    {for_file.chomp(File.extname(for_file))}.png})
    end
    #save the video size in the model
    def save_metadata
    video = FFMPEG::Movie.new(file.file)
    if video.valid?
     model.duration = video.duration #(duration of the video in seconds)
     model.size = video.size #size is bytes
     model.video_codec = video.video_codec # "h264"
     model.width = video.width # 640 (width of the video in pixels)
     model.height = video.height # 480 (height of the video in pixels)
     model.audio_codec = video.audio_codec # "aac"
    end
    end
    # Different Video Resolutions
    version :res_480p, :do_not_delay => true do
    process encode_video: [:mp4, resolution: "720X480"]
    end
    version :res_720p do
    process encode_video: [:mp4, resolution: "1280X720"]
    end
    version :res_360p do
    process encode_video: [:mp4, resolution: "640x360"]
    end
    version :res_240p do
    process encode_video: [:mp4, resolution: "426x240"]
    end

    video.rb i called the mount uploader and background_process method (carrierwave video gem)

    mount_uploader :file, VideoUploader
    process_in_background :file

    when i run bundle exec sidekiq -q carrierwavethe version are created in background but the save_metadata method is never processed, so the duration,size,width, height, video_codec and audio_codec are nil in the Video model.

    I am stuck on this the whole day. any help will be highly welcome