Recherche avancée

Médias (1)

Mot : - Tags -/punk

Autres articles (109)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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, par

    Pré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 ) (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (12999)

  • Mathematical formula to always center text along X and Y axis ffmpeg python ?

    18 février 2023, par Sixtus Anyanwu

    I am trying to center a text horizontally and vertically with ffmpeg python but I can't seem to get it right. The mid point shifts depending on the amount of characters in the text.

    


    How do I always center the text to the centre of the screen no matter the length of the text ?

    


    Here is my code.

    


    
v_width = 1080

v_height = 1633

def create_video():

    overlay1 = ffmpeg.input("sukuna.gif").filter("scale", 1080, -1, height = 1633 / 2)

    overlay2 = ffmpeg.input("akaza_long.mp4").filter("scale", 1080, -1, height = 1633 / 2 )

    (

    ffmpeg.input('letsgo.mp4')

    .overlay(overlay1)

    .overlay(overlay2, x = 0, y = v_height / 2)

    .drawtext(textfile = "char_names.txt", fontfile = "/storage/emulated/0/PyFiles/Helvetica-Bold.ttf", fontcolor = "yellow", bordercolor = "black", escape_text = True, start_number = 0, fontsize = "80", x = (v_width / 2) - 40, y = (v_height / 2) - 40, borderw = 4, line_spacing = 3)

    .output("newVideo.mp4")

    .run()

    )


    


    The - 40 is for adding some extra padding to the text.

    


    How do I go about this ?

    


    I want the below position always no matter how big or amount of characters in the text.
Centred text

    


    Already tried adding a couple of offset to the text but once the text gets longer, it loses its alignment.

    


  • movtextdec : Add support for automatic text wrapping

    14 août 2015, par Niklesh
    movtextdec : Add support for automatic text wrapping
    

    The value of wrap_flag in the Text Wrap Box specifies if the text is to
    be wrapped or not. Uses ’end of line wrap’ amongst the wrap styles
    supported by ASS if the text is to be wrapped, i.e ; fill as much text
    in a line as possible, then break to next line.

    The 3GPP spec has no provision for smart wrapping.

    Signed-off-by : Niklesh <niklesh.lalwani@iitb.ac.in>

    • [DH] libavcodec/movtextdec.c
  • How to Fix Problem Drawer Text and Join with FFmpeg

    13 août 2019, par Marcos QP

    I have two short videos with good state (input1.mp4, input2.mp4).
    I use ffmpeg to edit videos.

    Part 1
    I combine two videos, it works correctly

    Part 2
    I draw text on input1.mp4, result output1.mp4, it works correctly.
    I join two videos (output1.mp4, input2.mp4), its join success. But result video is corrupt.

    ------------------------------------------------------------------

    I use these comands ffmpeg

    Combine Videos
    ffmpeg -y -f concat -safe 0 -i list.txt -c copy merged.mp4

    Draw Text on Video
    ffmpeg -y -i input1.mp4 -vf "drawtext=fontfile=/Windows/fonts/arialbd.ttf : text=’Some Text’ : fontcolor=white : fontsize=50 : box=1 : boxcolor=black@0.5 : boxborderw=5 : x=(w-text_w)/2 : y=(h-text_h/2)" -codec:a copy output1.mp4

    ------------------------------------------------------------------

    Please i need your help to drawer text and join.
    Sorry my bad english. I am still learning.
    Thanks.