Recherche avancée

Médias (91)

Autres articles (108)

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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (11505)

  • Anomalie #3079 (Nouveau) : articles syndiqués toujours présents en partie publique même sans syndi...

    28 octobre 2013, par Johan .

    Je créé un site syndiqué n°N. Je le publie :

    • spip.php ?siteN affiche bien la liste des articles syndiqués.

    Je modifie le site en décochant l’option de syndication :

    • ecrire/ ?exec=site&id_syndic=N n’affiche plus les articles syndiqués : ok
    • spip.php ?siteN affiche toujours la liste des articles syndiqués : problème

    Lancé les crons dans la liste des travaux n’a aucun effet.

    Solution rustine : resyndiquer le site, Effacer tous les articles syndiqués, « dé-syndiquer » le site.

    J’ai constaté ceci sur un 3.0.10 (en prod) et vient de le reproduire aussi en SPIP 3.1.0-dev SVN [20894] (sans plugins).

  • Anomalie #3079 (Fermé) : articles syndiqués toujours présents en partie publique même sans syndica...

    1er novembre 2013, par b b
  • Batch process audio files and image files to create movie files by matching multiple wildcard values

    29 septembre 2022, par psychaudio

    I'm attempting to batch-process audio and image files to create video files using a Shell script with FFmpeg.

    


      

    1. The ffmpeg script works in Terminal :
    2. 


    


    ffmpeg -loop 1 -i image.png -i audio.wav -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest output.mp4


    


      

    1. A nested for loop with wildcards works as a batch script :
    2. 


    


    #!/bin/sh
for img in *.png; do
    for wav in *.wav; do
        ffmpeg -loop 1 -i $img -i $wav -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest ../mb/$img.mp4
    done
done


    


    The only problem here is that it creates more combinations than I need. I'd like to be able to match wildcard values and only mix those together. I'd like to be able to prepare the filenames to match in advance to make this easier : For example, only match 1.png with 1.wav to make 1.mp4, 2.png with 2.wav to make 2.mp4 and so on. I'm able to modify the script to match the wildcards in a Regex, but I'm not sure if there is a way to then execute the logic above. Here is what I am attempting :

    


    #!/bin/sh
img=*.png
wav=*.wav

if [[ ${img%.*} == ${wav%.*} ]];
    then
        ffmpeg -loop 1 -i $img -i $wav -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest $img.mp4;
    else
        echo "Failure"
    fi


    


    This begins by overwriting the image files, so it does not appear to work as planned. Is there a simpler way to do this ? Perhaps looping through images 1..5 in one folder and audio files 1..5 in another ?

    


    Thanks for any insights, and happy to provide more context (very new to this, so still learning).