Recherche avancée

Médias (3)

Mot : - Tags -/pdf

Autres articles (83)

  • 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" (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

Sur d’autres sites (4291)

  • Evolution #3091 : Gérer le timeout lors du calcul des filtres images

    10 août 2014, par cedric -

    Le problème ne vient pas du nombre de modèles <doc></doc> ou <img style='max-width: 300px; max-height: 300px' /> proprement dit, mais du nombre d’images réduites qu’il faut générer lors de l’affichage de la page. Ainsi, lors du premier affichage, on doit calculer toutes les images réduites d’un coup, ce qui prend du temps, et on fait timeout. Il suffit en général de ré-afficher la page une fois (ou plusieurs si il y en a vraiment beaucoup) pour que le calcul des images se finisse, et l’article s’affichera très bien ensuite.

    Il n’est pas question de limiter le nombre de documents/images insérées dans un article, car ce serait trop limitatif.
    Idéalement il faudrait être capable de gérer proprement ce timeout, et relancer le hit automatiquement au besoin.

  • ffmpeg nodejs lambda crop issue

    29 juillet 2020, par Ajouve

    I have a lambda function to crop videos with ffmpeg

    &#xA;

    I am installing the layer this way

    &#xA;

    #!/bin/bash&#xA;mkdir -p layer&#xA;cd layer&#xA;rm -rf *&#xA;curl -O https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz&#xA;tar -xf ffmpeg-git-amd64-static.tar.xz&#xA;mv ffmpeg-git-*-amd64-static ffmpeg&#xA;rm ffmpeg-git-amd64-static.tar.xz&#xA;

    &#xA;

    I do not really which version but should be recent as I did it today for the last time

    &#xA;

    Then my node js lambda function is running with the following nodejs module https://github.com/fluent-ffmpeg/node-fluent-ffmpeg

    &#xA;

    return new Promise((resolve, reject) => {&#xA;        ffmpeg(inputFile.name)&#xA;            .videoFilters(`crop=${width}:${height}:${x}:${y}`)&#xA;            .format(&#x27;mp4&#x27;)&#xA;            .on(&#x27;error&#x27;, reject)&#xA;            .on(&#x27;end&#x27;, () => resolve(fs.readFileSync(outputFile.name)))&#xA;            .save(outputFile.name);&#xA;

    &#xA;

    with for example videoFilters(&#x27;crop=500:500:20:20&#x27;)

    &#xA;

    And I have the folowing error

    &#xA;

    ffmpeg exited with code 1: Error reinitializing filters!&#xA;Failed to inject frame into filter network: Invalid argument&#xA;Error while processing the decoded data for stream #0:0&#xA;Conversion failed!&#xA;

    &#xA;

    On my local computer I am running the following command on the exact same image

    &#xA;

    ffmpeg -i in.mp4 -filter:v "crop=500:500:20:20" out.mp4&#xA;

    &#xA;

    my version of ffmpeg is 4.2.2 and this is working great

    &#xA;

    I do not have the issue with all videos, here one video which is causing me the issue https://ajouve-util.s3.amazonaws.com/earth.mp4

    &#xA;

  • Audio to text is slow and words are getting dropped

    8 mars 2019, par Madhur Yadav

    I have a code which takes videos from an input folder, converts it into audio file(.wav) using ffmpeg.
    It then converts the audio file to text by recording 30 seconds audio (dura=30) and converting it to text using google translate api.

    The problem is that the code takes a lot of time to convert video to text and it drops first two words and some words after every 30 seconds.

    import speech_recognition as sr
    import sys
    import shutil
    from googletrans import Translator
    from pathlib import Path
    import os
    import wave
    def audio_to_text(self,video_lst,deploy_path,video_path,audio_path):
       try:
           txt_lst=[]
           for video_file in video_lst:
               file_part=video_file.split('.')
               audio_path_mod = audio_path +'/'+ '.'.join(file_part[:-1])
               dir_path=video_path+'.'.join(file_part[:-1])
               self.createDirectory(audio_path_mod)
               audio_file='.'.join(file_part[:-1])+'.wav'
               command_ffmpeg='set PATH=%PATH%;'+deploy_path.replace('config','script')+'audio_video/ffmpeg/bin/'
               command='ffmpeg -i '+video_path+'/'+video_file+' '+audio_path_mod+'/'+audio_file
               os.system(command_ffmpeg)
               os.system(command)
               r=sr.Recognizer()
               dura=30
               lang='en'
               wav_filename=audio_path_mod+'/'+audio_file

               f = wave.open(wav_filename, 'r')
               frames = f.getnframes()
               rate = f.getframerate()
               audio_duration = frames / float(rate)
               final_text_lst=[]
               counter=0

               with sr.AudioFile(wav_filename) as source:
                   while countercode>

    Any help/suggestion would be valuable. Thanks in advance.