Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (83)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (9053)

  • FFmpeg mp4 encoder for android html

    24 mai 2017, par Dell Watson

    Hello I’m trying to put video .mp4 auto-captured by my webcam using ffmpeg into HTML, and then activated my localhost so my android could see it.

    the video in my android WAS ABLE to play BUT it’s all white and pixels error, so it’s a fail.

    I thought because android has difference surface because in my desktop it runs perfectly, then i keep searching and trying with ogv/webm.

    In the end, I just use a downloaded mp4 and it runs perfectly tho.
    now I think the problem was coming from my mp4-webcam created by ffmpeg(run in cmd)

    I compare a mp4-webcam vs mp4-downloaded

    5sec vs 1min,

    Data-rate : 16477kbps vs 613kbps

    framerate : 30frm/s vs 23frm/s

    size : 9MB vs 5 MB

    even tho it’s only 5sec video by webcam, it still has larger data than a 1min video-downloaded maybe it was because without conversion.

    but the question, is that the reason of the problem ? android-html(google chrome) wasn’t able to display and make a dead pixels since in desktop it runs. it shouldn’t be the problem right ?

    I really need to transfer webcam-record into android-surface (my web-app).

    I have no idea to fix it, any advice ? I’ve been searching a lot. Maybe there was another problem I do not know yet.

    EDIT : my cmd ffmpeg run : ffmpeg -y -f v4l2 -i /dev/video1 -codec:v libx264 -qp 0 -t 0:00:05 hss.mp4

    EDIT 2 : my 2nd thought because ffmpeg encoder that I used(libx264) isnot support for android. but i still no idea

  • videotoolbox : add hwcontext support

    15 mai 2017, par wm4
    videotoolbox : add hwcontext support
    

    This adds tons of code for no other benefit than making VideoToolbox
    support conform with the new hwaccel API (using hw_device_ctx and
    hw_frames_ctx).

    Since VideoToolbox decoding does not actually require the user to
    allocate frames, the new code does mostly nothing.

    One benefit is that ffmpeg_videotoolbox.c can be dropped once generic
    hwaccel support for ffmpeg.c is merged from Libav.

    Does not consider VDA or VideoToolbox encoding.

    Fun fact : the frame transfer functions are copied from vaapi, as the
    mapping makes copying generic boilerplate. Mapping itself is not
    exported by the VT code, because I don't know how to test.

    • [DH] doc/APIchanges
    • [DH] libavcodec/vda_vt_internal.h
    • [DH] libavcodec/version.h
    • [DH] libavcodec/videotoolbox.c
    • [DH] libavutil/Makefile
    • [DH] libavutil/hwcontext.c
    • [DH] libavutil/hwcontext.h
    • [DH] libavutil/hwcontext_internal.h
    • [DH] libavutil/hwcontext_videotoolbox.c
    • [DH] libavutil/hwcontext_videotoolbox.h
    • [DH] libavutil/version.h
  • 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 :
    `

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