Recherche avancée

Médias (0)

Mot : - Tags -/performance

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (10067)

  • avcodec/ffv1_parser : Rename close to ffv1_close

    19 février, par Zhao Zhili
    avcodec/ffv1_parser : Rename close to ffv1_close
    

    This fixed wasm checkasm failure

    $ wasm-tools validate tests/checkasm/checkasm
    error : wasisdk ://v25.0/build/sysroot/wasi-libc-wasm32-wasip1-threads/libc-top-half/musl/src/stdio/__stdio_close.c:24:9 function `__stdio_close` failed to validate

    Caused by :
    0 : func 4581 failed to validate
    1 : type mismatch : expected i32 but nothing on stack (at offset 0x43b770)

    Since close is declared as static function, it's more like a bug
    in wasi sdk, but we can workaround it easily.

    Signed-off-by : Zhao Zhili <zhilizhao@tencent.com>
    Reviewed-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/ffv1_parser.c
  • How can I stream raw video frames AND audio to FFMPEG with Python 2.7 ?

    18 novembre 2017, par Just Askin

    I am streaming raw video frames from Pygame to FFMPEG, then sending to a rtmp stream, but for the life of me, I can’t figure out how to send live audio using the same Python module. It does not need to be the Pygame mixer, but I am not opposed to using it if that is where the best answer lies. I’m pretty sure it’s not though.

    My question is this : What is the best strategy to send live audio output from a program to FFMPEG along with raw video frames simultaneously from the same Python module ?

    My program is large, and eventually I would like to build options to switch audio inputs from a queue of music, a microphone, or any other random sounds from any program I want to use. But for the time being, I just want something to work. I am starting off with a simple Espeak command.

    Here is my Python commands :

    command = ['ffmpeg', '-re', '-framerate', '22', '-s', '1280x720', '-pix_fmt', 'rgba', '-f', 'rawvideo', '-i', '-', '-f', 's16le', '-ar', '22500', '-i', '/tmp/audio', '-preset', ultrafast', '-pix_fmt', 'rgba', '-b:v', '2500', '-s', 'hd720', '-r', '25', '-g', '50', '-crf', '20', '-f', 'flv', 'rtmp://xxx' ]

    pipe = sp.Popen(command, stdin=sp.PIPE)

    Then I send my frames to stdin from within my main while True: loop.

    The problem I run into with this strategy is I can’t figure out how to shove audio into FFMPEG from within Python without blocking the pipe. After hours of research, I am pretty confident I can’t use the pipe to send the audio along with the frames. I thought the named pipe was my solution (which works running Espeak outside of Python), but it blocks Python until the Espeak is done... so no good.

    I assume I need threading for multiprocessing, but I cannot figure out from the official documentation or any other resources as to how I can solve my problem with it.

    The ['-f', 's16le', '-ar', '22500', '-i', '/tmp/audio'] are settings that work if I run espeak from a separate terminal with espeak 'some text' --stdout > /tmp/audio.

    I am using Centos 7, Python 2.7, pygame, the latest build of FFMPEG,

  • How exactly does this Jaccard distance logic (get_jaccarddist) in FFmpeg work ?

    23 mars 2024, par stilloo

    I see this C code in FFmpeg source signature_lookup file for Jaccard distance in method get_jaccarddist.

    &#xA;

    If you see in the code below that is calculating for 5 BagOfWords.

    &#xA;

    Now for two BagOfWords with say nothing in common intersection would be 0, that means jaccarddist would be 0, so ideally its a bad pair but this if condition jaccarddist >= sc->thworddist, would be false isn't it but we want it to be true as its bad pair ?

    &#xA;

    What are the default values of sc->thworddist ?

    &#xA;

    Also surprised why jaccarddist is int and not float/double ?

    &#xA;

    /**&#xA; * calculates the jaccard distance and evaluates a pair of coarse signatures as good&#xA; * @return 0 if pair is bad, 1 otherwise&#xA; */&#xA;static int get_jaccarddist(SignatureContext *sc, CoarseSignature *first, CoarseSignature *second)&#xA;{&#xA;    int jaccarddist, i, composdist = 0, cwthcount = 0;&#xA;    for (i = 0; i &lt; 5; i&#x2B;&#x2B;) {&#xA;        if ((jaccarddist = intersection_word(first->data[i], second->data[i])) > 0) {&#xA;            jaccarddist /= union_word(first->data[i], second->data[i]);&#xA;        }&#xA;        if (jaccarddist >= sc->thworddist) {&#xA;            if (&#x2B;&#x2B;cwthcount > 2) {&#xA;                /* more than half (5/2) of distances are too wide */&#xA;                return 0;&#xA;            }&#xA;        }&#xA;        composdist &#x2B;= jaccarddist;&#xA;        if (composdist > sc->thcomposdist) {&#xA;            return 0;&#xA;        }&#xA;    }&#xA;    return 1;&#xA;}&#xA;

    &#xA;