
Recherche avancée
Médias (17)
-
Matmos - Action at a Distance
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Danger Mouse & Jemini - What U Sittin’ On ? (starring Cee Lo and Tha Alkaholiks)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Cornelius - Wataridori 2
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (105)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (6635)
-
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 !