Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (30)

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

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (3989)

  • avfilter/vidstabtransform : update optzoom range values for recent vid.stab update.

    14 septembre 2013, par Georg Martius
    avfilter/vidstabtransform : update optzoom range values for recent vid.stab update.
    

    Signed-off-by : Georg Martius <martius@mis.mpg.de>

    • [DH] doc/filters.texi
    • [DH] libavfilter/vf_vidstabtransform.c
  • libavformat/yuv4mpeg : Add color range support for Y4M Add color_range support in...

    28 juin 2018, par Wang Cao
    libavformat/yuv4mpeg : Add color range support for Y4M Add color_range support in Y4M.
    

    Set pixel format and color_range for YUVJ pixel formats. Also set
    color_range based on AVFormatContext.

    Signed-off-by : Wang Cao <wangcao@google.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/yuv4mpegdec.c
    • [DH] libavformat/yuv4mpegenc.c
  • swscaler@0dd9e620 : deprecated pixel format used, make sure you did set range correctly"

    19 juin 2015, par Tariq

    I am decoding RTSP video stream with FFMpeg.
    At display time (call to cv::imshow(...)), I get the following exception :

    [swscaler @ 0d55e5c0] deprecated pixel format used, make sure you did
    set range correctly

    I am converting the pixel format from "AV_PIX_FMT_YUVJ420P" to "AV_PIX_FMT_YUV420P". Still getting the above exception. Any help is appreciated ;

    int Decodestream()
    {
       av_register_all();
       avdevice_register_all();
       avcodec_register_all();
       avformat_network_init();

       const char  *filenameSrc = "rtsp://192.168.1.67/gnz_media/second";

       AVCodecContext  *pCodecCtx;
       AVFormatContext *pFormatCtx = avformat_alloc_context();

       AVCodec * pCodec;
       AVFrame *pFrame, *pFrameRGB;

       if(avformat_open_input(&amp;pFormatCtx,filenameSrc,NULL,NULL) != 0)
       {return -1;}

       if(av_find_stream_info(pFormatCtx) &lt; 0)  
       {return -1;}

       av_dump_format(pFormatCtx, 0, filenameSrc, 0);

       int videoStream = 1;

       for(int i=0; i &lt; pFormatCtx->nb_streams; i++)
       {
           if(pFormatCtx->streams[i]->codec->coder_type==AVMEDIA_TYPE_VIDEO)
           {
               videoStream = i;
               break;
           }
       }

       if(videoStream == -1) return -1 ;

       pCodecCtx = pFormatCtx->streams[videoStream]->codec;

       pCodec =avcodec_find_decoder(pCodecCtx->codec_id);

       if(pCodec==NULL)
       {return -1;} //codec not found

       if(avcodec_open2(pCodecCtx,pCodec,NULL) &lt; 0)
       { return -1;}

       pFrame    = avcodec_alloc_frame();
       pFrameRGB = avcodec_alloc_frame();

       uint8_t *buffer;

       int numBytes;

       AVPixelFormat  pFormat;

       switch (pFormatCtx->streams[videoStream]->codec->pix_fmt)
       {
       case AV_PIX_FMT_YUVJ420P : pFormat = AV_PIX_FMT_YUV420P; break;
       case AV_PIX_FMT_YUVJ422P : pFormat = AV_PIX_FMT_YUV422P; break;
       case AV_PIX_FMT_YUVJ444P : pFormat = AV_PIX_FMT_YUV444P; break;
       case AV_PIX_FMT_YUVJ440P : pFormat = AV_PIX_FMT_YUV440P;
       default:
           pFormat = pFormatCtx->streams[videoStream]->codec->pix_fmt;
           break;
       }

       numBytes = avpicture_get_size(pFormat,pCodecCtx->width,pCodecCtx->height) ;

       buffer = (uint8_t *) av_malloc(numBytes*sizeof(uint8_t));

       avpicture_fill((AVPicture *) pFrameRGB,buffer,pFormat,pCodecCtx->width,pCodecCtx->height);

       int res, frameFinished;

       AVPacket packet;

       while(res = av_read_frame(pFormatCtx,&amp;packet)>=0)
       {

           if(packet.stream_index == videoStream){

               avcodec_decode_video2(pCodecCtx,pFrame,&amp;frameFinished,&amp;packet);

               if(frameFinished){

                   struct SwsContext * img_convert_ctx;

                   img_convert_ctx = sws_getCachedContext(NULL,pCodecCtx->width, pCodecCtx->height, pCodecCtx->pix_fmt,   pCodecCtx->width, pCodecCtx->height, AV_PIX_FMT_BGR24, SWS_BICUBIC, NULL, NULL,NULL);

                   sws_scale(img_convert_ctx, ((AVPicture*)pFrame)->data, ((AVPicture*)pFrame)->linesize, 0, pCodecCtx->height, ((AVPicture *)pFrameRGB)->data, ((AVPicture *)pFrameRGB)->linesize);

                   cv::Mat img(pFrame->height,pFrame->width,CV_8UC3,pFrameRGB->data[0]);
                   cv::imshow("display",img);
                   cvWaitKey(10);          
               }
           }

       }
       //Memory clean up code goes here
    }