Recherche avancée

Médias (91)

Autres articles (112)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (8382)

  • avutil : add ff_reverse as av_reverse replacement

    8 août 2015, par Andreas Cadhalpun
    avutil : add ff_reverse as av_reverse replacement
    

    The table is used in libavutil/eval.c.

    Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by : Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>

    • [DH] libavcodec/Makefile
    • [DH] libavcodec/mathops.h
    • [DH] libavcodec/mathtables.c
    • [DH] libavcodec/reverse.c
    • [DH] libavutil/Makefile
    • [DH] libavutil/eval.c
    • [DH] libavutil/internal.h
    • [DH] libavutil/reverse.c
  • Revision f2e44aa664 : Move the msvc round() replacement to msvc.h Change-Id : If470411c3c62a27f52261f4

    8 août 2015, par Alex Converse

    Changed Paths :
     Modify /vp9/common/vp9_systemdependent.h


     Modify /vpx_ports/msvc.h



    Move the msvc round() replacement to msvc.h

    Change-Id : If470411c3c62a27f52261f4ece2c5054b71789c7

  • What's the replacement for the avcodec_thread_init ?

    7 mai 2015, par Nyaruko

    I am using ffmpeg to encode/decode videos.
    I used a old version in the past, but recently I switched a new version and found that many ffmpeg functions are non-longer in use.

    Here is my old code :

    pCodecCtx=pVideoStream->codec;
      pCodecCtx->codec_id = pOutputFormat->video_codec;
      pCodecCtx->codec_type = ffmpeg::AVMEDIA_TYPE_VIDEO;

      pCodecCtx->bit_rate = Bitrate;
      pCodecCtx->width = getWidth();
      pCodecCtx->height = getHeight();
      pCodecCtx->time_base.den = fps;
      pCodecCtx->time_base.num = 1;
      pCodecCtx->gop_size = Gop;
      pCodecCtx->pix_fmt = ffmpeg::PIX_FMT_YUV420P;


      avcodec_thread_init(pCodecCtx, 10);

      //if (c->codec_id == CODEC_ID_MPEG2VIDEO)
      //{
         //c->max_b_frames = 2;  // just for testing, we also add B frames
      //}

      // some formats want stream headers to be separate
      if(pFormatCtx->oformat->flags &amp; AVFMT_GLOBALHEADER)
         pCodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER;


      if (av_set_parameters(pFormatCtx, NULL) &lt; 0)
      {
         printf("Invalid output format parameters\n");
         return false;
      }

      ffmpeg::dump_format(pFormatCtx, 0, fileName.toStdString().c_str(), 1);

      // open_video
      // find the video encoder
      pCodec = avcodec_find_encoder(pCodecCtx->codec_id);
      if (!pCodec)
      {
         printf("codec not found\n");
         return false;
      }
      // open the codec
      if (avcodec_open(pCodecCtx, pCodec) &lt; 0)
      {
         printf("could not open codec\n");
         return false;
      }

      // Allocate memory for output
      if(!initOutputBuf())
      {
         printf("Can't allocate memory for output bitstream\n");
         return false;
      }

      // Allocate the YUV frame
      if(!initFrame())
      {
         printf("Can't init frame\n");
         return false;
      }

      if (url_fopen(&amp;pFormatCtx->pb, fileName.toStdString().c_str(), URL_WRONLY) &lt; 0)
      {
         printf( "Could not open '%s'\n", fileName.toStdString().c_str());
         return false;
      }

      av_write_header(pFormatCtx);

    Here, avcodec_thread_init is no-longer in use and I cannot find anyhints about what function I should use to replace it ? Any ideas ?