Recherche avancée

Médias (91)

Autres articles (84)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

Sur d’autres sites (12442)

  • ffmpeg motions not working properly while using multiple urls

    22 avril 2021, par al pacino

    I am trying to apply ffmpeg transitions but sometimes video gets concatenated without any transition. In the command below I have used input 1 which in present on derectory and second input is online video url. the output video got concatenated without distance transition -

    


    one example of distance transition command is below-

    


    ffmpeg -i video1.webm -i 'url2' -filter_complex '[0]scale=1280:720,settb=AVTB[v0];[1]scale=1280:720,settb=AVTB[v1];[v0][v1]xfade=transition=distance:duration=1:offset=9,format=yuv420p’ output_video.webm


    


    and log is below-

    


     ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix= --prefix=/usr --disable-debug --disable-doc --disable-static --enable-cuda --enable-cuda-sdk --enable-cuvid --enable-libdrm --enable-ffplay --enable-gnutls --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libnpp --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc --enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-xlib
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, matroska,webm, from '/home/abc/xyz/887c28b7-8819-42d3-bb4f-95c44a72bce9.webm':
  Metadata:
    MINOR_VERSION   : 0
    COMPATIBLE_BRANDS: mp42mp41isomavc1
    MAJOR_BRAND     : mp42
    ENCODER         : Lavf58.45.100
  Duration: 00:00:21.03, start: -0.006000, bitrate: 346 kb/s
    Stream #0:0: Video: vp9 (Profile 0), yuv420p(tv), 480x360, SAR 1:1 DAR 4:3, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
    Metadata:
      ENCODER         : Lavc58.91.100 libvpx-vp9
      DURATION        : 00:00:21.033000000
    Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp (default)
    Metadata:
      HANDLER_NAME    : L-SMASH Audio Handler
      ENCODER         : Lavc58.91.100 libopus
      DURATION        : 00:00:10.013000000
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'https://player.vimeo.com/external/521230771.sd.mp4?s=9ee7ac91c97713d955848e34deac37d6d03d76a8&profile_id=164':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41isomavc1
    creation_time   : 2021-03-09T03:42:34.000000Z
  Duration: 00:00:10.01, start: 0.000000, bitrate: 619 kb/s
    Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m), 640x360, 488 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc (default)
    Metadata:
      creation_time   : 2021-03-09T03:42:34.000000Z
      handler_name    : L-SMASH Video Handler
      encoder         : AVC Coding
    Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2021-03-09T03:42:34.000000Z
      handler_name    : L-SMASH Audio Handler
Stream mapping:
  Stream #0:0 (vp9) -> scale (graph 0)
  Stream #1:0 (h264) -> scale (graph 0)
  format (graph 0) -> Stream #0:0 (libvpx-vp9)
  Stream #0:1 -> #0:1 (opus (native) -> opus (libopus))
Press [q] to stop, [?] for help
[libopus @ 0x5597e87c5bc0] No bit rate set. Defaulting to 96000 bps.
[libvpx-vp9 @ 0x5597e87c46c0] v1.7.0
[libvpx-vp9 @ 0x5597e87c46c0] Neither bitrate nor constrained quality specified, using default CRF of 32
Output #0, webm, to '/home/abc/afcb26e1-9c7a-4065-be6e-d1a2940ee0d9.webm':
  Metadata:
    MINOR_VERSION   : 0
    COMPATIBLE_BRANDS: mp42mp41isomavc1
    MAJOR_BRAND     : mp42
    encoder         : Lavf58.45.100
    Stream #0:0: Video: vp9 (libvpx-vp9), yuv420p, 480x360 [SAR 1:1 DAR 4:3], q=-1--1, 30 fps, 1k tbn, 30 tbc (default)
    Metadata:
      encoder         : Lavc58.91.100 libvpx-vp9
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
    Stream #0:1: Audio: opus (libopus), 48000 Hz, stereo, flt, 96 kb/s (default)
    Metadata:
      HANDLER_NAME    : L-SMASH Audio Handler
      DURATION        : 00:00:10.013000000
      encoder         : Lavc58.91.100 libopus
