Recherche avancée

Médias (1)

Mot : - Tags -/3GS

Autres articles (43)

  • MediaSPIP : Modification des droits de création d’objets et de publication définitive

    11 novembre 2010, par

    Par défaut, MediaSPIP permet de créer 5 types d’objets.
    Toujours par défaut les droits de création et de publication définitive de ces objets sont réservés aux administrateurs, mais ils sont bien entendu configurables par les webmestres.
    Ces droits sont ainsi bloqués pour plusieurs raisons : parce que le fait d’autoriser à publier doit être la volonté du webmestre pas de l’ensemble de la plateforme et donc ne pas être un choix par défaut ; parce qu’avoir un compte peut servir à autre choses également, (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (8071)

  • Rails Thumbnails for videos being uploaded to S3

    20 octobre 2015, par Dani

    I have a rails application where I need to upload videos to an amazon s3 bucket alongwith their thumbnails. I am using ffmpeg to generate thumbnails and I am using carrierwave to handle video uploads. Here is my video uploader class

    class VideoUploader < CarrierWave::Uploader::Base
     include CarrierWave::Video
     storage :fog
     def store_dir
        "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
     end
     def extension_white_list
       %w(mp4 flv)
     end
    end

    The video uploads fine and the column for video url is set in videos table but I want to generate thumbnail and upload it as well. I know I have to use ffmpeg here but don’t exactly know how to do it.

    Any help will be appreciated.

  • RoutingError No route matches GET videos/original/missing.png

    4 novembre 2015, par D.Graves

    Okay so Im having an issue uploading videos using paperclip av transcoder. Im getting just a blank black image for my video and cant play anything. So no error pops up online but on my GitBash I see an ActionController Routing Error.

    This is the Error I see in my Gitbash

    My model that has the video :

    class Pin < ActiveRecord::Base
    belongs_to :user
    has_attached_file :video, :styles => {
    :medium => { :geometry => "640x480", :format => 'mp4' },
    :thumb => { :geometry => "100x100#", :format => 'jpg', :time => 10 }
    }, :processors => [:transcoder]

    validates_attachment_content_type :video, :content_type => ["video/mp4",     "video.mov", "video/mpeg","video/mpeg4", "image/jpg", "image/jpeg"]

    end

    My show view for the video :

    <%= video_tag @pin.video.url %>

    <p>
    <strong>Description:</strong>
    &lt;%= @pin.description %>
    </p>

    &lt;% if @pin.user == current_user %>
    &lt;%= link_to 'Edit', edit_pin_path(@pin) %>
    &lt;% end %>
    &lt;%= link_to 'Back', pins_path %>

    I believe I installed ffmpeg correct and here is what it shows on my Gitbash for my version of ffmpeg

    enter image description here

    I also have the newest version of paperclip and paperclip av transcoder installed. Am I just missing a route ? If you all need any other code to maybe help just let me know and ill post it

  • Cocaine::CommandNotFoundError

    19 novembre 2015, par Haseeb Ahmad

    Using paperclip-ffmpeg for video uploading.

    WhenI upload it gives an error

    Cocaine::CommandNotFoundError (Cocaine::CommandNotFoundError):
    app/controllers/ads_controller.rb:27:in `create

    Cannot render console with content type multipart/form-dataAllowed content types: [#, #, #]

    My model is

    has_attached_file :videod, :styles => {
     :medium => { :geometry => "640x480", :format => 'flv' },
     :thumb => { :geometry => "100x100#", :format => 'jpg', :time => 10 }
    }, :processors => [:ffmpeg]
    validates_attachment_size :videod, :less_than => 100.megabytes
       validates_attachment_presence :videod
        validates_attachment_content_type :videod, :content_type => /\Avideo\/.*\Z/

    Gemfile

    gem "cocaine"
    gem 'paperclip-ffmpeg'