
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (26)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (5036)
-
Creating a transparent video out of an input video
28 juillet 2021, par poldownI'm trying to create a video with a transparent background out of an input video (with the same dimensions, etc.). I tried several strategies (using the
chromakey
filter and others) and none worked... I got this far :

ffmpeg -i input.mp4 -filter_complex "color=color=black@0.0,format=yuva420p[bg],[bg][0:v]scale2ref[bg][0v],[bg]drawbox=x=10:y=10:w=100:h=100:color=pink@0.5;[0v]nullsink" -c:v qtrle -an "alpha.mov"



- 

- creating a video stream with transparency, and setting a transparent background (black@0.0)
- scaling the transparent video according to the input video
- [for testing purposes : drawing a box over the transparent video. I omitted the part in which I embed subtitles onto the video, for simplicity's sake]
- discarding the input video stream
- removing the audio stream












It basically works, but the processing never ends - I can't manage to limit the output video length so it'll match the input video's length...
I've tried using the
-shortest
option anywhere in the command - with no success.

-
how to pass user input variable to ffmpeg in windows batch file
7 décembre 2018, par lalaReffering to Answer here (Closest Search) i have in a batch file code(below). I tried every possible way to pass line1 value to text and it simply didn’t worked. clearly hardcoding text in ffmpeg line works. Any Ideas or Guideline.
set /p dtp="DRAG A File:"
set /p line1 = "Enter Top Text:"
set /p line2 = "Enter Bottom Text:"
ffmpeg -i %dtp% -filter_complex "[0:v]pad=iw:ih+100:0:(oh-ih)/2:color=white, drawtext=text='%%line1%%':fontfile=Mosk Bold 700.ttf:fontsize=24:fontcolor=black:x=(w-tw)/2:y=(50-th)/2, drawtext=text=`%line2%`:fontfile=Mosk Bold 700.ttf:fontsize=24:fontcolor=black:x=(w-tw)/2:y=h-25-(th/2)" %dtp%_tweaked.mp4 -
sh file imagemagick modification
16 avril 2013, par LoveI have an .sh script that generate thumbnail sprites' images from video. The below codes in the script will output the image similar this : http://s1-www.ltvimg.com/cdn/farfuture/7NO-FuBvaWJK_v34cJrAmHi6L3ywPn1YtImQNzXgTic/mtime:1362848979/sites/default/files/tooltipthumbs-sprite.jpg
For now, the dimension of each thumbnail is 108x60, maximum 25 thumbnails(5x5) per image and per image dimension is 540x300. The thumbnail is capture every second of the video, which mean if i have a 75 seconds of video, it will output 75 thumbnails with 3 images.
What i need now, i want the script generate only 1 image per video. Which mean 75 thumbnails all in 1 image. What i need to change on the below codes to make this works ?
mogrify -verbose -resize 108x60 -gravity center -quality 100 -background black
-extent 108x60 MONTAGE*.png
numimages=`ls -1 *.png | wc -l | cut -d " " -f1`
montage -verbose MONTAGE*.png -geometry +0+0 -tile 5x5 -quality 100 -background
black "$basename"-%04d.jpg
mogrify -verbose -resize 540x300 -gravity north -extent 540x300 -quality 100
-background black "$basename"-*.jpg