frame=  858 fps= 44 q=0.0 Lsize=    1141kB time=00:00:29.00 bitrate= 322.2kbits/s speed=1.48x    
video:1130kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.861019%


    


  • FFMPEG xfade and acrossfade not working properly when used in combination

    18 octobre 2022, par Khawar Raza

    I am trying to merge videos with transition effects. I am using ffmpeg-kit v5.1 android wrapper which is using ffmpeg v5.1.2 internally. When I use xfade and acrossfade in combination, the output video and audios are out of sync. Sometimes resultant video finishes first and sometimes audio finishes first.

    


    Here is the sample command :

    


     -i "input1.mp4"    // 1080x1920, 6132 milliseconds,
 -i "input2.mp4"    // 1080x808,  4808 milliseconds
 -i "input3.mp4"    // 1280x720,  5399 milliseconds
 
 -filter_complex " 
 
 [0:v] scale=w=1280:h=1920:force_original_aspect_ratio=disable, boxblur=40[blurcanvas0]; 
 [0:v] scale=1080.0:1920.0:force_original_aspect_ratio=disable[scaled0]; 
 [blurcanvas0][scaled0] overlay=(main_w-overlay_w)*0.5:(main_h-overlay_h)*0.5, settb=AVTB, format=yuv420p,fps=30[part0]; 
 
 [1:v] scale=w=1280:h=1920:force_original_aspect_ratio=disable, boxblur=40[blurcanvas1]; 
 [1:v] scale=1280.0:957.62964:force_original_aspect_ratio=disable[scaled1]; 
 [blurcanvas1][scaled1] overlay=(main_w-overlay_w)*0.5:(main_h-overlay_h)*0.5, settb=AVTB, format=yuv420p,fps=30[part1]; 
 
 [2:v] scale=w=1280:h=1920:force_original_aspect_ratio=disable, boxblur=40[blurcanvas2]; 
 [2:v] scale=1280.0:720.0:force_original_aspect_ratio=disable[scaled2]; 
 [blurcanvas2][scaled2] overlay=(main_w-overlay_w)*0.5:(main_h-overlay_h)*0.5, settb=AVTB, format=yuv420p,fps=30[part2];  
 
 [part0][part1] xfade=transition=smoothleft:duration=2:offset=5.132[transition0]; 
 [transition0][part2] xfade=transition=smoothleft:duration=2:offset=8.940001[transition1];    
 
 [0:a][1:a]acrossfade=d=2[afade0];
 [afade0][2:a]acrossfade=d=2[afade1] " 
 
 -vsync passthrough -c:v libx264 -pix_fmt yuv420p 
 -map [transition1] -map [afade1] -preset ultrafast  "output.mp4"


    


    Basically, the script takes videos of different resolutions and formats, scales them to the maximum size respecting the aspect ratio, adds a blurred background to extra space, and then joins the individual parts using a transition effect. Then audios are joined using acrossfade filter with the same transition duration as used in videos.

    


    As per xfade requirements, script is converting videos to the same resolution and format yuv420p, changing fps to 30, and setting the timebase using settb=AVTB. All the requirements are met but the resultant video and audio are not synced. Any hint what is the missing part here ?

    


    Edit :

    


    As per @kesh reply, here is the updated command which has no impact :

    


    -i "input1.mp4" -i "input2.mp4" -i "input3.mp4" -filter_complex " 

[0:v]scale=w=1280:h=1920:force_original_aspect_ratio=disable, boxblur=40[canvas0]; 
[0:v] scale=1080.0:1920.0:force_original_aspect_ratio=disable[scaled0]; 
[canvas0][scaled0] overlay=(main_w-overlay_w)*0.5:(main_h-overlay_h)*0.5, settb=AVTB, format=yuv420p,fps=30[overlay0];

[1:v]scale=w=1280:h=1920:force_original_aspect_ratio=disable, boxblur=40[canvas1]; 
[1:v] scale=1280.0:957.62964:force_original_aspect_ratio=disable[scaled1]; 
[canvas1][scaled1] overlay=(main_w-overlay_w)*0.5:(main_h-overlay_h)*0.5, settb=AVTB, format=yuv420p,fps=30[overlay1];

[2:v]scale=w=1280:h=1920:force_original_aspect_ratio=disable, boxblur=40[canvas2]; 
[2:v] scale=1280.0:720.0:force_original_aspect_ratio=disable[scaled2]; 
[canvas2][scaled2] overlay=(main_w-overlay_w)*0.5:(main_h-overlay_h)*0.5, settb=AVTB, format=yuv420p,fps=30[overlay2];  

[overlay0][overlay1] xfade=transition=smoothleft:duration=2:offset=5.132[transition0]; 
[transition0][overlay2] xfade=transition=smoothleft:duration=2:offset=8.940001[transition1];

[0:a]asettb=AVTB[audio0]; 
[1:a]asettb=AVTB[audio1]; 
[2:a]asettb=AVTB[audio2];    
[audio0][audio1]acrossfade=d=2[afade0]; 
[afade0][audio2]acrossfade=d=2[afade1]"

-vsync passthrough -c:v libx264 -pix_fmt yuv420p -map [transition1] -map [afade1] -preset ultrafast  "output.mp4"


    


  • Anomalie #2109 (Nouveau) : Utiliser bcrypt au lieu de SHA256 pour les mots de passe

    30 mai 2011, par cedric -