Recherche avancée

Médias (91)

Autres articles (87)

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

  • Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur

    8 février 2011, par

    La visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
    Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
    Configuration de la boite multimédia
    Dès (...)

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

  • FFMPEG scene detection : overlay original frame number

    21 décembre 2020, par Fugi

    I'm able to extract all frames that are not similar to the previous frame from a video file using ffmpeg -i video.mp4 -vf "select=gt(scene\,0.003),setpts=N/(30*TB)" frame%d.jpg (source)

    


    I would like to overlay the frame number onto each selected frame. I tried adding drawtext=fontfile=/Windows/Fonts/Arial.ttf: text='frame\: %{frame_num}': x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=0x00000000@1: fontsize=30 to the filter after select and setpts, however %frame_num returns 1, 2, 3, ... (source)

    


    If I put drawtext before select and setpts, I get something like 16, 42, 181, ... as frame numbers (which is exactly what I want), but since the scene detection runs after adding the text overlay, changes in the overlay may be detected as well.

    


    Is it possible to do the scene detection and overlay independently from another ? [in] split [out0][out1] can be used to apply filters separately, but I don't know how to "combine" the results again.

    


  • 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

  • ffmpeg scale down video dynamically (squeeze-back) or zoompan out to smaller than original

    27 avril, par Sam

    I have 2 videos, I'm trying to overlay one on top of the other, and have it shrink down in an animated fashion until it appears like a picture-in-picture setup. Then, after a few seconds it should scale back up.

    &#xA;

    This is what I am trying to achieve (these would be videos, not images) :&#xA;enter image description here

    &#xA;

    This is the closest I've been able to get, but, crucially, zoompanning "out" (as opposed to "in") does not appear to work ; so, of course, this does not work :

    &#xA;

    ffmpeg -i bg.mov -i top.mov -filter_complex "[0:v]zoompan=z=&#x27;pzoom-0.1&#x27;:d=1, setpts=PTS-STARTPTS[top]; [1:v]setpts=PTS-STARTPTS&#x2B;2/TB, scale=1920x1080, format=yuva420p,colorchannelmixer=aa=1.0[bottom]; [top][bottom]overlay=shortest=0" -vcodec libx264 out.mp4

    &#xA;

    Is this achievable with ffmpeg ?

    &#xA;