Recherche avancée

Médias (1)

Mot : - Tags -/embed

Autres articles (73)

  • 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 ;

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

Sur d’autres sites (8740)

  • 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 ?