Recherche avancée

Médias (91)

Autres articles (52)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (8815)

  • af_hdcd : allow all HDCD sample rates

    7 septembre 2016, par Burt P
    af_hdcd : allow all HDCD sample rates
    

    The PM Model Two could output HDCD-encoded audio in CD and all
    DVD-Audio sample rates. (44100, 48000, 88200, 96000, 176400, and
    192000 Hz)

    Signed-off-by : Burt P <pburt0@gmail.com>

    • [DH] libavfilter/af_hdcd.c
  • aacenc : Fix target bitrate for twoloop quantiser search

    4 mai 2013, par Claudio Freire
    aacenc : Fix target bitrate for twoloop quantiser search
    

    This fixes a case where multichannel bitrate isn’t accurately
    targetted by psy model alone, never achieving the target bitrate.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavcodec/aaccoder.c
  • Carrierwave and FFMPEG saving to 2 destinations - Rails, Fog, S3

    20 avril 2013, par dodgerogers747

    I have a video model, which uses Carrierwave, Fog, FFMPEG and S3 to handle video files. I have a method in my video model that takes a screenshot before the video is saved to S3. Both Video and screenshot are saved to S3 using 2 Carrierwave Uploader classes, Image_uploader and video_uploader with the video being saved to the Video.file column and screenshot saved at the Video.screenshot.

    This all works as intended, however, FFMPEG also saves a copy of the screenshot to the rails filesystem, "Rails.root/file_is_saved_here". For now I have FFMPEG saving this file into the Rails.root/public/uploads folder along with the tmp files created by Carrierwave.

    How can I get one screenshot saved to S3 without the second being saved on the filesystem ?

    Commit & trace data and

    Running transcoding...
    /opt/local/bin/ffmpeg -y -i /Users/me/rails_projects/teebox_network/public/uploads/tmp/200/14_jan_2013_hk.mov -ss 3 -vframes 1 -f image2 /Users/garyrogers/rails_projects/teebox_network/public/uploads/14_jan_2013_hk.mov_screenshot.png

    Transcoding of /Users/me/rails_projects/teebox_network/public/uploads/tmp/200/14_jan_2013_hk.mov to /Users/garyrogers/rails_projects/teebox_network/public/uploads/14_jan_2013_hk.mov_screenshot.png succeeded

    Started POST "/videos" for 127.0.0.1 at 2013-04-19 17:03:07 -0700
    Processing by VideosController#create as */*
     Parameters: {"utf8"=>"✓", "authenticity_token"=>"DjFIu3971GxKYJzjDFu7LaBx85iOHPa5HzO6PLdSW+8=", "video"=>{"user_id"=>"5", "file"=>#quicktime\r\n", @tempfile=#var/folders/1g/d9qbm7_s0_5fcljtvzysp1gc0000gn/T/RackMultipart20130419-751-19kisab>>}}
     User Load (0.5ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 5 LIMIT 1
      (0.2ms)  BEGIN
     SQL (14.9ms)  INSERT INTO `videos` (`created_at`, `file`, `question_id`, `screenshot`, `updated_at`, `user_id`) VALUES (&#39;2013-04-20 00:03:20&#39;, &#39;14_jan_2013_hk.mov&#39;, NULL, &#39;14_jan_2013_hk.mov_screenshot.png&#39;, &#39;2013-04-20 00:03:20&#39;, 5)

    video.rb

    class Video &lt; ActiveRecord::Base

     attr_accessible :user_id, :question_id, :file
     belongs_to :question
     belongs_to :user

     default_scope order(&#39;created_at DESC&#39;)

     before_save :take_screenshot

     mount_uploader :file, VideoUploader
     mount_uploader :screenshot, ImageUploader

     def to_param
       "#{id} - #{File.basename(self.file.path)}".parameterize
     end

     private

     def take_screenshot
       FFMPEG.ffmpeg_binary = &#39;/opt/local/bin/ffmpeg&#39;
       movie = FFMPEG::Movie.new(self.file.current_path)
       self.screenshot = movie.screenshot("#{Rails.root}/public/uploads/#{File.basename(self.file.path)}_screenshot.png", seek_time: 3 )
     end
    end

    image_uploader class

    class ImageUploader &lt; CarrierWave::Uploader::Base

      include Sprockets::Helpers::RailsHelper
      include Sprockets::Helpers::IsolatedHelper

     storage :fog

     process resize_and_pad: [270, 135, &#39;#000&#39;]

     def store_dir
       "uploads/#{model.class.to_s.underscore}_screenshots/#{mounted_as}_images/#{model.id}"
     end

     def extension_white_list
       %w(png jpg)
       # %w(ogg ogv 3gp mp4 m4v webm mov)
     end

    Video uploader class

    class VideoUploader &lt; CarrierWave::Uploader::Base

      include Sprockets::Helpers::RailsHelper
      include Sprockets::Helpers::IsolatedHelper

     storage :fog

    def store_dir
       "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
     end

     def extension_white_list
       %w(ogg ogv 3gp mp4 m4v webm mov m2v 3g2)
       # %w(ogg ogv 3gp mp4 m4v webm mov)
     end