Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (62)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (11839)

  • Set content-length when converting video stream to audio (w/ FFMPEG & Node.js)

    15 septembre 2014, par Taconut

    So I’m building a program that requires that I take a video and convert it to audio. I’m currently streaming the audio directly to the browser via node.js, but I’ve run into a major problem : I don’t know how to find out how many bytes my audio is. As a result, the browser keeps throwing net::ERR_CONTENT_LENGTH_MISMATCH when I don’t get the right content-length. I’ve tried several strategies, all of which have failed :

    • Computing the size manually (Seconds * bitrate(kbps) * (1024 / 8)).
      This produces an approximate answer, since I only know the length down to the nearest couple of seconds. Even though I’m relatively close, I still end up getting the same MISMATCH error.

    • Piping the Stream to a buffer, getting the buffer’s length, and piping the buffer to the browser
      This works, but it can take 15-20 seconds to load each song. It’s incredibly slow and puts a considerably larger load on the server

  • PHP add whitespaces in string with an URL

    25 juin 2021, par Alberto Valerio

    Problem

    


    I have a temporary url to access an object from AWS-S3

    


    $source = "http://mybucket...";


    


    If I do a var_dump($source) it shows me the correct URL

    


    string(407) "https://mybucket.s3.amazonaws.com/storage/..."


    


    So I try to use this url in a ffmpeg command in this way (double quotes are required in ffmpeg)

    


    $cmd = 'ffmpeg -i "' . $source . '" ...
shell_exec($cmd);


    


    This do not work, and when I do a var_dump($cmd) the url shows like this (whitespace beetween https: and the // )

    


     "https: //mybucket.s3.amazonaws.com/storage/..."


    


    It works fine when I specify the url with the S3 protocol

    


    "s3://mybucket...."


    


    So maybe the problem is with the https protocol

    


    What I tried(It didn't work)

    


      

    • I tried $url = str_replace(' ', '', $source);
    • 


    • I tried $url = str_replace('%20', '', $source);
    • 


    • I tried $url = str_replace('https: //', 'https://', $source);
    • 


    • I tried $url = preg_replace("/\s+/", "", $source);
    • 


    • I tried addslashes($source) instead '"' . $source . '"'
    • 


    • I tried $url = escapeshellarg($source);
    • 


    


    What I'm using

    


      

    • Php 7
    • 


    • Laravel 4
    • 


    • AWS-S3
    • 


    


  • minimal ffmpeg build without filters

    1er août 2020, par Andrew

    I'm trying to build a minimal version of ffmpeg that is as small as possible, with only support to decode AAC audio in an MP4 container, and write it out to PCM or WAV.

    


    For some reason though, I can't find a way to build ffmpeg without it including all of these filters :

    


    Enabled filters:
aformat                 atrim                   hflip                   transpose               vflip
anull                   format                  null                    trim


    


    Is there any way to disable these ?

    


    I'm using this configure command :

    


    ./configure \
        --disable-fast-unaligned \
        --disable-pthreads \
        --disable-w32threads \
        --disable-os2threads \
        --disable-debug \
        --disable-stripping \
        --disable-safe-bitstream-reader \
        --disable-all \
        --enable-ffmpeg \
        --enable-avcodec \
        --enable-avformat \
        --enable-avfilter \
        --disable-filters \
        --enable-protocol=pipe \
        --disable-swresample \
        --disable-swscale \
        --disable-network \
        --disable-d3d11va \
        --disable-dxva2 \
        --disable-vaapi \
        --disable-vdpau \
        --enable-protocol=file \
        --disable-bzlib \
        --disable-iconv \
        --disable-libxcb \
        --disable-lzma \
        --disable-sdl2 \
        --disable-securetransport \
        --disable-xlib \
        --disable-zlib \
        --enable-encoder=pcm_s16le \
        --enable-muxer=pcm_s16le,wav \
        --enable-demuxer=mov \
        --enable-libfdk-aac \
        --enable-nonfree \
        --enable-decoder=libfdk_aac