Recherche avancée

Médias (0)

Mot : - Tags -/interaction

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

Autres articles (9)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

Sur d’autres sites (2920)

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

  • FFMPEG stream RTSP to RTMP (Youtube) add logo

    16 juin 2017, par Māris Purviņš

    To stream video from IP cam to Youtube I’m using code (through Ubunu) :
    ffmpeg -f lavfi -i anullsrc -rtsp_transport tcp -i rtsp ://user:psw@192.168.0.100:554 -tune zerolatency -vcodec libx264 -pix_fmt + -c:v copy -c:a aac -strict experimental -f flv rtmp ://a.rtmp.youtube.com/live2/ -nostdin -nostats /dev/null 2>&1 &

    It is a bee project for school
    I have two cameras and two streams :
    https://www.youtube.com/watch?v=ws-VcLXo-hI

    Everything is ok, but... I would like to know :
    1. How to add png logo to this strem. I have tried -i /home/user/rvvg_logo_round.png -codec:v libx264 -preset ultrafast -filter_complex overlay and another methods but without a result.
    2. Sometimes there is some problem during night and video streaming stops. How to automatically check process status and restart stream.
    I have tried to create sh file as described in http://videos.cctvcamerapros.com/raspberry-pi/ip-camera-raspberry-pi-youtube-live-video-streaming-server.html and put in cron job, bet that is only to check one cam process. Is there some better idea ?

  • ffmpeg hevc h265 4k 10 bit

    14 juillet 2017, par Ali Jose

    I want to be able to encode 4k videos in TS files having video codec as HEVC at constant bitrate 20 Mbps, dolby audio (2 channel front L & R). This is the spec sheet as provided from my client http://159.8.5.10:3001/download/4k-specs.xlsx Im using this code :

    I used this code at first to produce a sample which conforms to their spec sheet, however the playback was not smooth neither on my side nor on their side :

    ffmpeg -i input.mov -pix_fmt yuv420p10le -c:v libx265  -b:v 19.5M -minrate 19.5M -maxrate 19.5M -muxrate 20M -x265-params "level=6.2" -r 50 -s 3840x2160 -c:a ac3 -b:a 384k -minrate 384k -maxrate 384k -channel_layout 3  output.ts

    the produced sample is found in the following link : http://159.8.5.10:3001/download/two_mns_sample.rar

    The client sent me this sample, he told me it is provided by another supplier and it is approved by their end (it matches their spec sheet and plays smoothly in their broadcast software), the sample is found under the following link : http://159.8.5.10:3001/download/approved-4k.rar

    Then the client sent me another sample, they also said that it is approved by their side (matched their specs and plays smoothly in their broadcast software) found under the following link : http://159.8.5.10:3001/download/approved-4k-2.rar

    When examining well the second approved sample, I noticed that it doesnt meet the spec sheet 100% but the differences are minor (level @ 5.1 instead of 6.2 and dolby 5.1 instead of dolby Stereo... so minor differences) but as they described, it played back smoothly in their broadcast playback. So we can understand from that that they are a bit flexible.

    My 4k source file is an mov Prores 4444, 23.97 fps, 10 bit depth, 444 chroma subsampling, variable bitrate (around 950 Mbps). To find out more info about the input file, please go to this link (MediaInfo txt export) : http://159.8.5.10:3001/download/4k-original.txt

    This is a 2mns sample trimmed clip from my original file (couldnt upload the whole source file since its 800 GB !) : http://159.8.5.10:3001/download/original-2-mns.mov

    I need an ffmpeg code that can generate a sample that complies to their specification sheet and can be played SMOOTHLY in their technical department, it was mentioned they are using 4k playbox technology (maybe airbox but it was not clear, but what we can assure is that they use good instrument for broadcast, they dont go for below average instrument/software), I need to send them samples that they later check and play on their playback system and get approved.