Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (70)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

Sur d’autres sites (11201)

  • encoding by using ffmpeg library

    22 août 2013, par Mustafe

    I am currently developing an application by using ffmpeg library. I have a problem with encoding pcm/raw datas. In ffmpeg/encoding_decoding.c source code, at line 146 in this function :

    buffer_size = av_samples_get_buffer_size(NULL, c->channels, c->frame_size, c->sample_fmt, 0);

    buffer_size is being calculated. My function always returns -22 which states an error. After a little examanation I noticed that in line 1888 at avcodec.h it is stated as following which shows the reason. Since CODEC_CAP_VARIABLE_FRAME_SIZE is set my function returns -22 and my program terminates. In this case the encoding code example in ffmpeg's website also could not work. How can I solve this problem ?

    encoding: set by libavcodec in avcodec_open2(). Each submitted frame except the last must contain exactly frame_size samples per channel. May be 0 when the codec has CODEC_CAP_VARIABLE_FRAME_SIZE set, then the frame size is not restricted. decoding: may be set by some decoders to indicate constant frame size
  • bytestream : Make get_bytes_left compatible with overread

    14 décembre 2019, par Andreas Rheinhardt
    bytestream : Make get_bytes_left compatible with overread
    

    bytestream2_get_bytes_left returns an unsigned int ; as a result,
    it returns big positive numbers if an overread already happened,
    making it unsuitable for scenarios where one wants to allow this
    in a controlled way (because the buffer is actually padded so that
    no segfaults can happen). So change it to return an ordinary int.

    Also, bytestream2_get_bytes_left_p has been modified in the same way.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/bytestream.h
  • ffmpeg + play video loop

    3 septembre 2013, par Javier Ramírez

    Does anyone know how to make a video using ffmpeg + Opengl play continuously ?. Because this is only played once

    tiempo = glfwGetTime();
    duracion = 1.0/25.0; // 1 second / 25 fps

    while(1){

    ...        

     if(glfwGetTime() > tiempo + duracion){
       if(av_read_frame(pFormatCtx,&amp;packet) >= 0){
         if(packet.stream_index == 0){
           avcodec_decode_video2(pCodecCtx,pFrame,&amp;frameFin,&amp;packet);
           if(frameFin)sws_scale(img_convert_ctx,pFrame->data,pFrame->linesize,0,pCodecCtx->height,pFrameRGB->data,pFrameRGB->linesize);
         }
         av_free_packet(&amp;packet);
       }
       tiempo += duracion;
     }

    ...

    }

    I know av_read_frame function (...) returns 0 if the end of file. But how do I make the function again returns a value other than zero ? o How I can I make the video is constantly repeated ?