Recherche avancée

Médias (91)

Autres articles (63)

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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (6449)

  • Fill patterns

    26 avril 2008, 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 :

  • Revision 4f660cc018 : Modified mode skip functionality. A previous speed feature skipped modes not us

    5 septembre 2013, par Paul Wilkins

    Changed Paths :
     Modify /vp9/encoder/vp9_encodeframe.c


     Modify /vp9/encoder/vp9_onyx_if.c


     Modify /vp9/encoder/vp9_onyx_int.h


     Modify /vp9/encoder/vp9_rdopt.c



    Modified mode skip functionality.

    A previous speed feature skipped modes not used in earlier
    partitions but this not longer worked as intended following
    changes to the partition coding order and in conjunction
    with some other speed features (Especially speed 2 and above).

    This modified mode skip feature sets a mask after the first X
    modes have been tested in each partition depending on the
    reference frame of the current best case.

    This patch also makes some changes to the order modes are
    tested to fit better with this skip functionality.

    Initial testing suggests speed and rd hit count improvements
    of up to 20% at speed 1. Quality results. (derf -1.9%, std hd +0.23%).

    Change-Id : Idd8efa656cbc0c28f06d09690984c1f18b1115e1

  • ffmpeg created video from images does not play in jwplayer

    10 septembre 2013, par user2281222

    I have created a video from images with ffmpeg. Created video plays fine in my local machine with vlc. But it does not play in jwplayer/any web player.

    Commands used :

    ffmpeg -f image2 -r 1/4 -i image_%d.png -c:v libx264 -pix_fmt yuv420p -vf fps=fps=30 int_video.mp4

    ffmpeg -i int_video.mp4 -c:v libx264 -b:v 500k -pix_fmt yuv420p final.mp4"

    Information about the create video is as below :

           General
           Complete name                    : /home/oodles/git/picdeo/web-app/uservideos/admin/z4/username_admin__s3vidname_z4.mp4
           Format                           : MPEG-4
           Format profile                   : Base Media
           Codec ID                         : isom
           File size                        : 691 KiB
           Duration                         : 20s 34ms
           Overall bit rate                 : 282 Kbps
           Writing application              : Lavf55.12.100

           Video
           ID                               : 1
           Format                           : AVC
           Format/Info                      : Advanced Video Codec
           Format profile                   : High@L3.0
           Format settings, CABAC           : Yes
           Format settings, ReFrames        : 4 frames
           Codec ID                         : avc1
           Codec ID/Info                    : Advanced Video Coding
           Duration                         : 20s 34ms
           Bit rate                         : 279 Kbps
           Nominal bit rate                 : 500 Kbps
           Width                            : 480 pixels
           Height                           : 360 pixels
           Display aspect ratio             : 4:3
           Frame rate mode                  : Constant
           Frame rate                       : 30.000 fps
           Color space                      : YUV
           Chroma subsampling               : 4:2:0
           Bit depth                        : 8 bits
           Scan type                        : Progressive
           Bits/(Pixel*Frame)               : 0.054
           Stream size                      : 683 KiB (99%)
           Writing library                  : x264 core 135 r2 f0c1c53
           Encoding settings                : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=1 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

    How can I use ffmpeg to create a video that works in jwplayer ?