Recherche avancée

Médias (91)

Autres articles (54)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (11489)

  • Creating a slurm job for ffmpeg

    20 juin 2023, par user21008368

    I am new to building arrays in slurm, and am running into problems with my ffmpeg array.

    


    I have an ffmpeg script that will convert all .mp4 files in a directory into folders of image stacks. Right now, I have to change to the source directory in the terminal (i.e., cd), and then run the following code :

    


    for i in *.mp4; do mkdir -p "${i%.*}" && ffmpeg -i "$i" -vf fps=30 ${i%.*}/${i%.*}%05d.jpeg -hide_banner; done


    


    I have 100+ folders of videos that I would like to run this code on. Rather than using "cd (directory name)" and then the above code, I would like to create a job array that will iterate through all of the folders of videos. I've been playing with the following array script :

    


        #!/bin/bash
#SBATCH --job-name=sortvids_test
#SBATCH --partition=cas
#SBATCH --output=%x_%A_%a.out   # Output file (stdout)
#SBATCH --error=%x_%A_%a.err    # Error file (stderr)
#SBATCH --mail-type=ALL
#SBATCH --mail-user=my.email@email.org
#SBATCH --array=0-8:1

#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --mem=10G
#SBATCH --time=1-00:00:00

module load ffmpeg

# Change the following path if you want to process any other folder #Place_7.11 is the directory that contains all the folders of videos
scratch_dir="/scratch/user/my.name/Place_7_11_20230616_133418/Place_7.11"

folders_list=($(ls $scratch_dir))
folder=$scratch_dir/"${folders_list[$SLURM_ARRAY_TASK_ID]}"

echo "Processing folder: $folder"

cmd="cd $folder && for i in *.mp4; do mkdir -p "${i%.*}" && ffmpeg -i "$i" -vf fps=30 ${i%.*}/${i%.*}%05d.jpeg -hide_banner; done"

eval "$cmd"


    


    When I check the output files, I will see the "Processing folder : $folder" command has the correct output. However, when I check the .err files, I see mkdir: missing operand repeated for as many videos exist in the folder. I believe the issue is that I'm not correctly specifying the input, or changing directories, but I have not idea how to fix this. Any and all suggestions are welcome.

    


  • Revision 41905 : Simplification de la notification (comme on nécessite facteur), plus ...

    25 octobre 2010, par kent1@… — Log

    Simplification de la notification (comme on nécessite facteur), plus besoin de la fonction d’attachement de fichier à un mail... on peut dorénavant surcharger la fonction de notification sans problème

  • Revision 41905 : Simplification de la notification (comme on nécessite facteur), plus ...

    25 octobre 2010, par kent1@… — Log

    Simplification de la notification (comme on nécessite facteur), plus besoin de la fonction d’attachement de fichier à un mail... on peut dorénavant surcharger la fonction de notification sans problème