Recherche avancée

Médias (91)

Autres articles (61)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (8514)

  • thread : use "" instead of for including the w32pthreads wrapper

    1er décembre 2014, par Anton Khirnov
    thread : use "" instead of <> for including the w32pthreads wrapper
    

    Found-by : Dave Yeo <dave.r.yeo@gmail.com>

    • [DH] libavutil/thread.h
  • thread : use "" instead of for including the w32pthreads wrapper

    1er décembre 2014, par Anton Khirnov
    thread : use "" instead of <> for including the w32pthreads wrapper
    

    Found-by : Dave Yeo <dave.r.yeo@gmail.com>

    • [DBH] libavutil/thread.h
  • Piping to ffmpeg fails - "pipe: : Not enough space"

    23 avril 2015, par Classiest Medic

    I’m attempting to write a script that can download a file from a webserver to memory, pipe it directly to the ffprobe module of ffmpeg, and return the file’s details as determined by ffprobe. This is what I currently have :

    import requests
    from io import BytesIO
    from subprocess import Popen, PIPE

    def get_file(url):
       r = requests.get(url)
       file = BytesIO(r.content).seek(0)
       return file

    def get_info(file):
       p = Popen(["ffprobe", "-i", "-"], stdin=file, stdout=PIPE, stderr=PIPE)
       output = p.communicate()[1].decode("utf8")
       return output

    Here is a comparison between outputs for a file loaded with open() :

    ffprobe version N-66931-gbbd8c85 Copyright (c) 2007-2014 the FFmpeg developers
     built on Oct 17 2014 01:05:12 with gcc 4.9.1 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
     libavutil      54. 10.100 / 54. 10.100
     libavcodec     56.  8.100 / 56.  8.100
     libavformat    56.  9.100 / 56.  9.100
     libavdevice    56.  1.100 / 56.  1.100
     libavfilter     5.  1.106 /  5.  1.106
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mp3, from 'pipe:':
     Metadata:
       title           : Test File
     Duration: N/A, start: 0.000000, bitrate: 320 kb/s
       Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
       Metadata:
         title           : Test File

    ... and a file downloaded with get_file() :

    ffprobe version N-66931-gbbd8c85 Copyright (c) 2007-2014 the FFmpeg developers
     built on Oct 17 2014 01:05:12 with gcc 4.9.1 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
     libavutil      54. 10.100 / 54. 10.100
     libavcodec     56.  8.100 / 56.  8.100
     libavformat    56.  9.100 / 56.  9.100
     libavdevice    56.  1.100 / 56.  1.100
     libavfilter     5.  1.106 /  5.  1.106
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    pipe:: Not enough space

    At first, this appears like an issue with insufficient memory, but the files I’m working with are small (<10MB), so I don’t think that’s the issue. Apparently, though, I’m doing something wrong... could anyone give me any suggestions as to why piping would fail in this instance ?