Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (50)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (9949)

  • swscale/la : Optimize the functions of the swscale series with lsx.

    25 mai 2023, par Lu Wang
    swscale/la : Optimize the functions of the swscale series with lsx.
    

    ./configure —disable-lasx
    ffmpeg -i /media/1_h264_1080p_30fps_3Mbps.mp4 -f rawvideo -s 640x480
    - pix_fmt bgra -y /dev/null -an
    before : 91fps
    after : 160fps

    Reviewed-by : Shiyou Yin <yinshiyou-hf@loongson.cn>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libswscale/loongarch/Makefile
    • [DH] libswscale/loongarch/input.S
    • [DH] libswscale/loongarch/output.S
    • [DH] libswscale/loongarch/output_lasx.c
    • [DH] libswscale/loongarch/output_lsx.c
    • [DH] libswscale/loongarch/swscale.S
    • [DH] libswscale/loongarch/swscale_init_loongarch.c
    • [DH] libswscale/loongarch/swscale_loongarch.h
    • [DH] libswscale/loongarch/swscale_lsx.c
    • [DH] libswscale/utils.c
  • Not able to decode mp4 file using latest ffmpeg library : av_decode_video2

    8 février 2017, par suvirai

    I am writing a wrapper code around latest ffmpeg library. I am supplying MP4 files from local system. My problem is that I am unable to get any decoded frames when I use av_decode_video2(). The return value comes out to be negative. I have used av_read_frame() which returns 0. I googled about the problem I am facing but no where could I find the correct explanation. Please give me insight here. Pasting the pseudo code here.

       av_init_packet(avpkt);
       picture=av_frame_alloc();
       pFrameRGB=av_frame_alloc();
       codec = avcodec_find_decoder(CODEC_ID_H264);
       c= avcodec_alloc_context3(codec)
       avcodec_open2(decoderLibraryData->c, decoderLibraryData->codec, NULL)
       FormatContext = avformat_alloc_context();
       char *pUrl ="./1.MP4";

       iRet = avformat_open_input(atContext, pUrl, pFmt, NULL);

       if(FormatContext == NULL)
       {
           printf("could not assign any memory !!!!!!!!! \n");
       }

       avformat_find_stream_info(FormatContext, NULL);


       while(av_read_frame(FormatContext,avpkt) >= 0)
       {

         len = avcodec_decode_video2(c, picture, &amp;got_picture,avpkt);

         printf("CODEC MANAGER len %d Frame decompressed %d \n",len,got_picture);

         if (len &lt;= 0)
         {
           return ERROR;
         }
       }
    }



           if(lastHeight != 0 &amp;&amp; lastWidth != 0)
           {
               if(lastWidth != c->width || lastHeight != c->height )
               {
                   av_free(buffer);
                   buffer = NULL;
                   lastWidth = c->width;
                   lastHeight = c->height;

               }
           }
           else
           {
               lastWidth = c->width;
               lastHeight = c->height;
           }
           decodeFlag = 1;
           if(!buffer)
           {
               int numBytes;
               v_mutex_lock(globalCodecLock);
               switch(inPixFormat)
               {
               case RGB:


                   // Determine required buffer size and allocate buffer
                   numBytes=avpicture_get_size(PIX_FMT_RGB24, c->width, c->height);

                   buffer=(uint8_t *)av_malloc(numBytes*sizeof(uint8_t));
                   avpicture_fill((AVPicture *)pFrameRGB,buffer,PIX_FMT_RGB24,c->width, c->height);

                   if(cntxt)
                       sws_freeContext(cntxt);

                   cntxt = sws_getContext(c->width, c->height, c->pix_fmt,
                           c->width, c->height, PIX_FMT_RGB24, SWS_BICUBIC, NULL, NULL, NULL);

                   break;

               }
               v_mutex_unlock(globalCodecLock);
               if(cntxt == NULL)
               {
                   printf("sws_getContext error\n");
                   return ERROR;
               }
               }

           {
               sws_scale(cntxt, picture->data, picture->linesize, 0, c->height, pFrameRGB->data, pFrameRGB->linesize);
               if(rgbBuff)
               {


                   if(c->width &lt;= *width &amp;&amp; c->height &lt;= *height)
                   {                  
                       saveFrame(pFrameRGB, c->width, c->height, rgbBuff,inPixFormat);

                       *width = c->width;
                       *height = c->height;
                       rs = SUCCESS;
                       break;
                   }
                   else
                   {
                       rs = VA_LOWBUFFERSIZE;
                   }
               }
               else
               {
                   rs = VA_LOWBUFFERSIZE;
               }
           }
           if(width)
           {
               *width = c->width;
           }
           if(height)
           {
               *height = c->height;
           }
           if(rs == VA_LOWBUFFERSIZE)
           {
               break;
           }

    I am getting the return value of av_read_frame as 0 but av_decode_video2 returns value in negative. I am not able to get any clue here.

  • How to build latest ffmpeg for android-ffmpeg project on github

    9 février 2015, par user2927954

    I am working on https://github.com/guardianproject/android-ffmpeg project.
    In this project, it uses ffmpeg version 0.11.1.
    How can i build this project with the latest ffmpeg version ?

    I try to delete ffmpeg folder in this project. Checkout the latest ffmpeg version in url : [git ://git.videolan.org/ffmpeg.git]. After that, i ran command ./configure_make_everything.sh as normal but i got error :

       File to patch:
    Skip this patch? [y]
    Skipping patch.
    3 out of 3 hunks ignored
    patching file libavutil/arm/intmath.h
    Reversed (or previously applied) patch detected!  Skipping patch.
    3 out of 3 hunks ignored
    patching file configure
    Reversed (or previously applied) patch detected!  Skipping patch.
    1 out of 1 hunk ignored
    ~/workspace/android-ffmpeg/ffmpeg ~/workspace/android-ffmpeg ~/workspace/android-ffmpeg
    **ERROR: freetype2 not found**

    If you think configure made a mistake, make sure you are using the latest
    version from Git.  If the latest version fails, report the problem to the
    ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
    Include the log file "config.log" produced by configure as this will help
    solving the problem.
    ~/workspace/android-ffmpeg ~/workspace/android-ffmpeg
    ~/workspace/android-ffmpeg
    ~/workspace/android-ffmpeg ~/workspace/android-ffmpeg
    ~/workspace/android-ffmpeg/ffmpeg ~/workspace/android-ffmpeg ~/workspace/android-ffmpeg
    Makefile:2: config.mak: No such file or directory
    Makefile:53: /common.mak: No such file or directory
    Makefile:93: /libavutil/Makefile: No such file or directory
    Makefile:93: /library.mak: No such file or directory
    Makefile:95: /doc/Makefile: No such file or directory
    Makefile:178: /tests/Makefile: No such file or directory
    make: *** No rule to make target `/tests/Makefile'.  Stop.
    Makefile:2: config.mak: No such file or directory
    Makefile:53: /common.mak: No such file or directory
    Makefile:93: /libavutil/Makefile: No such file or directory
    Makefile:93: /library.mak: No such file or directory
    Makefile:95: /doc/Makefile: No such file or directory
    Makefile:178: /tests/Makefile: No such file or directory
    make: *** No rule to make target `/tests/Makefile'.  Stop.
    ~/workspace/android-ffmpeg ~/workspace/android-ffmpeg
    ~/workspace/android-ffmpeg
    admin@ubuntu:~/workspace/android-ffmpeg$

    I got error : Freetype2 not found but if i build with the original ffmpeg include in this project, this error is not occur.

    How can i fix it ? Please help