Recherche avancée

Médias (91)

Autres articles (102)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

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

  • Python Print Continuous output of Popen when reset character is used

    23 août 2022, par cclloyd

    I have a snippet of code that runs a video conversion using ffmpeg.

    


    I read the output to analyze it later in the application, and also want to print it to console, for user feedback.

    


    So I have

    


    p = Popen(cmd, stderr=STDOUT, stdout=PIPE)
while True:
    line = p.stdout.readline()
    if not line: 
        break
    print(line.decode('utf-8'), end='')

p.wait()
if p.returncode == 0:
    pass



    


    Which works, somewhat. It prints the initial output of the ffmpeg command, as those are simple print statements.

    


    But once the conversion starts, all the output is updated on one line, presumably using some reset character to move the cursor position back to the start of the line.

    


    Is there a way to continue to print that output ?

    


  • avcodec_encode_video2 return -542398533 Generic error in an external library only with h264 encoder

    20 janvier 2017, par P Akhtar
    pAvframe = GetVideoFrame();

    av_init_packet(&pkt);
    /* encode the image */
    ret = avcodec_encode_video2(pAvCodecCtx, &pkt, pAvframe, &got_packet); //return Generic error in external library
    if (ret < 0)
    {
       char errbuf[128];
       const char *errbuf_ptr = errbuf;

       if (av_strerror(ret, errbuf, sizeof(errbuf)) < 0)
           errbuf_ptr = strerror(AVUNERROR(ret));
       av_log(NULL, AV_LOG_ERROR, "%s\n", errbuf_ptr);

       _stprintf_s(szErr,MAX_PATH, _T("Error encoding video frame:: "));
       LOG_ENTRY_ERROR(E_FAIL,szErr);
    }



    if(ret >= 0)
    {
       ret = WriteFrameToFile(&pAvCodecCtx->time_base, m_stVideoStream.pAVStream, &pkt);
       if(ret < 0)
       {
           av_packet_unref(&pkt);

       }
    }

    It always return - -542398533 "Generic error in an external library" only with h.264 encoder please provide solution if gop is zero it work some time.

  • How can I use ffmpeg library with react on client side ? Any guide ? [closed]

    6 janvier 2023, par Mehdi Saqlen

    I have heard about web assembly. Web assembly allows us to use C++ libraries on browsers, so how can I use the FFmpeg library on the client-side with react.js ? If you know how to implement this please share with me what you know about this.

    


    Please share with me how can I learn FFmpeg completely with web assembly ?