Recherche avancée

Médias (91)

Autres articles (58)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

Sur d’autres sites (9175)

  • Adding gif image every X second with looping Y times in ffmpeg

    28 juin 2016, par Ahmad Ali Mukashaty

    I want to stream video with gif image (myimage.gif) but I want to display it every X minute (every 10 minutes) and during this time I want to make it loops Y time and then disappear (fade out).

    I want to make this every 10 minutes until video finishes
    how can I do it ?

    this is my command

    ffmpeg -re -i test.mp4 -i logo.png -i myimage.gif -filter_complex
    "[0][1]overlay=0:0[a];[a][2]overlay=0:H-90,scale=1920:1080" -f mpegts
    udp://127.0.0.1:port
  • Applying the same filter many times before output [duplicate]

    19 août 2019, par Fabián

    This question already has an answer here :

    In my video there’s an object that has shades of yellow (more orange-like) and has a solid yellow as background.
    I need to output all frames into a png sequence, using a color key filter to replace the yellow from the background :

    ffmpeg -ss 4 -i original.mp4 -t 2 -filter_complex "[0:v]colorkey=0xfff31b:0.125:0[ckout]" -map "[ckout]" colorkey-%d.png

    This removes all the yellow background. However, it leaves some pints of yellow behind, and some items are yellow-themed, so blending isn’t an option for this scenario.

    In the end I need to get rid of 4 specific yellow-colors from the frames : 0xfff31b, 0xfae56b, 0xfaec46 and 0xeee2a0. My idea is to run the same filter for every color.

    So first I tried this :

    ffmpeg -ss 4 -i original.mp4 -t 2 -filter_complex "[0:v]colorkey=0xfff31b:0.4:0[ckout1];[0:v]colorkey=0xfae56b:0.4:0[ckout2];[0:v]colorkey=0xfaec46:0.4:0[ckout3];[0:v]colorkey=0xeee2a0:0.4:0[ckout4]" -map "[ckout4]" colorkeyrefined-%d.png

    Then this :

    ffmpeg -ss 4 -i original.mp4 -t 2 -filter_complex "[0:v]colorkey=0xfff31b:0.4:0[ckout]" -filter_complex "[0:v]colorkey=0xfae56b:0.4:0[ckout]" -filter_complex "[0:v]colorkey=0xfaec46:0.4:0[ckout]" -filter_complex "[0:v]colorkey=0xeee2a0:0.4:0[ckout]" -map "[ckout]" colorkeyrefined-%d.png

    But both display the same error :

    Filter colorkey has an unconnected output.

    Is there a way to apply the colorkey 4 times (with the mentioned values) in one go ?

  • Assistance required with filter graph construction(fast motion between times)

    6 janvier 2023, par D-MAN

    I am trying to re-create the following video, using ffmpeg.
https://youtu.be/eVQ9ysp0Pj0. "please check 0.19 minute for examples"
I have the following line of code which has most of the elements, except the part where is applies fast motion for 1s at certain outputs([vfr1][vfr2][vfr3])/times. currently it is only setpts=0.5*PTS[vboom] for the entire length of the video.

    


    exe = "-i " + file + " -i " + frame + " -i " + framestart + " -i " + frameEnd + " -i " + audioOverlay + " -filter_complex \"[0:v]pad="+mVideoWidth+":"+mVideoHeight+":576:0[vpad]; [vpad][1]overlay[vframed]; [vframed]split=3[vfr1][vfr2][vfr3]; [vfr1]reverse[vrev]; [vfr2][vrev][vfr3]concat=n=3,setpts=0.5*PTS[vboom]; [vboom][2]overlay=enable='lte(t,2)'[vpreout]; [vpreout][3]overlay=enable='gte(t,"+msec+"*3*0.5-2)' \" -map 4:a -b:v 8000k -shortest -preset ultrafast -crf 23 " + file2.getAbsolutePath();

    


    i have tried the following code snippets in various sections of the filter graph, with no luck !

    


    //[0:v]trim=0:2,setpts=PTS-STARTPTS[v1] ;[0:v]trim=2:5,setpts=2*(PTS-STARTPTS)[v2] ;[0:v]trim=5,setpts=PTS-STARTPTS[v3] ;
//[0:v]trim=0:10,setpts=PTS-STARTPTS[vfr1] ;[0:v]trim=10:30,setpts=PTS-STARTPTS[vfr2] ;[0:v]trim=start=30,setpts=PTS-STARTPTS[vfr3] ;
//[0:v]trim=2:3,setpts=0.75*(PTS-STARTPTS) ; [0:v]trim=4:5,setpts=0.75*(PTS-STARTPTS) ; [0:v]trim=7:8,setpts=0.75*(PTS-STARTPTS) ;
//[0:v]select='between(t,1,4)+between(t,4,6)',setpts=0.87*PTS ;