Recherche avancée

Médias (91)

Autres articles (59)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

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

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (6018)

  • movenc : Write the make and model metadata keys for mov style files

    21 novembre 2014, par Martin Storsjö
    movenc : Write the make and model metadata keys for mov style files
    

    These are essential allowing QuickTime to keep detecting content
    as slow-motion - this allows preserving them on stream copy.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavformat/movenc.c
  • movenc : Write the make and model metadata keys for mov style files

    21 novembre 2014, par Martin Storsjö
    movenc : Write the make and model metadata keys for mov style files
    

    These are essential allowing QuickTime to keep detecting content
    as slow-motion - this allows preserving them on stream copy.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavformat/movenc.c
  • 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 ?