Recherche avancée

Médias (91)

Autres articles (51)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (7935)

  • 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 ?

    


  • FFMpeg Error av_interleaved_write_frame() :

    18 janvier 2014, par rajaneesh

    this my code . after running php code

    FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
     configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include --enable-libamr-nb --enable-libamr-wb --enable-libdirac --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-x11grab
     libavutil     49.15. 0 / 49.15. 0
     libavcodec    52.20. 0 / 52.20. 0
     libavformat   52.31. 0 / 52.31. 0
     libavdevice   52. 1. 0 / 52. 1. 0
     libswscale     0. 7. 1 /  0. 7. 1
     libpostproc   51. 2. 0 / 51. 2. 0
     built on Nov  6 2009 19:05:03, gcc: 4.1.2 20080704 (Red Hat 4.1.2-46)

    Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1)
    Input #0, flv, from 'demo.flv':
     Duration: 00:00:30.83, start: 0.000000, bitrate: 546 kb/s
       Stream #0.0: Video: h264, yuv420p, 640x360 [PAR 1:1 DAR 16:9], 546 kb/s, 25 tbr, 1k tbn, 50 tbc
       Stream #0.1: Audio: aac, 44100 Hz, stereo, s16
    Output #0, image2, to 'demo.jpg':
       Stream #0.0: Video: mjpeg, yuvj420p, 640x360 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 1 tbc
    Stream mapping:
     Stream #0.0 -> #0.0
    Press [q] to stop encoding
    av_interleaved_write_frame(): I/O error occurred
    Usually that means that input file is truncated and/or corrupted.
  • FFMpeg Error av_interleaved_write_frame() :

    7 mars 2024, par rajaneesh

    



    this my code . after running php code

    



    FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include --enable-libamr-nb --enable-libamr-wb --enable-libdirac --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-x11grab
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Nov  6 2009 19:05:03, gcc: 4.1.2 20080704 (Red Hat 4.1.2-46)

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1)
Input #0, flv, from 'demo.flv':
  Duration: 00:00:30.83, start: 0.000000, bitrate: 546 kb/s
    Stream #0.0: Video: h264, yuv420p, 640x360 [PAR 1:1 DAR 16:9], 546 kb/s, 25 tbr, 1k tbn, 50 tbc
    Stream #0.1: Audio: aac, 44100 Hz, stereo, s16
Output #0, image2, to 'demo.jpg':
    Stream #0.0: Video: mjpeg, yuvj420p, 640x360 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 1 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
av_interleaved_write_frame(): I/O error occurred
Usually that means that input file is truncated and/or corrupted.