• Slidy
  • Toolbending::2015-2016::gif

    De Ustensile
    Aller à : navigation, rechercher

    Ligne de commande

    Quelques gifs animés

    Gif animé collectif

    Partons d'un film

    Générer un gif animé à partir d'une séquence vidéo avec VLC en ligne de commande.

    Créer un dossier "img" à l'endroit de la vidéo.

    Dans le terminal, taper:

      vlc fichier_du_film.ogv --rate=1 --scene-ratio=2 --video-filter=scene --start-time=120 --stop-time=122 --scene-format=png --scene-prefix= --scene-path=img vlc://quit
    

    La Nuit des morts-vivants

    Copyright status

    Night of the Living Dead entered the public domain because the original theatrical distributor, the Walter Reade Organization, neglected to place a copyright indication on the prints. In 1968, United States copyright law required a proper notice for a work to maintain a copyright. Image Ten displayed such a notice on the title frames of the film beneath the original title, Night of the Flesh Eaters. The distributor removed the statement when it changed the title.

    Because of the apparent public domain status, the film is sold on home video by many distributors. As of 2012, Amazon.com lists copies of Night of the Living Dead numbering 52 on VHS, 181 on DVD, and nine on Blu-ray. The original film is available to view or download free on Internet sites, such as Internet Archive, Hulu, and YouTube. As of February 11, 2015, it is the Internet Archive's most-downloaded film, with over two million downloads. It is also one of the first movies known to be distributed on the Internet.

    From Wikipedia: https://en.wikipedia.org/wiki/Night_of_the_Living_Dead#Copyright_status

    Image Magick

    Documentation:

    Chacun fait un traitement sur une ou plusieurs images.

        convert image.png [options] image.png
    

    Puis on recombine le tout pour faire un gif animé:

       convert *.png animation.gif
    

    Boucles

    Pour aller plus loi, on peut faire une boucle sur tous les fichiers. Ici, on prend le numéro dans le nom du fichier pour changer la couleur de l'image:

       for FILE in *; do NUMERO=$(basename $FILE .png | tr -d "0"); convert $FILE +level-colors 'rgb(125, '+$NUMERO+', 125)','rgb('+ $NUMERO+',125, 125)' $FILE; done