Recherche avancée

Médias (1)

Mot : - Tags -/illustrator

Autres articles (11)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à 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) (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (4654)

  • 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.

    


  • ASS/SSA subtitles hard coded using ffmpeg are highly antialiased

    1er août 2024, par Adorn

    I am using ASS/SSA format for hard coding captions on the video. These are relevant parts of my .ass file :

    


    Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: s0, Montserrat-Black, 60, &H0015CCFA, &H001C1CB9, &H77000000, &H00000000, 1, 0, 0, 0, 100, 100, , 0, 1, 2, 2 , 2, 0, 0, 0, 1

[Events]
Format: Start, End, Style, Text
Dialogue: 00:0:43.8,00:0:46.55,s0,{\pos(540,1550)\fscx50\fscy50\t(0,100,\fscx100\fscy100)\org(10540,-8450)\t(100,600,\frz0.10)\t(600,1100,\frz-0.10)\t(1100,1600,\frz0.10)\t(1600,2100,\frz-0.10)\t(2100,2600,\frz0.10)\t(2600,3100,\frz-0.10)\t(3100,3600,\frz0.10)\k3463}ME FOR WHATEVER


    


    And to hard code on the video, I use following ffmpeg command :

    


    ffmpeg -i video_filepath -vf ass={ass_filepath} -c:a copy -y out_path


    


    This works as intended, except the captions are highly antialiased.

    


    enter image description here

    


    By the way, no AI Assistant has solved this. Tried ChatGPT / Claude / llama 3.1.

    


  • How to load external or custom fonts in subtitle file

    19 novembre 2020, par Konduri Sai Aditya

    How to load fonts in .ass subtitle file from an external file path/custom path ? Suppose I have a font in a folder, and I need to load that font in subtitle file(.ass) file. how to load it ? Is there any possibility ?
FFmpeg command is

    


    ffmpeg -i sample.mp4 -map 0 -vf "subtitles=test.ass:fontsdir=Dancing_Script.ttf" -c:a copy output.mp4


    


    Above is my .ass file

    


    [Script Info]
; Script generated by Aegisub 3.2.2
; http://www.aegisub.org/
Title: Default Aegisub file
ScriptType: v4.00+
WrapStyle: 0
ScaledBorderAndShadow: yes
YCbCr Matrix: None

[Aegisub Project Garbage]

[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,20,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,2,8,10,10,10,1


[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:00.00,0:00:05.00,Default,,0,0,0,,first{\fnDancing Script\b0}


    


    Problem is video is still loading Arial Font even I load with \fnDancing Script\b0