Recherche avancée

Médias (91)

Autres articles (74)

  • 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

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

Sur d’autres sites (6720)

  • Get bitmap / thumbnail from a streaming video with format like .mp4, .3gp in Android ?

    12 janvier 2016, par Androzr

    I am working on ListView which on item click redirecting to a video link.
    I explain my problem :

    I have three types of videos :

    • Youtube
    • Dailymotion
    • Other formats from streaming video like this one : Video Link

    I am trying to get thumbnail to get it in my ImageView from my item of my ListView. I encoutered a problem, I get Youtube thumbnail, Dailymotion thumbnail but I couldn’t get thumbnail for other formats.

    I tried to use MediaMetaDataRetriever class but nothing happens.

    Here is the line where I tried to get my bitmap :

    We are in my VideoAdapter class in the getView method. holder is my ViewHolder class and thumbVideo is my ImageView.

    Here is differents lines I tried :

    holder.thumbVideo.setImageBitmap(createVideoThumbnail(m_Context, Uri.parse(m_Video.getM_Preview())));

    m_Video is my Video class and the method getM_Preview() is getting the link of video thumbnail.

    Here is my createVideoThumbnail(Context context, Uri uri) method :

       public Bitmap createVideoThumbnail(Context context, Uri uri) {
       Bitmap bitmap = null;
       MediaMetadataRetriever retriever = new MediaMetadataRetriever();
       try {
           retriever.setDataSource(context, uri);
           bitmap = retriever.getFrameAtTime(-1);
       } catch (RuntimeException ex) {
       } finally {
           try {
               retriever.release();
           } catch (RuntimeException ex) {
           }
       }
       return bitmap;
    }

    I am looking an answer for 4 days. If anybody know how I can do, it’ll be helpful

  • ffmpeg extension isn't installing

    29 avril 2013, par kaan yilgin

    I'm using wamp server v2.2 x64 and php version 5.3.13. I'm trying to install ffmpeg during two days. I fallowed this steps :

    • Download dll files for x64 (I'm using windows7 x64)
    • copied ffmpeg.dll to bin\php\php5.3.13\ext
    • copied rest of dll files to system32
    • enable ffmpeg extension from wamp server.

    and I checked phpinfo() but it's not working.
    by the way is there any way to take a frame from video for poster image ?

  • Fill patterns

    9 juin 2010, par Mikko Koppanen — Imagick, PHP stuff

    My work life has been quite busy lately and I haven’t had a chance to sit down and blog. I have been touring around London and some parts of the northern England consulting and organizing some training here and there. Luckily I have had the chance to do some work on Imagick and the 2.2.0 beta release is getting closer. The internal structure was completely restructured and broken down into several smaller files. During this time Imagick was adapted to follow the PHP Coding Standards more closely. Still a work in progress :)

    I committed slightly modified version of this example to PHP Manual http://uk.php.net/manual/en/imagick.examples.php page a few days ago. The example illustrates using an image as a part of a named fill pattern. The fill pattern is used to annotate text but the named pattern could also be used to fill any shapes that allow fill to be specified (include circles, ellipses, rectangles, polygons etc etc). The code itself is pretty straight forward : Read the image, create the pattern and use the pattern as a fill.

    The ice formations image is from http://www.photoeverywhere.co.uk/west/winterholiday/slides/iceformations5679.htm.

    1. < ?php
    2.  
    3. /* Create a new imagick object */
    4. $im = new Imagick( ’iceformations5679.JPG’ ) ;
    5.  
    6. /* Create imagickdraw object */
    7. $draw = new ImagickDraw() ;
    8.  
    9. /* Start a new pattern called "ice" */
    10. $draw->pushPattern( ’ice’ , 0 , 0 , 50 , 50 ) ;
    11.  
    12. /* Composite the image on the pattern */
    13. $draw->composite( Imagick: :COMPOSITE_OVER, 0, 0, 50, 50, $im ) ;
    14.  
    15. /* Close the pattern */
    16. $draw->popPattern() ;
    17.  
    18. /* Use the pattern called "ice" as the fill */
    19. $draw->setFillPatternURL( ’#ice’ ) ;
    20.  
    21. /* Set font size to 52 */
    22. $draw->setFontSize( 52 ) ;
    23.  
    24. /* Annotate some text */
    25. $draw->annotation( 5, 50, "Hello World !" ) ;
    26.  
    27. /* Create a new canvas and white image */
    28. $canvas = new Imagick() ;
    29. $canvas->newImage( 310, 70, "white" ) ;
    30.  
    31. /* Add black border around the resulting image */
    32. $canvas->borderImage( ’black’, 1, 1 ) ;
    33.  
    34. /* Draw the ImagickDraw on to the canvas */
    35. $canvas->drawImage( $draw ) ;
    36.  
    37. /* Set the format to PNG */
    38. $canvas->setImageFormat( ’png’ ) ;
    39.  
    40. /* Output the image */
    41. header( "Content-Type : image/png" ) ;
    42. echo $canvas ;
    43.  ?>

    And the result is here :