Recherche avancée

Médias (91)

Autres articles (112)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (12397)

  • Splicing two gifs together every other frame using ffmpeg

    30 juillet 2021, par Alexwall

    I have two gifs I want to be combined together in an odd fashion.

    


    If I have gif1.gif and gif2.gif i want one frame of gif2.gif inserted every other frame of gif1.gif, in a sort of zipper like way if that makes sense.

    


    Is this feasible ? Is ffmpeg maybe not the right software to use for this ?

    


  • Extract alpha from video ffmpeg android

    24 juin 2018, par Yarik Denisyk

    I want to overlay transparent video on the background image. I have a video where the top half is RGB object and bottom half is an alpha mask.

    My frame for example

    Now, for making this I do next steps :

    1) I am extracting all frames from video and save to the folder

    2) Each frame splitting to top and bottom half bitmap

    3) Top bitmap composite with bottom mask for extract alpha and get a frame with transparent background

    3) I am drawing each frame on the background and save to a folder

    4) Create a video using FFmpeg

    The problem is step 2, 3 and 4, they very slow. Maybe has another way to overlay transparent video on the background image ?

  • ffmpeg zoompan + crop

    24 février 2021, par andykais

    I need to pan across a video that is also being cropped by ffmpeg. How can I accomplish this in a single ffmpeg command ?

    


    So far I see two possible options :

    


    Option #1 : use crop variables pan across the video. This is choppy, but possibly fixed by upscaling the input.

    


    ffmpeg -i input.mp4 -vf 'crop=w=in_w/2:h=in_h:x=t*10' crop_panned_output.mp4


    


    Option #2 : create an alpha mask in the shape of the crop, and then apply it on top of the input video with a zoompan filter. ffmpeg is doing extra work in this case, because we have to pad the input, then zoom in on it, then pan across it, then apply the alpha mask. This is actually using the "zoompan" feature to "pan" though.

    


    magick -size 1920x1080 xc:none -fill black -draw "rectangle 480,0 1440,1080" rectangular-alpha-mask.png
ffmpeg -i input.mp4  -i rectangular-alpha-mask.png  -filter_complex "
  [0:v]pad=2112:1188,zoompan=z=1.1:px+0.5:d=1:fps=60:s=1920x1080[input_pan];
  [1:v]alphaextract[alf];
  [input_pan][alf]alphamerge[masked];
  color=s=1920x1080:color=red[base];
  [base][masked]overlay=shortest=1
"  mask_panned_output.mp4


    


    Are either of these the right way to do it or are they incredibly inefficient ? Is there another option ? Cropping & panning together feels like a fairly common workflow, but these solutions feel a bit hacky.

    


    Here is a visual description of what panning and cropping a video looks like :

    


    First start with a video. Here is a simple one.
testing description

    


    I want to crop the video to a certain width/height, and move from the left to the right across the video. The background is colored red for clarity
enter image description here

    


    The video moves from left to right across the original video, and keeps the same crop ratio.
enter image description here