Recherche avancée

Médias (91)

Autres articles (98)

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

  • 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

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

  • ffmpeg - convert background to black ? [closed]

    22 juin 2022, par david furst

    the basic problem
    
convert all pixels in all frames of a source video to black if they have a white value below a certain threshold and output the results as a series of static images with no transparency.

    


    my solution so far
    
i am able to do this with a two-step process :

    


      

    1. convert pixels below the threshold to transparent using ffmpeg's colorkey filtre, outputting a series as PNG.
    2. 


    3. use imagemagick to convert the PNG to JPEG.
    4. 


    


    this approach is very slow. ideally i'd like to do everything in one go, within ffmpeg.

    


    the reason i haven't been able to do that so far is that the resulting transparency isn't discarded (as i'd hoped) when outputting to non-transparent formats like JPG, even if i try to 'discard' the alpha layer beforehand using combinations of split and lutrgb ; the resulting JPEGs still resemble the original images.

    


    my current filter chain :

    


    ffmpeg -hide_banner -y -i input.mp4 -f lavfi -i color=c=white \
    -filter_complex "[0:v]format=gray[src];
        [1][src]scale2ref[white][vid];
        [vid][white]blend=all_mode=multiply:shortest=1,colorkey=black:0.95" %05d.png