Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (88)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

Sur d’autres sites (10626)

  • FFmpeg zoompan animation results in zig-zag pattern [closed]

    2 février 2024, par kregus

    please assist, as I am pulling my hair out !

    


    The goal is for a user to specify a zoomPoint in a video as follows :

    


    {
   "scale":4,        # Scale factor, here x4
   "offset":0,       # Start zooming in after 0ms
   "duration":5000,  # Stay zoomed in for 5000ms
   "marginX":80,     # Zoom x to 80% of video width 
   "marginY":10      # Zoom y to 10% of video height
}


    


    I am running the following, simplified FFmpeg command :

    


    ffmpeg -i "/tmp/input.mp4" -c:v libx264 -r 30 -vf "scale=iw*2:ih*2,zoompan=fps=30:z='if(gte(it,0.0)*lt(it,5.0), min(pzoom+0.2, 4),if(gte(it,5.0)*lt(it,5.5), max(pzoom-0.2, 1), 1))':d=1:s=1512x982:x='(iw - iw/4)*(80/100)':y='(ih - ih/4)*(10/100)'" /tmp/output.mp4


    


    The animation duration is 0.5s, the video framerate is 30fps, and so there are 0.5 / (1/30) = 15 animation frames.

    


    Zoom distance is scale - 1 = 3 in this case, which makes the zoom increment 3 / 15 = 0.2.

    


    This results in the following example video : click here

    


    While the zoom animation ends in the correct position, you will notice it arrives at that position in a zig-zag pattern, where it starts by zooming into the top-right corner, before changing direction towards the correct position.

    


    I cannot seem to figure out how to get it to animate the zoom in a straight line to the specified x/y position.

    


    Any tips are welcome, thanks !

    


  • How to combine 2 code snippets into 1 in FFMPEG ?

    22 avril 2021, par Jonathan Jason

    I have 2 ffmpeg codes as follows :
Code 1 : Change speed video and audio

    


    ffmpeg -i {input} -filter_complex "[0:v]setpts=PTS/1.1[v];[0:a]atempo=1.1[a]" -map "[v]" -map "[a]" -preset ultrafast "{output}"


    


    Code 2 : Zoom 5 SECONDS of video after EACH 30 SECONDS

    


    ffmpeg -i "{input}" -vf "zoompan=z='if(lte(mod(time,35),5),2,1)':d=1:x=iw/4-(iw/zoom/4):y=ih/4-(ih/zoom/4):fps=23.97" -threads 0 -preset ultrafast "{output}"


    


    I want to combine 2 code snippets into 1 code with the same functionality as the 2 code above, I would be very grateful if someone could help me !

    


  • How to enable and run zoompan only after nth frame

    24 novembre 2016, par RSMEENA

    I have to use zoompan on every input image , for different-different duration.
    I don’t know how to enable every zoompan between right frame,
    enable='between(n,x,y)' not working. here my code =>

    [0:v] zoompan=enable:z='if(lte(zoom,1.0),1+0.0009*5*30,max(1.001,zoom-0.0009))':d=205:s=800x800,
       drawtext=enable:fontfile=Oswald-Regular.ttf:text=%{n}:fontcolor=white:fontsize=38:y=H-100-(38)*1:x=w/2-tw/2 [over_0],  

    [1:v] zoompan=enable:z='if(lte(zoom,1.0),1+0.0009*5*30,max(1.001,zoom-0.0009))':d=205:s=800x800 ,
       drawtext=enable:fontfile=Oswald-Regular.ttf:text=%{n}:fontcolor=white:fontsize=38:y=H-100-(th+5)*1:x=w/2-tw/2 [over_1]

    —and some overlay code — " output