Recherche avancée

Médias (91)

Autres articles (30)

  • L’espace de configuration de MediaSPIP

    29 novembre 2010, par

    L’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
    Il permet de configurer finement votre site.
    La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (3432)

  • transcoding from amr to flac using JAVE(ffmpeg)

    25 avril 2012, par user824440

    I want to transcode amr audio files to flac using JAVE (http://www.sauronsoftware.it/projects/jave/). it uses ffmpeg to do the job.

    The transcoding procedure runs successfully on Windows but fails on Linux (centOS).

    I checked the JAVE code and found it uses the following command :

    ffmpeg -i 1.amr -vn -acodec flac -ac 1 -ar 8000 -f flac -y 1.flac

    the output is :

    FFmpeg version SVN-r11179, Copyright (c) 2000-2007 Fabrice Bellard, et al.
     configuration: --enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-memalign-hack --extra-ldflags=-static -lm -lz

    libavutil version: 49.5.0

    libavcodec version: 51.48.0

    libavformat version: 52.1.0

    built on Dec  7 2007 15:35:14, gcc: 4.1.2 20070626 (Red Hat 4.1.2-14)

    Input #0, amr, from '1.amr':

    Duration: N/A, bitrate: N/A

    Stream #0.0: Audio: samr / 0x726D6173, 8000 Hz, mono

    Input #1, amr, from '1.amr':

    Duration: N/A, bitrate: N/A

    Stream #1.0: Audio: samr / 0x726D6173, 8000 Hz, mono

    Output #0, flac, to '1.flacffmpeg':

    Stream #0.0: Audio: flac, 8000 Hz, mono, 64 kb/s

    Output #1, flac, to '1.flac':

    Stream #1.0: Audio: flac, 8000 Hz, mono, 64 kb/s

    Stream mapping:

    Stream #0.0 -> #0.0

    Stream #1.0 -> #1.0

    Unsupported codec (id=73728) for input stream #0.0

    So the problem might be unsuppported codec ? How to solve this ?
    Thanks.

  • JPEG 2000 decoder for DCinema

    22 avril 2013, par Nicolas Bertrand
    JPEG 2000 decoder for DCinema
    

    Based on the 2007 GSoC project from Kamil Nowosad <k.nowosad@students.mimuw.edu.pl>
    Updated to current programming standards, style and many more small
    fixes by Diego Biurrun <diego@biurrun.de>.

    Signed-off-by : Diego Biurrun <diego@biurrun.de>

    • [DBH] Changelog
    • [DBH] doc/general.texi
    • [DBH] libavcodec/Makefile
    • [DBH] libavcodec/allcodecs.c
    • [DBH] libavcodec/avcodec.h
    • [DBH] libavcodec/jpeg2000.c
    • [DBH] libavcodec/jpeg2000.h
    • [DBH] libavcodec/jpeg2000dec.c
    • [DBH] libavcodec/jpeg2000dwt.c
    • [DBH] libavcodec/jpeg2000dwt.h
    • [DBH] libavcodec/mqc.c
    • [DBH] libavcodec/mqc.h
    • [DBH] libavcodec/mqcdec.c
    • [DBH] tests/fate/video.mak
    • [DBH] tests/ref/fate/jpeg2000-dcinema
  • Creating buttons with Imagick

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

    A fellow called kakapo asked me to create a button with Imagick. He had an image of the button and a Photoshop tutorial but unfortunately the tutorial was in Chinese. My Chinese is a bit rusty so it will take a little longer to create that specific button ;)

    The button in this example is created after this tutorial http://xeonfx.com/tutorials/easy-button-tutorial/ (yes, I googled “easy button tutorial”). The code and the button it creates are both very simple but the effect looks really nice.

    Here we go with the code :

    1. < ?php
    2.  
    3. /* Create a new Imagick object */
    4. $im = new Imagick() ;
    5.  
    6. /* Create empty canvas */
    7. $im->newImage( 200, 200, "white", "png" ) ;
    8.  
    9. /* Create the object used to draw */
    10. $draw = new ImagickDraw() ;
    11.  
    12. /* Set the button color.
    13.   Changing this value changes the color of the button */
    14. $draw->setFillColor( "#4096EE" ) ;
    15.  
    16. /* Create the outer circle */
    17. $draw->circle( 50, 50, 70, 70 ) ;
    18.  
    19. /* Create the smaller circle on the button */
    20. $draw->setFillColor( "white" ) ;
    21.  
    22. /* Semi-opaque fill */
    23. $draw->setFillAlpha( 0.2 ) ;
    24.  
    25. /* Draw the circle */
    26. $draw->circle( 50, 50, 68, 68 ) ;
    27.  
    28. /* Set the font */
    29. $draw->setFont( "./test1.ttf" ) ;
    30.  
    31. /* This is the alpha value used to annotate */
    32. $draw->setFillAlpha( 0.17 ) ;
    33.  
    34. /* Draw a curve on the button with 17% opaque fill */
    35. $draw->bezier( array(
    36.           array( "x" => 10 , "y" => 25 ),
    37.           array( "x" => 39, "y" => 49 ),
    38.           array( "x" => 60, "y" => 55 ),
    39.           array( "x" => 75, "y" => 70 ),
    40.           array( "x" => 100, "y" => 70 ),
    41.           array( "x" => 100, "y" => 10 ),
    42.          ) ) ;
    43.  
    44. /* Render all pending operations on the image */       
    45. $im->drawImage( $draw ) ;
    46.  
    47. /* Set fill to fully opaque */
    48. $draw->setFillAlpha( 1 ) ;
    49.  
    50. /* Set the font size to 30 */
    51. $draw->setFontSize( 30 ) ;
    52.  
    53. /* The text on the */
    54. $draw->setFillColor( "white" ) ;
    55.  
    56. /* Annotate the text */
    57. $im->annotateImage( $draw, 38, 55, 0, "go" ) ;
    58.  
    59. /* Trim extra area out of the image */
    60. $im->trimImage( 0 ) ;
    61.  
    62. /* Output the image */
    63. header( "Content-Type : image/png" ) ;
    64. echo $im ;
    65.  
    66.  ?>

    And here is a few buttons I created by changing the fill color value :

    red

    green

    blue