Recherche avancée

Médias (0)

Mot : - Tags -/médias

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (86)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (12383)

  • ffmpeg video aspect ratio for new Instagram API

    3 juillet 2019, par reinierkors

    For the new Instagram API videos that are uploaded need to be :

    • Between 4:5 and 16:9 (aspect ratio range)
    • Between 0.8 and 1.78 (numeric aspect ratio range)

    So, for example, an aspect ratio written as 4:5 has a value of 4/5 = 0.8.

    Any aspect ratio within is fine. How could I make it so that ffmpeg checks if it’s between those ratios and if not, rescales it (using some kind of padding).

    I’ve tried :

    ffmpeg -i video.mp4 -c copy -bsf:v h264_metadata=sample_aspect_ratio=0.8 video2.mp4

    This does not seem to be doing anything.

    ffmpeg -i video.mp4 -vf "scale=w=640:h=640:force_original_aspect_ratio=decrease,pad=w=640:h=640:x=(iw-ow)/2:y=(ih-oh/2):color=white" video2.mp4

    This only scales to 640x640 and adds white padding.

    Any ideas ? Thanks !

  • FFmpeg : Reuse value of a filter parameter for another one

    23 mars 2023, par Raphaël Goisque

    I have this command which draws a text ('First line Second line') on two different lines. Each text has a box drawn around it but they are not the same dimension as the size of the texts differs.

    


    As I want a unique box englobing the two lines, I thought of using the drawbox filter. The problem is that I need to know the values of the x parameter of the drawtext filters (i.e x=(main_w-text_w)/2) in order to set the x of the drawbox filter accordingly... but these value uses the variable text_w which is obviously not available from the drawbox filter.

    


    So does someone know if we can access the value of a parameter previously set ; or maybe create custom variables that we could reuse elsewhere in the command ?

    


    ffmpeg -y -i video.mp4 -vf /
"drawtext=box=1:boxcolor=white:fontcolor=black: /
text='First line':fontsize=55: /
x=(main_w-text_w)/2:y=main_h*1/6, /
drawtext=box=1:boxcolor=white:fontcolor=black: /
text='Second line':fontsize=55: /
x=(main_w-text_w)/2:y=main_h*1/6+57, /
drawbox=color=white" title.mp4


    


  • ffmpeg add overlay image to command with already drawtext

    29 octobre 2020, par fedep11

    I have two ffmpeg commands I would like to add an overlay image to both :

    


    ffmpeg -i "video.mp4" -filter_complex "drawtext=textfile=sub.txt:fontfile=SourceSansPro-Bold.ttf:fontcolor=white:fontsize=100: box=1: boxcolor=black@0.5: boxborderw=5: x=200:y=h-th-200:enable='between(t,1,9)',fade=t=in:start_time=1:d=1:alpha=1,fade=t=out:start_time=8:d=1:alpha=1[fg];[0][fg]overlay=format=auto,format=yuv420p" -an -vcodec libx264 -r 25 -crf 17 -aspect 16/9 out.mp4

ffmpeg -i "video.mp4" -filter_complex "color=black@0:100x100,format=yuva444p[c]; [c][0]scale2ref[ct][mv0];[ct]setsar=1,split=4[t1][t2][t3][t4];[t1]drawtext=textfile=1.txt:fontfile=SourceSansPro-Bold.ttf:fontsize=100:fontcolor=white: box=1: boxcolor=black@0.5: boxborderw=5: x=200:y=h-th-200,fade=t=in:st=1:d=1:alpha=1,fade=t=out:st=7:d=1:alpha=1[txta1];[t2]drawtext=textfile=2.txt:fontfile=SourceSansPro-Bold.ttf:fontsize=100:fontcolor=white: box=1: boxcolor=black@0.5: boxborderw=5: x=200:y=h-th-200,fade=t=in:st=9:d=1:alpha=1,fade=t=out:st=15:d=1:alpha=1[txta2];[t3]drawtext=textfile=3.txt:fontfile=SourceSansPro-Bold.ttf:fontsize=100:fontcolor=white: box=1: boxcolor=black@0.5: boxborderw=5: x=200:y=h-th-200,fade=t=in:st=17:d=1:alpha=1,fade=t=out:st=24:d=1:alpha=1[txta3];[t4]drawtext=textfile=4.txt:fontfile=SourceSansPro-Bold.ttf:fontsize=100:fontcolor=white: box=1: boxcolor=black@0.5: boxborderw=5: x=200:y=h-th-200,fade=t=in:st=26:d=1:alpha=1,fade=t=out:st=28:d=1:alpha=1[txta4];[mv0][txta1]overlay=x='0':y='0':shortest=1[mv1];[mv1][txta2]overlay=x='0':y='0':shortest=1[mv2];[mv2][txta3]overlay=x='0':y='0':shortest=1[mv3];[mv3][txta4]overlay=x='0':y='0':shortest=1" -an -vcodec libx264 -r 25 -crf 17 -aspect 16/9 out.mp4