Recherche avancée

Médias (91)

Autres articles (50)

  • 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 à (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (8023)

  • 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

  • Compile ffmpeg and x264 with —enable-shared

    20 août 2016, par John Allard

    I am trying to compile ffmpeg with shared-library support, because when I compiled it statically it ended up making huge libraries, like libavcodec.a with 75MB in size. Any programs that I compiled against libavcodec was at least 50MB in size. This only happens on my RaspberryPi though, if I do

    ls -lsth $(which ffmpeg)

    on my RPI3 I get

    15M -rwxr-xr-x 1 pi pi 15M Jul 29 21:49 /home/pi/camiocam/cam/binaries/bin//ffmpeg

    While if I do the same on my macbook I get this output

    488 -r-xr-xr-x  1 john  admin   242K Jul 26 19:34 /usr/local/Cellar/ffmpeg/3.1.1/bin/ffmpeg

    To get shared library support I did the following

    # download and install libx264
    cd ~/ffmpeg_build
    git clone git://git.videolan.org/x264.git
    cd x264
    PATH="$HOME/bin:$PATH" ./configure --host=arm-unknown-linux-gnueabi  --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-shared --disable-opencl
    # PATH="$HOME/bin:$PATH" make -j 8
    # PATH="$HOME/bin:$PATH" make install
    # ldconfig

    and ...

    # to install ffmpeg

    cd ~/ffmpeg_sources
    wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
    tar xjvf ffmpeg-snapshot.tar.bz2
    cd ffmpeg
    PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --arch=armel --target-os=linux --extra-cflags="-I$HOME/ffmpeg_build/include" --enable-pic  --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --enable-gpl --enable-libx264 --enable-nonfree --enable-shared
    PATH="$HOME/bin:$PATH" make -j 8

    Which gives this output

    License: nonfree and unredistributable
    Creating config.mak, config.h, and doc/config.texi...
    config.h is unchanged
    libavutil/avconfig.h is unchanged
    libavcodec/bsf_list.c is unchanged
    libavformat/protocol_list.c is unchanged
    CC      libavcodec/libx264.o
    POD     doc/ffprobe.pod
    POD     doc/ffmpeg-all.pod
    POD     doc/ffserver-all.pod
    POD     doc/ffmpeg.pod
    POD     doc/ffprobe-all.pod
    POD     doc/ffserver.pod
    MAN     doc/ffprobe.1
    MAN     doc/ffmpeg.1
    MAN     doc/ffserver.1
    MAN     doc/ffmpeg-all.1
    MAN     doc/ffprobe-all.1
    MAN     doc/ffserver-all.1
    GEN     libavcodec/libavcodec.ver
    LD      libavcodec/libavcodec.so.57
    AR      libavcodec/libavcodec.a
    LD      libavformat/libavformat.so.57
    LD      libavfilter/libavfilter.so.6
    LD      libavdevice/libavdevice.so.57
    library.mak:102: recipe for target 'libavdevice/libavdevice.so.57' failed
    make: *** [libavdevice/libavdevice.so.57] Killed
    make: *** Deleting file 'libavdevice/libavdevice.so.57'

    I’ve tried to add the --enable-pic flag to the ffmpeg configure command but that made no difference.

  • How can we use ffmpeg or fluent-ffmpeg with angular cli ?

    25 juillet 2019, par Nileshdeora1122

    How to use ffmpeg with angular2+ application ?

    im tring to use ffmpeg inside my angular application but it is throwing some error during importing ffmpeg in angular like this :

    // import * as ffmpeg from 'fluent-ffmpeg';

    but getting errors like this :

    ERROR in ./node_modules/fluent-ffmpeg/lib/ffprobe.js
    Module not found: Error: Can't resolve 'child_process' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/utils.js
    Module not found: Error: Can't resolve 'child_process' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/processor.js
    Module not found: Error: Can't resolve 'child_process' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/processor.js
    Module not found: Error: Can't resolve 'fs' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/capabilities.js
    Module not found: Error: Can't resolve 'fs' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/recipes.js
    Module not found: Error: Can't resolve 'fs' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/isexe/mode.js
    Module not found: Error: Can't resolve 'fs' in '/home/pfacode1/angularApplication/careerfable2/node_modules/isexe'
    ERROR in ./node_modules/isexe/windows.js
    Module not found: Error: Can't resolve 'fs' in '/home/pfacode1/angularApplication/careerfable2/node_modules/isexe'
    ERROR in ./node_modules/isexe/index.js
    Module not found: Error: Can't resolve 'fs' in '/home/pfacode1/angularApplication/careerfable2/node_modules/isexe'
    ERROR in ./node_modules/fluent-ffmpeg/lib/utils.js
    Module not found: Error: Can't resolve 'os' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/recipes.js
    Module not found: Error: Can't resolve 'path' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/processor.js
    Module not found: Error: Can't resolve 'path' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/capabilities.js
    Module not found: Error: Can't resolve 'path' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/fluent-ffmpeg.js
    Module not found: Error: Can't resolve 'path' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'
    ERROR in ./node_modules/fluent-ffmpeg/lib/options/misc.js
    Module not found: Error: Can't resolve 'path' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib/options'
    ERROR in ./node_modules/which/which.js
    Module not found: Error: Can't resolve 'path' in '/home/pfacode1/angularApplication/careerfable2/node_modules/which'
    ERROR in ./node_modules/fluent-ffmpeg/lib/recipes.js
    Module not found: Error: Can't resolve 'stream' in '/home/pfacode1/angularApplication/careerfable2/node_modules/fluent-ffmpeg/lib'