
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (111)
-
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (10544)
-
How to use the function expr in drawtext ffmpeg to add a text to video ?
18 décembre 2013, par nhanptI'm try to add a text to my video using FFmpeg.
Sources : http://www.ffmpeg.org/ffmpeg-all.html#drawtext-1ffmpeg -i 1385363109.avi -vf "drawtext=fontfile=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf : text = %{localtime}: \x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=0x00000000@1" -an -y out11.avi
I am trying to figure out how to add a timestamp in a formatable manner (specifically, I'd like to show mm:ss). I think this should be possible using a command like
Code : Select all
ffmpeg -i input.avi -vf "drawtext=fontfile=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf:expansion=normal:text='%expr=floor(t/60)~:%expr=floor(t)' : fontcolor=white " output.aviBut I just get a lot of
Code : Select all
[Parsed_drawtext_0 @ 0x1a68a80] %expr=floor(t/60) is not knownand no text is displayed.
If I try
Code : Select all
ffmpeg -i input.avi -vf "drawtext=fontfile=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf:expansion=normal:text='%expr' : fontcolor=white " output.aviI get instead
Code : Select all
[Parsed_drawtext_0 @ 0x2d22be0] %expr requires at least 1 argumentsso the version of drawtext I have definitely recognizes the expr function, but I can't figure out the syntax for giving it an argument. Does anyone know what the synatax is for the expr (or e) function ?
Alternately, if there is another way to display the timecode as mm:ss that would be great too. I know that using the 'timecode' argument of drawtext you can get hh:mm:ss:ff, or using text='%pts' gives me decimal seconds to the microsecond, but I am sure that my advisor (who is very picky) will not accept either of these. Thanks in advance for any assistance !
-
How can I simply replace the colors using the color masks on this image and then save it ? With RGBA channels as example
31 août 2020, par karl-policeSo I got this GIF here :




As you can see, it has Red, Green and Blue in it. And it also has a full transparency in it. This was composed together with FFMPEG out of images that looked exactly like that.




Then, with FFMPEG I "decomposed" the RGB and Alpha channels using the filter "extractplanes".


The gallery of that, in correct order starting from up to down, can be found here :




I am not sure if this actually helps me or if I'm supposed to decompose them. Because apperantly now, after decomposing them, I'm supposed to modify them, but I'm not really sure how. It's like how do I modify the red channel that only has black and white, so all at the end, will match to the specified HEX color that I want it to be to.




Now, my question is. How do I exactly make the color changing happen ? Can I do this simply with JavaScript ? Is it possible to do with FFMPEG, if possible without ImageMagicks ? Maybe a programming language where not much installation is needed to do that ?


What I understood is that. These channels basically contain values from 0 to 255 with black and white. I think the "brightness" is that what 0 and 255. So something inbetween, would be like grey.


So basically, like we do (255,0,0) for red. In these channels, if I want red somewhere I need to put one fully white pixel on the red channel and on all the other channels, there has to be a fully black pixel.


That's the concept. Now is the question, how can I do this ?




At the end I want to make it look like the colors this one has, as example :




This is from a game. So basically that's how it looks like in the game. And the game files only use these RGBA template sprites.




I asked a similar question here : How to change colors of an image using RGBA and more channels independently of their color


But somehow, I might didn't seem to explain it that well.




I made a thing here to test around with things. I guess that's nearly close, but the lines are kinda weird. jsfiddle.net/qsgazubk


-
Overlay 2 RTSP live stream in sync
2 mai 2015, par perohuI’ve got 2 webcams. I capture the two RTSP h264 stream with FFMPEG and I’m overlaying one of the webcam’s stream on bottom right corner of the other webcam picture.
But the streams are not is sync, there is about 1 sec difference.How can I accomplish this to have both webcams in sync ?
Here is my FFMPEG command :
ffmpeg -rtsp_transport tcp -i "rtsp://xx.xx.xx.xx:555/h264/ch1/sub/av_stream" -rtsp_transport tcp -i "rtsp://xx.xx.xx.xx:554/h264/ch1/sub/av_stream" -i watermark704x400.png -filter_complex "[0]scale=496:288,crop=w=130:h=268:x=208:y=20 [pip]; [1]scale=704:400 [nagy]; [nagy][2] overlay=0:0 [nagy2];[nagy2][pip] overlay=main_w-overlay_w-5:main_h-overlay_h-5,drawtext=fontfile=/root/fonts/courbd.ttf:textfile=TEMP:fontsize=16:fontcolor=white:x=100-tw:y=7:reload=1,drawtext=fontfile=/root/fonts/courbd.ttf:textfile=HUM:fontsize=16:fontcolor=white:x=100-tw:y=40:reload=1,drawtext=fontfile=/root/fonts/courbd.ttf:text='%{localtime\:%Y.%m.%d. %T}':fontsize=16:fontcolor=white:x=60:y=h-51:shadowcolor=black:shadowx=1:shadowy=1,split=3 [a] [b] [c];[c] fps=fps=1/60 [p]" -c:v libx264 -map "[a]" -crf 23 -maxrate 1200k -bufsize 900k -f tee -movflags faststart -flags +global_header -g 100 -r 20 -rtmp_live live -profile:v main -preset:v medium -level 3.1 "/tmp/mp4/vp.feszek-`date +%Y%m%d-%H%M%S`.mp4|[f=flv]rtmp://xx.xx.xx.xx:12345/livewebcam/vp_feszek" -f image2 -y -map "[b]" -update 1 -r 1 -qscale:v 3 current.jpg -f image2 -map "[p]" -bt 20M -qscale:v 3 /tmp/jpg/`date +%Y%m%d-%H%M%S`-video%06d.jpg
Maybe it is a keyframe related issue ? There are keyframes in every second in both source streams.
THX !