Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (109)

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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (14686)

  • 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 ('2013-04-20 00:03:20', '14_jan_2013_hk.mov', NULL, '14_jan_2013_hk.mov_screenshot.png', '2013-04-20 00:03:20', 5)

    video.rb

    class Video < ActiveRecord::Base

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

     default_scope order('created_at DESC')

     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 = '/opt/local/bin/ffmpeg'
       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 < CarrierWave::Uploader::Base

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

     storage :fog

     process resize_and_pad: [270, 135, '#000']

     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 < 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
  • How to limit FFMpeg CPU usage ? Threads ? [closed]

    6 mai 2013, par forg4t

    I read lot of forum comment how to limit ffmpeg cpu... many people wrote to use this formula : nice -n 10 or 20 it's ok. But I don't know what number should be use in ffmpeg threads ? 0 or 1, 2, 3 I don't know. I would really appreciate your help !

    I checked the system data :

    server : # lscpu
    Architecture : x86_64
    CPU op-mode(s) : 32-bit, 64-bit
    Byte Order : Little Endian
    CPU(s) : 2
    On-line CPU(s) list : 0,1
    Thread(s) per core : 1
    Core(s) per socket : 2
    Socket(s) : 1
    NUMA node(s) : 1
    Vendor ID : GenuineIntel
    CPU family : 6
    Model : 37
    Stepping : 1
    CPU MHz : 3066.775
    BogoMIPS : 6133.55
    Hypervisor vendor : VMware
    Virtualization type : full
    L1d cache : 32K
    L1i cache : 32K
    L2 cache : 256K
    L3 cache : 12288K
    NUMA node0 CPU(s) : 0,1

    server : # less /proc/cpuinfo
    processor : 0
    vendor_id : GenuineIntel
    cpu family : 6
    model : 37
    model name : Intel(R) Xeon(R) CPU X5675 @ 3.07GHz
    stepping : 1
    microcode : 0x15
    cpu MHz : 3066.775
    cache size : 12288 KB
    physical id : 0
    siblings : 2
    core id : 0
    cpu cores : 2
    apicid : 0
    initial apicid : 0
    fpu : yes
    fpu_exception : yes
    cpuid level : 11
    wp : yes

  • Revision 60e01c6530 : Account for eob cost in the RTC mode decision process This commit accounts for

    3 avril 2015, par Jingning Han

    Changed Paths :
     Modify /vp9/encoder/vp9_pickmode.c



    Account for eob cost in the RTC mode decision process

    This commit accounts for the transform block end of coefficient flag
    cost in the RTC mode decision process. This allows a more precise
    rate estimate. It also turns on the model to block sizes up to 32x32.
    The test sequences shows about 3% - 5% speed penalty for speed -6.
    The average compression performance improvement for speed -6 is
    1.58% in PSNR. The compression gains for hard clips like jimredvga,
    mmmoving, and tacomascmv at low bit-rate range are 1.8%, 2.1%, and
    3.2%, respectively.

    Change-Id : Ic2ae211888e25a93979eac56b274c6e5ebcc21fb