
Recherche avancée
Autres articles (38)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (3768)
-
ffmpeg record before and after applying filters
7 mai 2019, par MarkI’m trying to use
ffmpeg
to do the following things :- acquire input streaming [OK]
- save to disk the video as is [TODO]
- apply filter, i.e. drawtext [OK]
- save to disk the overlayed video [OK]
- preview the overlayed video [OK]
Here my current command line :
ffmpeg -rtsp_transport tcp -i -vf "[in]drawtext=textfile='text.txt': reload=1: font=arial: fontcolor=red: fontsize=80: box=1: boxcolor=yellow@0.5: boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2[out]" -vcodec libx264 -f tee -map 0:v "[f=mp4]test.mp4|[f=nut]pipe:" | ffplay pipe:
The only thing I don’t understand how to do is the recording of the video before
drawtext
. I guess I have to create anothertee
:INPUT ---> TEE ---->RECORD
|
|-->FILTERS---> TEE ---->RECORD
|
|-->PLAYSo I tried with this cumbersome command :
ffmpeg -rtsp_transport tcp -i -vcodec libx264 -f tee -map 0:v "[f=mp4]before.mp4|[f=nut]pipe:" | ffmpeg -f mp4 -i pipe: -vf "[in]drawtext=textfile='text.txt': reload=1: font=arial: fontcolor=red: fontsize=80: box=1: boxcolor=yellow@0.5: boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2[out]" -vcodec libx264 -f tee -map 0:v "[f=mp4]after.mp4|[f=nut]pipe:" | ffplay pipe:
It doesn’t throw errors, records "before.mp4" but neither "after.mp4" nor the preview are working. Surely I forgot something in the syntax.
-
Today we celebrate Data Privacy Day 2019
28 janvier 2019, par Jake Thornton — Privacy -
Insert text on sequence of image and create video using imagemagick or graphicsmagick with node.js
12 décembre 2015, par Keyur SakariaI am trying to create a sequence of image with dynamic text using imagemagick and then convert into video using ffmpeg. The issue I am facing right now :
- I was able to put text on image but now I want to move that text and sync with the character on image. Below is the link of what I have achieved
http://tinypic.com/player.php?v=2ciic8g%3E&s=9#.VmrAZUp97Dc
The bright white "text goes here" text should sync with the character behind
Below is the code which I have written
gm("original_images/moving/" + text + ".png")
.fill("#FCF7FB")
.fontSize(40)
.drawText(x, moveY, "text goes here", "center")
.font("font/BTTTRIAL_1.ttf")
.write("newImages/demo" + i + ".png", function(err)
{
count++;
console.log("success : " + err);
console.log("i : " + i);
console.log("moving : " + moveX);
if(count == 72)
{
console.log(count);
var date = moment().format('MMMMDDYYYYhmmssa');
var cmd = 'ffmpeg -r 17 -i newImages/demo%d.png -c:v libx264 -r 24 -pix_fmt yuv420p output/' + date + '.mp4';
exec(cmd, function(error, stdout, stderr)
{
console.log(error)
console.log(stdout)
console.log(stderr)
});
}
});I am trying to calculate x and y according to image and im getting the values in decimal, which graphicsmagick is not considering and rounding it thus text is not syncing with image and goes up and down
If you have any other suggestions or ways to achieve what im trying to do please let me know.
Thanks in advance.