Recherche avancée

Médias (91)

Autres articles (75)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • 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" ;

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

Sur d’autres sites (7683)

  • Use NVIDIA GPU to speed up drawtext with ffmpeg

    28 février 2020, par Garrett

    I use the following ffmpeg command add text to a video, which takes longer than I would like.

    ffmpeg -i input.mp4 -vf "[in] drawbox= x=iw*0.75:y=ih*0.88:w=iw*0.25:h=ih*0.12:color=black@0.7:t=fill, drawtext=fontsize=20:fontcolor=White:text='Test Text Row 1':x=(w*.75)+15:y=(h*.88)+15, drawtext=fontsize=20:fontcolor=White:text='Test Text Row 2':x=(w*.75)+15:y=((h*.88)+25)+15, drawtext=fontsize=20:fontcolor=White:text='Test Text Row 3':x=(w*.75)+15:y=((h*.88)+50)+15, drawtext=fontsize=20:fontcolor=White:text='Test Text Row 4':x=(w*.75)+15:y=((h*.88)+75)+15 [out]" -y out.mp4

    I believe I have successfully configured ffmpeg to use the GPU on my laptop by following NVIDIA’s guide, which can be found https://developer.nvidia.com/ffmpeg

    However I am having trouble integrating the commands to utilize the GPU with my command above. I tested the following command from NVIDIA’s site to test configuration and it worked without error.

    ffmpeg -vsync 0 -c:v h264_cuvid -i  -f rawvideo

    I have not found any examples yet of the integration of drawtext and GPU acceleration so any guidance appreciated.

  • Multiple Overlay Movies in FFMPEG

    15 décembre 2014, par John Du

    I was trying to make a 3 columns by 2 row overlay in FFMEG

    I found this command which works great for a 2x2 movie overlay

    ffmpeg.exe -i video1.mp4 -i video2.mp4 -i video3.mp4 -i video4.mp4 -filter_complex "[0:0]scale=iw/2:ih/2,pad=iw*2:ih*2[a];[1:0]scale=iw/2:ih/2[b];[2:0]scale=iw/2:ih/2[c];[3:0]scale=iw/2:ih/2[d];[a][b]overlay=w[x];[x][c]overlay=0:h[y];[y][d]overlay=w:h,drawtext=fontsize=12:fontcolor=white:fontfile=/Windows/Fonts/arial.ttf:text='vid1':x=35:y=35,drawtext=fontsize=12:fontcolor=white:fontfile=/Windows/Fonts/arial.ttf:text='vid2':x=(w/2)+35:y=35,drawtext=fontsize=12:fontcolor=white:fontfile=/Windows/Fonts/arial.ttf:text='vid3':x=35:y=(h/2)+35,drawtext=fontsize=12:fontcolor=white:fontfile=/Windows/Fonts/arial.ttf:text='vid4':x=(w/2)+35:y=(h/2)+35" output.mp4

    (Same command just multiple lines only for readability)

    ffmpeg.exe -i video1.mp4 -i video2.mp4 -i video3.mp4 -i video4.mp4
    -filter_complex "[0:0]scale=iw/2:ih/2,pad=iw*2:ih*2[a];[1:0]scale=iw/2:ih/2[b];
    [2:0]scale=iw/2:ih/2[c];[3:0]scale=iw/2:ih/2[d];[a][b]overlay=w[x];
    [x][c]overlay=0:h[y];[y][d]overlay=w:h,drawtext=fontsize=12:fontcolor=white:
    fontfile=/Windows/Fonts/arial.ttf:text='vid1':x=35:y=35,drawtext=fontsize=12:
    fontcolor=white:fontfile=/Windows/Fonts/arial.ttf:text='vid2':x=(w/2)+35:y=35,drawtext=fontsize=12:fontcolor=white:
    fontfile=/Windows/Fonts/arial.ttf:text='vid3':x=35
    :y=(h/2)+35,drawtext=fontsize=12:fontcolor=white:
    fontfile=/Windows/Fonts/arial.ttf:text='vid4':x=(w/2)+35:y=(h/2)+35" output.mp4

    I had trouble adding the 2 other movies, I know you add this

    ffmpeg.exe -i video1.mp4 -i video2.mp4 -i video3.mp4 -i video4.mp4 -i video5.mp4 -i video6.mp4

    and this

    -filter_complex "[0:0]scale=iw/2:ih/2,pad=iw*3:ih*2[a];

    but positioning the last 2 movies and text is where I am lost

    image per request [edit]
    of what I want to do in organizing the overlays

    overlay of 6 videos 3x2 with text on top

  • FFmpeg WebP vs PNG alpha

    11 août 2022, par Yoz

    Attached x.png and x.webp (webp created from png) have transparent background covered by white X shape.

    


    For some reason FFmpeg scale filter treats the x.png and x.webp differently.
Applying scale filter on the x.webp, causes the output video alpha around the X shape to be premultiplied and so renders with ugly edges.

    


    Following commands, esp. out-webp-scale.png output demonstrates the issue :

    


    out-webp-scale.png

    


    ffmpeg -filter_complex "color=white:200x200[b];movie=x.png,[b]overlay" -y out-png.png

ffmpeg -filter_complex "color=white:200x200[b];movie=x.png,scale=200:200,[b]overlay" -y out-png-scale.png

ffmpeg -filter_complex "color=white:200x200[b];movie=x.webp,[b]overlay" -y out-webp.png

ffmpeg -filter_complex "color=white:200x200[b];movie=x.webp,scale=200:200,[b]overlay" -y out-webp-scale.png


    


    I tried all possible scale filter flags, and also format changing (before and after scale) but no luck to achieve the same result. I am able to un-premultipy the problematic one with unpremultiply filter but I would like to avoid it.

    


    I wonder if there is any workaround for having the same command for both png-s and webp-s

    


    Attachments (please note the completely white image x.png) :

    


    x.png
out-webp-scale.png