Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (43)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (6849)

  • How to zoom out image from and to specified dimensions using ffmpeg or python ?

    11 février 2023, par Peter.k

    I have an image 3600x3600, and I want to start zooming it smoothly, beginning from 1717x1080 size, and by some designed time (f.e. 5 secs) get the size of 3600x2264. This is almost the same ratio as input (0.4 pixel of difference).

    


    I need clean code, just can't find it. There's plenty of not working solutions.

    


    EDIT

    


    According to this topic : FFmpeg zoom not smooth-centered (but zigzag) I tried doing something

    


    ffmpeg -loop 1 -i e:/gals/img.jpg -vf "zoompan=z='min(zoom-0.0320,5)':d=125:x='(iw-(iw/zoom))*(3600/-1883)':y='(ih-(ih/zoom))*(2265/-2520)',scale=1717x1018" -t 5 e:/vid.mp4


    


    But it doesn't work. If I change parameters, I get bad ratio - the whole image of 3.6kx3.6k is stretched to my dimensions.

    


    EDIT 2

    


    Thanks to some other answers I found working code :

    


    ffmpeg -loop 1 -i e:/gals/Esk04.jpg -vf "zoompan=z='if(lte(zoom,1.0),1.8,max(1.001,zoom-0.005))':d=125:x='(iw-(iw/zoom))/2':y='(ih-(ih/zoom))/2'" -t 5  e:/vid.mp4


    


    but it saves the video in 1280x720 dimensions, while I need to save in 1717x1080 without changing image content ratio. Now I only need to crop it and keep the ratio - ideally with one command. Adding -s "1717x1080" causes some errors, depending on other parameters i set.

    


  • letterboxing with correct aspect ratios

    6 juillet 2014, par skcrpk

    i am trying to get letterboxing effect

    i am using

    scale=720:trunc(ow/a/2)*2,pad=720:480:(ow-iw)/2:(oh-ih)/2:black

    this correctly converts the video and calculates the height but it fails for some videos with negative values

    for example

    The aspect ratio for 720x480 is 640 x427

    Based on 640 width , height is changed to maintain the aspect ratio

    The video frame should be
    640 x 360

    Which cannot fit in 640 x 360

    how can correctly convert the videos whose height is larger than provided height

  • How to calculate the resolution of a video ?

    21 avril 2021, par René Pardon

    So for 1280x720 it's obvious that resolution equals to 720p with an aspect ratio of 1,777777778 (16:9).

    


    But given the width (560px) and height (320px) of a video, how do I calculate the resolution ? Or is it just like using the height of the video ? (320px = 320p ?) And if not, what's the formula to calculate the resolution ?

    


    Because with 560x320 I have an aspect ratio of 1,75 which is close to 16:9 but this doesn't mean it's the same resolution.