Recherche avancée

Médias (91)

Autres articles (95)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (7652)

  • Révision 23487 : Fix #3925 : réparer la validation du dateur quand il est validé par la touche entrée

    25 mars 2017, par brunobergot@gmail.com

    Retour sur r22348 qui cassait ce comportement avec l’introduction d’un button avant le submit de validation, merci marcimat pour le patch :)

  • ffplay does not exit in forked child

    6 septembre 2019, par user12030145

    ffplay  -autoexit does not exit in a forked child

    I need to pipe my application (stdout) to ffplay (stdin). I do this by forking ffplay as a child and using -i pipe:0 as argument.

    #include
    #include
    #include <sys></sys>types.h>
    #include <sys></sys>wait.h>

    int main(int argc, const char** argv)
    {
    int tube[2];
    int c;
    FILE* f = fopen(argv[1], "rb");
    pid_t pid;
    if (argc &lt; 2) return -1;
    if (pipe(tube))  {
       perror("Pipe");
       return -1;
     }

    // main process cats a .mlp file to stdout, sent to a child ffplay stdin through a pipe
    char* const arg[] = {"-i", "pipe:0", "-f", "mlp", "-nodisp", "-autoexit", NULL};
    switch (pid = fork())    {
               case -1:
                   fprintf(stderr,"%s\n", "Could not launch ffplay");
                   break;

               case 0:
                   close(tube[1]);
                   dup2(tube[0], STDIN_FILENO);
                   execv("/usr/bin/ffplay", arg);
                   fprintf(stderr, "%s\n", "Runtime failure in ffplay child process");
                   return -2;

               default:
                   close(tube[0]);
                   dup2(tube[1], STDOUT_FILENO);
           }

    // Here the main process code sending the .mlp file to stdout...

    while ((c = fgetc(f)) != EOF) putchar(c);

    waitpid(pid, NULL, 0);
    fclose(f);

    // main never returns
    return 0;
    }

    The issue is that in this context, ffplay -autoexit never exits (GNU-Linux platform). In a main process, ffplay -autoexit always exits at the end of a media file.
    Is there a pure C workaround without using system, popen or scripting ?
    Is this a feature or a bug of ffplay (I cannot tell) ?

  • FFMPEG RTSP Replace Video Stream with Holding Slide - Optimization - CPU Related

    29 septembre 2020, par Majickal
    c:\bin\ffmpeg\bin\ffmpeg.exe -rtsp_transport tcp -i rtsp://10.0.0.xx:8554/live -framerate 30 -loop 1 -i "C:\bin\slides\HoldingSlide.png" -tune zerolatency  -x264opts bitrate=2500:vbv-maxrate=2500:vbv-bufsize=250 -c:v libx264 -g 30 -keyint_min 30 -crf 35 -preset superfast -pix_fmt yuv420p -s 1280x720 -c:a aac -b:v 2500k -b:a 192k -ar 24k -map 0:1 -map 1:0 -f flv $INGEST_URL&#xA;

    &#xA;

    The above ffmpeg code replaces the rtsp video component of the rtsp stream with a holding slide.&#xA;I am seeing high CPU utilization (from the re-streaming server) when running this code and am looking for pointers to optimize it.&#xA;Specifically, when ingesting the AV (rtsp) stream to Azure Media Platform

    &#xA;

    Whilst I am interested in ensuring the holding slide is of an acceptable quality, the core aspect is ensuring the audio quality is not compromised.

    &#xA;

    Any pointers/suggestions with regards to reducing CPU load would be most welcome.

    &#xA;

    example video replacement with holding slide

    &#xA;