Recherche avancée

Médias (0)

Mot : - Tags -/albums

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

Autres articles (49)

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

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (7425)

  • 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, &got_picture,avpkt);

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

         if (len <= 0)
         {
           return ERROR;
         }
       }
    }



           if(lastHeight != 0 && 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 <= *width && c->height <= *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.

  • Anomalie #3444 (Nouveau) : Nombreuses erreurs dans les log avec une instal en SQLite 2

    10 mai 2015, par Franck Dalot

    Bonjour
    SPIP 3.1.0-beta [22129]
    PHP 5.3.29 chez ovh
    Aucun préfix de table "particulier"
    Installation en SQLite 2
    J’ai un fichier mes_options qui ne contient que :
    <?php
    define('SPIP_ERREUR_REPORT',E_ALL);

    Je viens de faire un test d’installation tout neuf en SQLite 2.
    Une fois l’installation fini, je regarde de suite les logs dans tmp/log
    Je constate de nombreuses erreurs y compris "critique" dans les fichiers "maj.log", "spip.log", "spip.log.1", "sqlite.log" et "sqlite.log.1"
    Le site semble fonctionnel, mais pourtant, si j’essaie d’ouvrir le fichier avec https://github.com/lazierthanthou/sqlite-manager cela me sort comme quoi la bdd aurait un problème, donc impossible de la voir avec.

    Donc, dans le doute, ou il y a un vrai problème, je préfère faire un ticket en attendant que d’autres confirme ou regarde s’ils ont des choses qui sembleraient anormal.

    Franck

  • How can i use ffmpeg to capture video from a usb device ? [on hold]

    27 juin 2015, par Brubaker Haim

    Just for the test i did :
    I went to Device Manager > Sound, video and game controllers and there isee the device Game Capture HD this device is connected to my pc usb.

    Then i typed in the cmd window :

    e:\ffmpeg -f dshow -i video="Game Capture HD" out.mp4

    But what i get is this error :

    ffmpeg version N-73165-gf1e1730 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --e
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
    enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enabl
    ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --e
    le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp -
    able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --
    ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwb
    --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --en
    e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --
    ble-decklink --enable-zlib
     libavutil      54. 27.100 / 54. 27.100
     libavcodec     56. 45.100 / 56. 45.100
     libavformat    56. 38.102 / 56. 38.102
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 18.100 /  5. 18.100
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.100 /  1.  2.100
     libpostproc    53.  3.100 / 53.  3.100
    [dshow @ 00000000046e6280] Could not enumerate video devices (or none found).
    video=GameCapture: Input/output error