Recherche avancée

Médias (91)

Autres articles (75)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (11897)

  • How to transcode discord opus bytes wav ?

    13 décembre 2022, par Tacokeet

    I am trying to convert discords opus audio bytes to wav bytes. I'm using the discord python library Pycord to receive opus audio. This receives opus aduio from a socket. This audio is 2 channel, 48khz.

    


    I want transcode these bytes into 1 channel 16khz wav. So that I can pass it into Pico voice their porcupine (pvporcupine) wake word detection.

    


    I tried convert the decoced data with audioop but this doesn't work.

    


    converted = audioop.ratecv(data.decoded_data, 2, 2, 48000, 16000, None)
converted = audioop.tomono(converted[0], 2, 1, 0)


    


    Pycord has a feature that it writes the bytes into a wav file. I can use ffmpeg to then transcode it into an 1 channel 16khz wav file. I can then feed this file into pvporcupine. It then detects the desired wake words.

    


    But I want to transcode the decoded bytes and then pass them into pvpvporcupine.

    


    Any help towards an answer would be appreciated.

    


  • How to supply mufti filter_complex values using ffmpeg

    11 octobre 2022, par Mohammed Hamdan

    for single image being merged to video i use the following command to supply values for -filter_complex

    


    String comand = '-y -i $videoPath -i $imagePath -filter_complex "[1:v]scale=300:300[ovrl];[0:v][ovrl]overlay=100:100" $outPutPath';


    


    but what if i want merge more than one image (input) ?

    


    How do we make a certain distinction for each input except $videoPath ?

    


    String comand = '-y -i $videoPath -i $imagePath1 i $imagePath2 i $imagePath3  $outPutPath4';


    


    How could i supply difference scale overlay rotate values for each input which is for $imagePath1 $imagePath2 $imagePath3 $imagePath4

    


    in other word : evry input has it's own filter values ?

    


    to be honest i have no idea what does [1:v] means but After several attempts, I was able to get successful command (my first command in my qwestion) to give values for one entry, and this was successful , but couldn't do it for many inputs

    


  • How to scan a folder recursively in ffmpeg to check for presence of subtitles ?

    22 décembre 2022, par frosty

    I have a folder (with subfolders) of videos on my Raspberry Pi, some containing soft-embedded subtitles and some without.

    


    I want to use ffmpeg to check for the presence of the soft-embedded subtitle, and return a result against each filename so that I can locate.

    


    The videos may be mp4, mkv or avi.

    


    I have been using this command successfully but in a limited way as it only works for .mp4 files and doesn't check recursively. The output is a nice list with either a 0 or 1 at the beginning of the line, where 1 means that there is no subtitle.

    


    for f in *.mp4; do ffmpeg -i "$f" -c copy -map 0:s:0 -frames:s 1 -f null - -v 0 -hide_banner; echo $? "$f" ; done


    


    I have tried all manner of ways like find and -exec, read, xargs, all to no avail. The below is the closest I've got, but it doesn't deal with whitespaces properly so filenames including spaces are split over two lines and the command seems to run only one word at a time, so it fails and shows 1 for everything.

    


    for f in `find /mnt/SSD/ | grep -E '(.mp4|.mkv|.avi)'`; do ffmpeg -i "$f" -c copy -map 0:s:0 -frames:s 1 -f null - -v 0 -hide_banner; echo $? "$f" ; done


    


    Any ideas what I'm doing wrong ?