Recherche avancée

Médias (91)

Autres articles (101)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (7663)

  • convert animated gif to video on linux server while preserving frame rate

    12 juin 2015, par pmedia

    how do I convert an animated gif to a video (e.g. h264@mp4) programmatically on a linux server ?

    I need this to process user generated content which should be output as several defined video formats ; therefore its possible, that users may want to process animated gif files. I already have a set of working php scripts to transcode videofiles to specific formats (like vpx@webm and h264@mp4, scaled to specific resolutions) using avconv, but herefore I need video input.

    Usual ways seem to be to extract the frames of the gif and then encode it, like

    convert file.gif file%03d.png
    avconv -i file%03d.png file.mp4

    But this discards the frame rate, determined by the pause-informations within the gif-file. Its possible to define a framerate to avconv with -r, but

    • this does not respect the pause between frames, as they can differ (like 1st frame 100ms pause, 2nd frame 250ms pause, 3rd frame 100ms pause, ...)
    • as the input comes from users, it may even vary, as some gifs may have 5fps and others 30fps

    I noticed that avconv is able to process gifs by itself and therefore may respect the correct pauses, but when I do (like similarily described in How to convert GIF to Mp4 is it possible ?)

    avconv -i file.gif -r 30 file.mp4

    avconv will only take the first frame of the gif, while it detects the file at least as video :

    Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0.0: Video: gif, pal8, 640x480, 25 tbn

    (example gif ’file.gif’ has 15 frames, each with 100ms pause => 1.5s duration, looping)

    • What am I missing ? Whats going wrong ?
    • Are there probably better tools for this use case ?
    • What are big sites like e.g. 9gag using to transcode uploaded gifs to video ?
  • videos converted to gif with ffmpeg have a box pattern background

    18 mars 2017, par vasisdas

    I recently started using ffmpeg to convert small videos I make into gifs. However, I’m noticing that all gifs I make have a pattern background of some kind. It’s not too noticeable of a difference between the video and the gif, but you can see it clearly in the difference between the video preview and the gif preview :

    Original video on youtube

    Gif in imgur album, along with a thumbnail of the gif and the video

    The command I send to ffmpeg to convert :

    ffmpeg -i "video path" -pix_fmt rgb24 "output file path"

    I’ve tried it with and without the -pix_fmt rgb24. Any ideas what else it could be ?

  • ffmpeg : input rate and output rate not respected

    2 novembre 2022, par Gregory

    I am using ffmpeg to overlay PNG and gifs while trying to preserve the same framerate and delay of the GIFs. The gif files all have the same number of frames (5) and a 13ms delay between each frame.

    


    Attempt #1 :

    


    ffmpeg 
   -r 5 -i ./Salmonbg.png 
   -r 5 -i ./Pinkfur.gif 
   -r 5 -i ./Cap.gif 
   -r 5 -i ./Glasses.gif 
   -r 5 -i Bone.gif 
   -filter_complex "[0:v][1:v]overlay=format=auto[v1];[v1][2:v]overlay=format=auto[v2];[v2][3:v]overlay=format=auto[v3];[v3][4:v]overlay=format=auto[v4];[v4]split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" 
   -r 1000/130 preview.gif


    


    The command above will generate with the correct frame alignment from the png + gifs, however output frame delay incorrect :

    


    Frame #1: 260 <- WRONG (Why???)
Frame #2: 130
Frame #3: 260 <- WRONG (Why???)
Frame #4: 130
Frame #5: 130


    


    Attempt #2 :

    


    ffmpeg 
   -i ./Salmonbg.png 
   -i ./Pinkfur.gif 
   -i ./Cap.gif 
   -i ./Glasses.gif 
   -i Bone.gif 
   -filter_complex "[0:v][1:v]overlay=format=auto[v1];[v1][2:v]overlay=format=auto[v2];[v2][3:v]overlay=format=auto[v3];[v3][4:v]overlay=format=auto[v4];[v4]split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" 
   -r 1000/130 preview.gif


    


    The command above will output the correct frame delay, 13ms for all of them. However, the output gif will not use the first frame of each GIF. The second frame is used twice basically.

    


    Any idea what I am missing ? I feel like i'm 90% there but i can't figure out what i'm doing incorrectly.