Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (96)

  • Les sons

    15 mai 2013, par
  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • MediaSPIP en mode privé (Intranet)

    17 septembre 2013, par

    À partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
    Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
    Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...)

Sur d’autres sites (11682)

  • Handling multiple line subtitles of Right aligned languages(arabic) in Moviepy

    24 décembre 2023, par Stanger Danger

    I am trying to add Arabic subtitles on a video using Moviepy. The issue I'm facing is related to alignment of Arabic text, as it progresses from right to left, instead of left to right in English language.

    


    enter image description here

    


    As text length gets more and more, Moviepy trims the words from both ends, this issue can be resolved if we break the text into multiple lines. This works well for English language but for Arabic, the first line becomes the last line because of the (Right-Left)alignment.

    


    enter image description here

    


    The text on Second line should come first on the first line at the start, while end chuck of first text towards the left corner should render on the second line, but it is getting rendered as English language, Left to right alignment.

    


    Here is my code :

    


    def add_subtitles(address_subtitles, address_video):
  video = VideoFileClip(address_video)
  generator = lambda txt: TextClip(txt, font='Arial', fontsize=22, color='black', stroke_width=2, method='caption', align='south', size=video.size)
  subtitles = SubtitlesClip(address_subtitles, generator)
  #print()

  result = CompositeVideoClip([video, subtitles.set_pos(('center','bottom'))])
  result.write_videofile("arabic_with_hardcoded_subtitles_3.mp4", fps=video.fps, temp_audiofile="temp-audio.m4a", remove_temp=True, codec="libx264"
  , audio_codec="aac")


    


  • Anomalie #2661 (Fermé) : fusion ?

    16 avril 2012, par Ben .

    contexte : la page archives est presque vide : http://www.spip-blog.net/spip.php?page=archive sur le blog de b_b en spip2 / mysql la boucle MONTH> retourne SELECT articles.date, MONTH(date) FROM spip_articles AS `articles` WHERE (articles.statut = ’publie’) AND (articles.date en spip3 sur (...)

  • ffmpeg : Variable based overlay

    25 juin 2018, par Hoofamon

    I am building a video from a collection of images, currently I am just using the ffmpeg command line tool for this :

    ffmpeg -framerate 60 -pattern_type glob -i "${photoDir}/archives/*.jpg" -c:v libx264 -pix_fmt yuv420p $movieDir/vidout.mp4

    I would like to overlay a string value on the video that would change for each input file image, it would be the name of that file with some slight changes. Is this something that is possible with the commandline utility and a script, or would I need to write a program using the ffmpeg lib ?

    Thank you