Recherche avancée

Médias (0)

Mot : - Tags -/performance

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (60)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • Les images

    15 mai 2013
  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (7320)

  • writeImages and renaming the images using PHP

    3 mai 2015, par Kiran Kumar Dash

    I am working on a multimedia project. So, I am having a case where I am producing a sequence of images from a string input using he code below :

    <?php

       /*** a new Imagick object ***/
       $aniGif = new Imagick();

       /*** set the image format to gif ***/
       $aniGif->setFormat( "gif" );

       /*** a new ImagickPixel object for the colors ***/
       $color = new ImagickPixel( "white" );

       /*** set color to white ***/
       $color->setColor( "white" );

       $colorarray =array("white", "red", "blue" , "aqua", "fuchsia", "gray", "lime", "maroon", "navy", "orange", "purple", "silver", "teal", "yellow",  "green", "maroon", "green", "olive");

       /*** the text for the image ***/
       $string = "Hello Kiran Kumar";


       /*** a new draw object ***/
       $draw = new ImagickDraw();

       /*** set the draw font to helvetica ***/
       $draw->setFont( "./SociaLAnimaL.ttf" );

       /*** set the draw font to helvetica ***/
       $draw->setFontSize( "100" );

       /*** loop over the text ***/
       for ( $i = 0; $i <= strlen( $string ); $i++ )
       {
           /*** grab a character ***/
           $part = substr( $string, 0, $i );

           /*** a new ImagickPixel object for the colors ***/
           $color = new ImagickPixel( "white" );

           /*Generate random number for random color*/
           $randomNumber = rand(0,16);

           /*** create a new gif frame ***/
           $aniGif->newImage( 1920, 1200, $colorarray[$randomNumber] );

           /*** add the character to the image ***/
           $aniGif->annotateImage( $draw, 960, 600, 0, $part );

           /*** set the frame delay to 30 ***/
           $aniGif->setImageDelay( 30 );

       }
        /*** write the file ***/
           $aniGif->writeImages($directory.'kiran.jpg', $out);




       echo 'all done';

    ?>

    Now the problem is the writeimages object is generating images as kiran-0.jpg, kiran-1.jpg, kiran-2.jpg and so on. but what I am expecting is kiran001.jpg, kiran002.jpg, kiran003.jpg...and so on so that I can create a video out of it in while maintaining the sequence.Here is the code for video creation :

    <?php
    $ffmpeg= "/home/kiran/bin/ffmpeg";
       echo exec("$ffmpeg -f image2 -framerate 2/1 -pattern_type glob -i \"/var/www/html/fftest/getthumbnail/tmp/animate/est/*.jpg\" -i \"/var/www/html/fftest/getthumbnail/audios/audio1.mp3\" -c:v libx264 -c:a copy -shortest  -s 1920x1080 -r 60 -vf \"format=yuv420p\" \"/var/www/html/fftest/getthumbnail/output/animatedaudiocolor21.avi\" 2>&1" , $output, $return);
    ?>

    As you can see I am using -pattern type glob to select all the images, but this is getting confused with he naming sequence of kiran-0, kiran-1.

    So, what I am expecting here is how can I use writeimage object o name my images as the way mentioned above. so that I can use kiran%03d.jpg in my ffmpeg command instead of *.jpg.

    Or if any one can help me providing a code so that I can rename all the images in the expected manner.I tried the below code to rename all images :

    <?php
    $fileFolder="/fftest/getthumbnail/tmp/animate/test";
    $directory = $_SERVER['DOCUMENT_ROOT'].$fileFolder.'/';

    $i = 001;
    $handler = opendir($directory);
    while ($file = readdir($handler)) {
       if ($file != "." && $file != "..") {
           $newName = 'kiran'.$i ;
           rename($directory.$file, $directory.$newName); // here; prepended a $directory
           $i++;
       }
    }
    closedir($handler);

    ?>

    But the code is unable to rename the images in sequence.

    Help please...

  • avfilter/lut3d : fix channel order in Iridas format parsing.

    4 janvier 2014, par Clément Bœsch
    avfilter/lut3d : fix channel order in Iridas format parsing.
    

    According to http://doc.iridas.com/index.php?title=LUT_Formats

    for 3D textures, the data is also RGB, and ordered in such a way
    that the red coordinate changes fastest, then the green coordinate,
    and finally, the blue coordinate changes slowest :

    Fixes Ticket #3236.

    • [DH] libavfilter/vf_lut3d.c
  • Decode H.264 stream from live555 using ffmpeg

    3 septembre 2013, par Straticiuc Vicu

    I try to decode H.264 frames for an IP Camera that uses onvif. For this i am using example testRTSPClient from live555. In FAQ is said that function afterGettingFrame() is called every time a new packet came in buffer and that packet is an NAL unit. On live555 part everything looks good. Now for decoding i am using ffmpeg and the frame i pass to the decoder are formed like discribed Here. Now my problem is that the ffmpeg is unable to decode my frames and i am getting errors like :

    top block unavailable for requested intra4x4 mode -1 at 18 0
    error while decoding MB 18 0
    no picture
    P sub_mb_type 13 out of range at 2 3

    What am i doing wrong with ffmpeg ?

    PS. example of I-Frame passed to ffmpeg Here

    with:
    red   is startcode
    green is SPS info
    black is PPS info
    blue  is I-Frame delivered by live555