Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (76)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

Sur d’autres sites (7414)

  • Localization : Add Hindi translation (#2453)

    11 novembre 2022, par saurabhsharma2u
     Localization : Add Hindi translation (#2453)
    

    * Localisation : Update Hindi (India) translation

    * Hindi Translation for Step Method

    * HIndi-India Local messages for additional method

    * file rename as per ISO 639-1 format

    * removed duplicate message, causing the test fail

    * removed duplicate "cifES" error message

  • Correct hindi text drawing when using ffmpeg

    28 février 2024, par OhhhThatVarun

    I have a ffmpeg script to add some Hindi text to the mp4 video file.

    


    The ffmpeg command looks like this

    


    ffmpeg -i template_video.mp4 -filter_complex "drawtext=text='नमस्कार जी मैं हूँ':fontfile=mukta.ttf:fontsize=40:box=1:boxcolor=black@0.5:boxborderw=5:x=530:y=530:enable='between(t,20,22)'[output]; [output] drawtext=text='आज हम स्कैन करेंगे':fontfile=mukta.ttf:fontsize=20:box=1:boxcolor=black@0.5:boxborderw=5:x=100:y=100:enable='between(t,15,20)'[outv]" -map "[outv]" -map 0:a? -c:a copy -pix_fmt yuv420p -s 1080x1920 output_video.mp4 -y


    


    Expected :

    


    enter image description here

    


    Actual :

    


    Image of hindi text rendered on video using ffmpeg

    


    Image of hindi text rendered on video using ffmpeg

    


    As you can see the Hindi half letters are not getting rendered.

    


    I have gone through and tried these links :

    


    This question and This question

    


    I also tried this Github link

    


    Am I missing something to make it render properly ?

    


  • FFmpeg drawtext support for Hindi fonts

    28 février 2024, par Vinoth Poovalingam

    We are trying to use FFmpeg drawtext to support Hindi fonts. But the ordering of the data is not correct.

    


    The unicode for Hindi text is passed like this

    


    1. पिता माता िस्रफ


    


    But output renders as

    


    enter image description here

    


    Have used the following code for generating the output

    


    ffmpeg  -framerate 30 -t 10 -i /opt/test.png drawtext=text_shaping=1:fontcolor=white:fontsize=60:fontfile=/usr/share/xx.ttf:text='1. पिता माता िस्रफ':y='max(550,700-t*200)':x=40,format=yuv420p[v] /usr/share/nginx/html/hello_v.mp4


    


    Had done harfbuzz support and --libfribidi is also enabled.

    


    The problem is the text gets drawn from left to right. Also found there is a use_kerning flag in drawtext, will that help, if yes how to use it.