Recherche avancée

Médias (21)

Mot : - Tags -/Nine Inch Nails

Autres articles (57)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Les thèmes de MediaSpip

    4 juin 2013

    3 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
    Thèmes MediaSPIP
    3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)

Sur d’autres sites (11418)

  • avformat/yop : Use av_packet_move_ref() for packet ownership transfer

    21 mars 2020, par Andreas Rheinhardt
    avformat/yop : Use av_packet_move_ref() for packet ownership transfer
    

    Also return 0 after successfully reading a packet.

    Reviewed-by : Anton Khirnov <anton@khirnov.net>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

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

  • Assistance required with filter graph construction(fast motion between times)

    6 janvier 2023, par D-MAN

    I am trying to re-create the following video, using ffmpeg.&#xA;https://youtu.be/eVQ9ysp0Pj0. "please check 0.19 minute for examples"&#xA;I have the following line of code which has most of the elements, except the part where is applies fast motion for 1s at certain outputs([vfr1][vfr2][vfr3])/times. currently it is only setpts=0.5*PTS[vboom] for the entire length of the video.

    &#xA;

    exe = "-i " &#x2B; file &#x2B; " -i " &#x2B; frame &#x2B; " -i " &#x2B; framestart &#x2B; " -i " &#x2B; frameEnd &#x2B; " -i " &#x2B; audioOverlay &#x2B; " -filter_complex \"[0:v]pad="&#x2B;mVideoWidth&#x2B;":"&#x2B;mVideoHeight&#x2B;":576:0[vpad]; [vpad][1]overlay[vframed]; [vframed]split=3[vfr1][vfr2][vfr3]; [vfr1]reverse[vrev]; [vfr2][vrev][vfr3]concat=n=3,setpts=0.5*PTS[vboom]; [vboom][2]overlay=enable=&#x27;lte(t,2)&#x27;[vpreout]; [vpreout][3]overlay=enable=&#x27;gte(t,"&#x2B;msec&#x2B;"*3*0.5-2)&#x27; \" -map 4:a -b:v 8000k -shortest -preset ultrafast -crf 23 " &#x2B; file2.getAbsolutePath();

    &#xA;

    i have tried the following code snippets in various sections of the filter graph, with no luck !

    &#xA;

    //[0:v]trim=0:2,setpts=PTS-STARTPTS[v1] ;[0:v]trim=2:5,setpts=2*(PTS-STARTPTS)[v2] ;[0:v]trim=5,setpts=PTS-STARTPTS[v3] ;&#xA;//[0:v]trim=0:10,setpts=PTS-STARTPTS[vfr1] ;[0:v]trim=10:30,setpts=PTS-STARTPTS[vfr2] ;[0:v]trim=start=30,setpts=PTS-STARTPTS[vfr3] ;&#xA;//[0:v]trim=2:3,setpts=0.75*(PTS-STARTPTS) ; [0:v]trim=4:5,setpts=0.75*(PTS-STARTPTS) ; [0:v]trim=7:8,setpts=0.75*(PTS-STARTPTS) ;&#xA;//[0:v]select='between(t,1,4)+between(t,4,6)',setpts=0.87*PTS ;

    &#xA;