Recherche avancée

Médias (3)

Mot : - Tags -/pdf

Autres articles (109)

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (12251)

  • fftools/ffprobe : Fix hypothetical stack buffer overflow

    31 mars, par Andreas Rheinhardt
    fftools/ffprobe : Fix hypothetical stack buffer overflow
    

    It can't really happen, because no currently used pixel format
    has a name exceeding the size of the buffer.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] fftools/ffprobe.c
  • Uploading videos on rails website

    16 mai 2017, par Dinukaperera

    I am trying to let my users upload videos on my website(not deployed yet, testing locally). I have it set up in a manner where if the "user information" gets saved, it will take them to the "root_path", which is the homepage. If the user information is not saved, it will render the form again. Before I added the video upload feature, all the information got saved and everything worked well, but after adding the feature, it keeps rendering the same form over and over again since the information is not getting saved. How do I check what’s wrong ? The command line gives me this error : Error screenshot

    The user information form partial :
    `

    &lt;%= simple_form_for @userinfo do |f| %>
     &lt;%= f.input :name, label: 'Full name', error: 'Full name is mandatory' %>
     &lt;%= f.input :username, label: 'Username', error: 'Username is mandatory, please specify one' %>
     &lt;%= f.input :school, label: 'Name of college' %>
     &lt;%= f.input :gpa, label: 'Enter GPA' %>
     &lt;%= f.input :email, label: 'Enter email address' %>
     &lt;%= f.input :number, label: 'Phone number' %>
     &lt;%= f.file_field :video %>
     &lt;%= f.button :submit %>
    &lt;% end %>

    `

    My user controller (This is the user information controller, does not control user email and password. I’m using the devise gem for user sign in, sign out, and sign up) :`

    class UsersController &lt; ApplicationController
       def index
       end

       def show
       end

       def new
           @userinfo = User.new
       end

       def create
           @userinfo = User.new(user_params)
           if @userinfo.save
             redirect_to root_path
           else
             render 'new'
           end
       end

       def edit
       end

       def update
       end

       def destroy
       end

       private
           def user_params
               params.require(:user).permit(:name, :username, :email, :number, :school, :gpa, :major, :video)
           end
    end

    `

    This is the user model (usermain is the model related to user password and email. The user information in the user model belongs to the usermain) : `

    class User &lt; ActiveRecord::Base
       belongs_to :usermain

       has_attached_file :video, styles: {:video_show => {:geometry => "640x480",:format => 'mp4'},:video_index => { :geometry => "160x120", :format => 'jpeg', :time => 10}}, :processors => [:transcoder]
       validates_attachment_content_type :video, content_type: /\Avideo\/.*\Z/
    end

    `

    This is the migration file that creates the user information table :`

    class CreateUsers &lt; ActiveRecord::Migration
     def change
       create_table :users do |t|
         t.string :name
         t.string :username
         t.string :email
         t.string :number
         t.string :school
         t.string :gpa
         t.string :major

         t.timestamps null: false
       end
     end
    end
    This is adding the "video" field to the above created user information table:
    class AddAttachmentVideoToUsers &lt; ActiveRecord::Migration
     def self.up
       change_table :users do |t|
         t.attachment :video
       end
     end

     def self.down
       remove_attachment :users, :video
     end
    end

    `

    I also have paperclip and ffmpeg installed. When I say installed, it’s literally just that. I’m not sure if I have to manipulate paperclip or ffmpeg in any way to make it work with the videos, I have just installed and did nothing else with them. I have been pulling my hair out for the past two days. Any help is appreciated.

  • How to capture a layered window with transparency background properly ? (using BitBlt)

    25 octobre 2016, par Mitra M

    I want to capture a WPF window (WPF layered window) with transparency background.

    To do that I tried FFmpeg, But :

    1 - If I set AllowTransparency (this is a property of WPF window) to false ,I can capture the window by gdigrab (this is an ffmpeg device), but output has black background.(I don’t want black background)

    2 - If I set AllowTransparency to true then gdigrab won’t work. (get black frame only)

    I have read David’s nice article, he has said :

    if you use BitBlt to do this, you could “or in” the CAPTUREBLT flag if
    you wanted to capture windows that are layered

    The gdigrab uses BitBlt, this is gdigrab.c code snippet :

    /* Blit screen grab */
       if (!BitBlt(dest_hdc, 0, 0,
                   clip_rect.right - clip_rect.left,
                   clip_rect.bottom - clip_rect.top,
                   source_hdc,
                   clip_rect.left, clip_rect.top, SRCCOPY | CAPTUREBLT)) {
           WIN32_API_ERROR("Failed to capture image");
           return AVERROR(EIO);
       }

    You can see the flags . (SRCCOPY | CAPTUREBLT).

    Please tell me :

    1- Why the gdigrab can not capture a WPF window properly ?

    2 - What changes in this code should be done to do this ?

    (Sorry for my English, I used translate.google)

    Thanks