Recherche avancée

Médias (1)

Mot : - Tags -/publicité

Autres articles (74)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

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

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (4144)

  • FFmpeg - add an animated gif (cropped by mask) to the video

    11 mars 2021, par zeromodule

    I have 3 inputs :

    


      

    1. Video file : https://file.io/6jtUlnZ7TGmT
    2. 


    3. Animated GIF with transparent background https://i.imgur.com/Vo3KHZm.gif
    4. 


    5. Mask file (BW) the same resolution as the video https://i.imgur.com/YJXUUrZ.png
    6. 


    


    I want to put the image on the video, but throw out all GIF pixels that are transparent in the mask (replace them with transparent ones).

    


    Video
    
Mask
    
Image
    
Result

    


    My current command, without masking (it works fine) :

    


    ffmpeg -i input.mp4 -ignore_loop 0 -i animation.gif \
-filter_complex "[1]scale=700x700[scaled_gif];\
[0][scaled_gif]overlay=50:30:shortest=1" \
-codec:a copy output.mp4


    


    UPDATE #1

    


    I managed to get closer to my goal with this command :

    


    ffmpeg -y -i input.mp4 -loop 1 -i mask.png \ 
-filter_complex "[1:v]alphaextract[mask]; \
movie=animation.gif,scale=1920x1080[scaled_gif]; \
[scaled_gif][mask]alphamerge[masked]; \
[0:v][masked]overlay=0:0" \
-c:a copy output_masked.mp4


    


    but it has 2 problems :

    


      

    1. GIF loses it's transparency. Transparent pixels become white.
    2. 


    3. GIF plays only once (i.e. no loop)
    4. 


    


    Output : https://file.re/2021/03/11/outputmasked/

    


  • FFmpeg - add an image (cropped by mask) to the video

    10 mars 2021, par zeromodule

    I have 3 inputs :

    


      

    1. Video file
    2. 


    3. Image file (GIF)
    4. 


    5. Mask file (transparent PNG with some black pixels) - the same resolution as the video
    6. 


    


    I want to put the image on the video, but throw out all image pixels that are transparent in the mask (replace them with transparent ones).

    


    Video
    
Mask
    
Image
    
Result

    


    My current command, without masking (it works fine) :

    


    ffmpeg -i input.mp4 -ignore_loop 0 -i image.gif -filter_complex "[1]scale=700x700[scaled_gif];[0][scaled_gif]overlay=50:30:shortest=1" -codec:a copy output.mp4


    


    I know I should probably use alphamerge, but I don't understand how to use it properly.

    


  • How to make a Magick.NET watermark ? [closed]

    26 janvier 2021, par sibbasa

    Has anyone worked with Magick.NET ? Do I need to transfer this code to C# Magick.NET ? I can't find examples and documentation of Magick.NET. :( Can someone help me ?

    


        logo=../../logo/Moto_Gymkhana_transparent.png
    Frames=15
    width=842
    height=595
    mkdir tmp
    for (( n=0; n<=90; n+=$(expr $(( 90/$Frames )))))
    do
    oWidth=$(printf %.$2f $(echo "$width*(c($n*4*a(1)/180))+1" | bc -l))
    shadowShift=$(printf %.$2f $(echo "15*(s($n*4*a(1)/180))+1" | bc -l))
    convert -size 850x600 xc:transparent -background none \( -alpha set -channel A -evaluate add -50% $logo -geometry $oWidth\ x$height\! \) -gravity center -composite -depth 8 ./tmp/$n.png
    convert tmp/$n.png \( +clone -background '#cccf' -shadow 100x8+$shadowShift-3 \) -background none  -compose Dst_Over -layers merge -gravity center -depth 8 tmp/logo$(expr $(( 1000+n ))).png
    convert tmp/$n.png \( +clone -background '#cccf' -shadow 100x8-$shadowShift-3 \) -background none -compose Src_Over -layers merge -gravity center -flop tmp/logo$(expr $(( 1800-n ))).png
    convert tmp/$n.png \( +clone -background '#cccf' -shadow 100x8+$shadowShift-3 \) -background none  -compose Src_Over -layers merge -gravity center -flop tmp/logo$(expr $(( 2000+n ))).png
    convert tmp/$n.png \( +clone -background '#cccf' -shadow 100x8-$shadowShift-3 \) -background none -compose Dst_Over -layers merge -gravity center tmp/logo$(expr $(( 2800-n ))).png
    done
    ffmpeg -pattern_type glob -i 'tmp/logo*.png' -pix_fmt argb -vcodec qtrle -r 30 rotatingLogo.mov
    ffmpeg -loop 1 -pattern_type glob -i 'tmp/logo1000.png' -pix_fmt argb -vcodec qtrle -r 30 -t 3 stillLogo.mov
    rm list.txt
    for (( i=0; i<20; i+=1 ))
    do
    echo file 'stillLogo.mov' >> list.txt
    echo file 'rotatingLogo.mov' >> list.txt
    done
    ffmpeg -f concat -i list.txt -c copy logoWithRotation.mov