
Recherche avancée
Autres articles (41)
-
Publier sur MédiaSpip
13 juin 2013Puis-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 -
Encodage et transformation en formats lisibles sur Internet
10 avril 2011MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (4524)
-
FFMPEG scene detection : overlay original frame number
21 décembre 2020, par FugiI'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 returns1, 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.GravesOkay 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"]
endMy show view for the video :
<%= video_tag @pin.video.url %>
<p>
<strong>Description:</strong>
<%= @pin.description %>
</p>
<% if @pin.user == current_user %>
<%= link_to 'Edit', edit_pin_path(@pin) %>
<% end %>
<%= 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
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 SamI 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.


This is what I am trying to achieve (these would be videos, not images) :



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 :


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


Is this achievable with ffmpeg ?