Recherche avancée

Médias (1)

Mot : - Tags -/biographie

Autres articles (47)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (8717)

  • ffmpeg change resolution by condition

    22 décembre 2013, par Alexey Lisikhin

    I want to change my video resolution with ffmpeg :

    -s 852×480

    How can I do it only when video width or height greater than 852×480 ?

    I want something like this with ffmpeg, not with my programming language :

    if video.width > 852:
      resize width and proportionally resize height

    if video.height > 480:
      resize height and proportionally resize width

    if video.width > 852 and video.height > 480:
      resize height width
  • doc/issue_tracker : update resolution names

    25 octobre 2013, par Michael Niedermayer
    doc/issue_tracker : update resolution names
    

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] doc/issue_tracker.txt
  • FFmpeg change resolution

    15 mars 2012, par Iva

    I have changed resolution video using next code :

    pFrameOut = avcodec_alloc_frame();
    avpicture_fill((AVPicture *)pFrameOut, video_outbuf, PIX_FMT_YUV420P, video_width_out, video_height_out );          
    avcodec_decode_video2( pCodecCtx, pFrame, &amp;frameFinished, &amp;packet );                
    if(frameFinished)  // Did we get a video frame?
    {

       static struct SwsContext *img_convert_ctx_in = NULL;
       if (img_convert_ctx_in == NULL)
       {
           img_convert_ctx_in =sws_getContext( pCodecCtx->width, pCodecCtx->height, pCodecCtx->pix_fmt,video_width_out, video_height_out, PIX_FMT_YUV420P, SWS_BICUBIC,NULL, NULL, NULL );            
           if (img_convert_ctx_in == NULL)
           {
               LOGI(10,"naInitFile::Could no create Software Scale Context");
               return ;
           }
       }

       retval = sws_scale(img_convert_ctx_in, pFrame->data, pFrame->linesize, 0, pCodecCtx->height, pFrameOut->data, pFrameOut->linesize);
       SaveVideoFrame();
    }//end  if(frameFinished)  

    But after that time of play increased twofold. Why it could happen ?