Recherche avancée

Médias (91)

Autres articles (61)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

Sur d’autres sites (6399)

  • configure : bump year

    31 décembre 2021, par Gyan Doshi
    configure : bump year
    
    • [DH] configure
  • How to implement spring animation (mass, tension, friction) in FFmpeg zoompan filter instead of linear interpolation ?

    29 mai, par Mykyta Manuilenko

    I'm trying to create a zoom-in and zoom-out animation using FFmpeg's zoompan filter, but I want to replace the linear interpolation with a spring animation that uses physics parameters (mass, tension, friction).

    


    My input parameters :

    


    "zoompan": {
  "focusRect": {
    "x": 1086.36,
    "y": 641.87,
    "width": 613,
    "height": 345
  },            
  "easing": {
    "mass": 1,
    "tension": 120,
    "friction": 20
  }
}


    


    Current working linear animation :

    


    ffmpeg -framerate 25 -loop 1 -i input.png \
  -filter_complex "\
    [0:v]scale=6010:3380,setsar=1,split=3[zoomin_input][hold_input][zoomout_input]; \
    [zoomin_input]zoompan= \
      z='iw/(iw/zoom + (ow - iw)/duration)': \
      x='x + (3400 - 0)/duration': \
      y='y + (2009 - 0)/duration': \
      d=25:fps=25:s=1920x1080, \
      trim=duration=1,setpts=PTS-STARTPTS[zoomin]; \
    [hold_input]crop=1920:1080:3400:2009,trim=duration=4,setpts=PTS-STARTPTS[hold]; \
    [zoomout_input]zoompan=\
      zoom='if(eq(on,0),iw/ow,iw/(iw/zoom + (iw-ow)/duration))':\
      x='if(eq(on,0),3400,x + (0-3400)/duration)':\
      y='if(eq(on,0),2009,y + (0-2009)/duration)':\
      d=25:fps=25:s=1920x1080, \
      trim=duration=1,setpts=PTS-STARTPTS[zoomout];
    [zoomin][hold][zoomout]concat=n=3:v=1:a=0[outv]" \
  -map "[outv]" \
  -crf 23 \
  -preset medium \
  -c:v libx264 \
  -pix_fmt yuv420p \
  output.mp4


    


    Notes :

    


      

    • It creates a perfectly straight zoom path to the specific point on the screen (similar to pinch-zooming on a smartphone - straight zooming to the center of the focus rectangle)

      


    • 


    • To improve the quality of the output, I upscale it beforehand

      


    • 


    


    What I want to achieve :

    


    Instead of linear interpolation, I want to implement a spring function with these physics parameters :

    


      

    • mass : 1
    • 


    • tension : 120
    • 


    • friction : 20
    • 


    


    Note that these params can be changed.

    


    Also, I want to preserve a perfectly straight zoom path to the specific point on the screen (similar to pinch-zooming on a smartphone).

    


    Question :

    


    How can I properly implement a spring animation function in FFmpeg's zoompan filter ?

    


  • How to get video file length uploaded to Amazon S3 ?

    25 mai 2015, par TSP

    I am using plupload to upload video files to Amazon S3 and am playing it using JWPlayer. Before video file is played, I display list of video files uploaded to S3. In this list I would like to display the duration of the video.

    I have read the ffmpeg approach used with PHP. Is there a better approach to get the duration ?

    Regards