
Recherche avancée
Autres articles (96)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)
Sur d’autres sites (9925)
-
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 !
-
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


-
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 !