Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (46)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (4720)

  • Resize to a specific width and height using ffmpeg

    15 juin 2014, par Lambda Dusk

    I need to generate thumbnails for videos, automatically. I cannot predict the format of the video, but I need the thumbnail to be 220x120 pixels, always. Using -s 220x120 produces a weird stretch, just like -vf "scale=220:120". I’d like the stretching to be uniform, either cutting away top and bottom if the video is too high or adding black borders.

  • Elimination compression from videos generated from images using ffmpeg ?

    5 novembre 2011, par Magz

    So I'm using ffmpeg to generate videos from a series of images. Unfortunately every video I've generated so far becomes compressed about halfway through (these are about 10-30 second videos). I've tried a lot of different options, but here's an example and the resulting output.

    Any suggestions ?

    ffmpeg -minrate 5000k -maxrate 5000k -bufsize 1835k -b 5000k -s 480x480 \
    -f image2 -r 10 -i 'dms-%05d.jpeg' output.flv


    ffmpeg version 0.8.1, Copyright (c) 2000-2011 the FFmpeg developers
     built on Jul 29 2011 14:13:56 with gcc 4.2.1 (Apple Inc. build 5664)
     configuration: --enable-libmp3lame --enable-shared --disable-mmx --arch=x86_64
     libavutil    51.  9. 1 / 51.  9. 1
     libavcodec   53.  7. 0 / 53.  7. 0
     libavformat  53.  4. 0 / 53.  4. 0
     libavdevice  53.  1. 1 / 53.  1. 1
     libavfilter   2. 23. 0 /  2. 23. 0
     libswscale    2.  0. 0 /  2.  0. 0
    [image2 @ 0x101007c00] max_analyze_duration 5000000 reached at 5000000
    Input #0, image2, from 'dms-%05d.jpeg':
     Duration: 00:00:10.00, start: 0.000000, bitrate: N/A
       Stream #0.0: Video: mjpeg, yuvj444p, 559x480 [PAR 1:1 DAR 559:480], 10 fps, 10 tbr, 10 tbn, 10 tbc
    Incompatible pixel format 'yuvj444p' for codec 'flv', auto-selecting format 'yuv420p'
    [buffer @ 0x100d00230] w:559 h:480 pixfmt:yuvj444p tb:1/1000000 sar:1/1 sws_param:
    [buffersink @ 0x100d02160] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
    [scale @ 0x100d023a0] w:559 h:480 fmt:yuvj444p -> w:559 h:480 fmt:yuv420p flags:0x4
    Output #0, flv, to 'output.flv':
     Metadata:
       encoder         : Lavf53.4.0
       Stream #0.0: Video: flv, yuv420p, 559x480 [PAR 1:1 DAR 559:480], q=2-31, 200 kb/s, 1k tbn, 10 tbc
    Stream mapping:
     Stream #0.0 -> #0.0
    Press [q] to stop, [?] for help
    [buffer @ 0x100d00230] Buffer video input changed from size:559x480 fmt:yuvj444p to size:480x480 fmt:yuvj420p
    [scale @ 0x100d023a0] w:480 h:480 fmt:yuvj420p -> w:559 h:480 fmt:yuv420p flags:0x2
    [buffer @ 0x100d00230] Buffer video input changed from size:480x480 fmt:yuvj420p to size:559x480 fmt:yuvj444p
    [scale @ 0x100d023a0] w:559 h:480 fmt:yuvj444p -> w:559 h:480 fmt:yuv420p flags:0x2
    [buffer @ 0x100d00230] Buffer video input changed from size:559x480 fmt:yuvj444p to size:480x480 fmt:yuvj420p
    [scale @ 0x100d023a0] w:480 h:480 fmt:yuvj420p -> w:559 h:480 fmt:yuv420p flags:0x2
    [buffer @ 0x100d00230] Buffer video input changed from size:480x480 fmt:yuvj420p to size:559x480 fmt:yuvj444p
    [scale @ 0x100d023a0] w:559 h:480 fmt:yuvj444p -> w:559 h:480 fmt:yuv420p flags:0x2
    [buffer @ 0x100d00230] Buffer video input changed from size:559x480 fmt:yuvj444p to size:480x480 fmt:yuvj420p
    [scale @ 0x100d023a0] w:480 h:480 fmt:yuvj420p -> w:559 h:480 fmt:yuv420p flags:0x2
    [buffer @ 0x100d00230] Buffer video input changed from size:480x480 fmt:yuvj420p to size:559x480 fmt:yuvj444p
    [scale @ 0x100d023a0] w:559 h:480 fmt:yuvj444p -> w:559 h:480 fmt:yuv420p flags:0x2
    frame=  100 fps= 35 q=24.8 Lsize=    1062kB time=00:00:10.00 bitrate= 870.2kbits/s    
    video:1060kB audio:0kB global headers:0kB muxing overhead 0.166586%
  • Creating thumbnails with FFmpeg

    3 janvier 2012, par Calin-Andrei Burloiu

    I am using FFmpeg to extract thumbnails from specific positions of video files.

    I found on the web two approaches to do this :

    1. With -ss (seek) parameter before -i (input) parameter :

      ffmpeg -y -ss $SEEK_POINT -i input.ogv -vcodec mjpeg -vframes 1 -an -s 120x90 -f rawvideo output.jpg

    2. With -ss (seek) parameter after -i (input) parameter :

      ffmpeg -y -i input.ogv -vcodec mjpeg -ss $SEEK_POINT -vframes 1 -an -s 120x90 -f rawvideo output.jpg

    The first method generates a bad thumbnail with gray spots, but works very fast. The error returned is [theora @ 0x8097240] vp3: first frame not a keyframe.

    The second method always works but show an error which cause the extraction to take a lot of time. This amount of time is not fixed and it depends on the seek point as I noticed. Sometimes it takes a few seconds and other times several minutes to extract a thumbnail. I get the error Buffering several frames is not supported. Please consume all available frames before adding a new one. in the following output :

    Input #0, ogg, from 'input.ogv':
     Duration: 00:21:52.76, start: 0.000000, bitrate: 844 kb/s
       Stream #0.0: Video: theora, yuv420p, 800x600 [PAR 4:3 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
       Stream #0.1: Audio: vorbis, 44100 Hz, stereo, s16, 192 kb/s
       Metadata:
         ENCODER         : Lavf52.102.0
    Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting format 'yuvj420p'                                                                        
    [buffer @ 0x9250840] w:800 h:600 pixfmt:yuv420p                                
    [scale @ 0x92508a0] w:800 h:600 fmt:yuv420p -> w:120 h:90 fmt:yuvj420p flags:0x4
    Output #0, rawvideo, to 'output.jpg':
     Metadata:
       encoder         : Lavf53.2.0
       Stream #0.0: Video: mjpeg, yuvj420p, 120x90 [PAR 4:3 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream mapping:
     Stream #0.0 -> #0.0
    Press ctrl-c to stop encoding
    [buffer @ 0x9250840] Buffering several frames is not supported. Please consume all available frames before adding a new one.                                    
    frame=    0 fps=  0 q=0.0 size=       0kB time=10000000000.00 bitrate=   0.0kbit
    Last message repeated 15448 times
    frame=    1 fps=  0 q=3.4 Lsize=       3kB time=0.04 bitrate= 598.8kbits/s    
    video:3kB audio:0kB global headers:0kB muxing overhead 0.000000%

    How can I extract thumbnails without any problems using FFmpeg from a custom position of a video regardless of the input format ?