Recherche avancée

Médias (1)

Mot : - Tags -/3GS

Autres articles (111)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

Sur d’autres sites (10463)

  • Evolution #4063 : Position de la prévisualisation

    21 décembre 2017, par RastaPopoulos ♥

    Il y avait malgré tout une logique. La prévisualisation contient aussi un bouton de validation final qui valide ce qu’on vient de relire, tandis que le formulaire permet de continuer de modifier et son bouton relance la prévisualisation. Donc il y a un ordre. Ce n’est pas du tout pareil que sur redmine ou github etc où la prévisu est dûe à un autre lien ou bouton différent, qu’on lance à part.

    Là une fois qu’on a validé la première fois, on a dans l’ordre la relecture de ce qu’on vient de poster, puis la validation finale, puis SI BESOIN de nouveau le formulaire pour re-modifier finalement. Mais ça vient après la relecture et la validation finale : c’est logique. Car le formulaire, le fait de re-modifier est optionnel : c’est bien la prévisu et son bouton de validation final qui est l’action principale. Action principale = en premier !

    (Par ailleurs, graphiquement, quand il s’agit d’une réponse à un commentaire déjà là, très souvent la prévisu est affichée avec vraiment les mêmes styles qu’une vraie réponse, et comme elle était en premier, elle s’affiche vraiment "sous" la réponse à laquelle on venait de répondre, ce qui augmentait l’aspect prévisu en situation réelle. Là avec le formulaire avant, ça casse cet aspect.)

  • FFMPEG -filter_complex drawtext with style like bold italic and underline

    6 janvier 2019, par Mubbashar

    I am trying to add text on padded area of my video. There are 4 to 5 things that i am not able to do

    • 1) Draw text styling (bold, italic, underline)
    • 2) Padded area opacity
    • 3) Subtitle vertical alignment. When i give some value to VAlign it
      sometimes goes out of the window. how to calculate correctly like
      50px from top or let say 200px from bottom
    • 4) The subtitle should be full width to video. Right now it is like
      this. enter image description here
    • 5) Having a hard time providing OutlineColour value. I have RGBA
      value so how i can give it to OutlineColour

    Here is command i am using

    ffmpeg -y -i video-orignal.mp4 -i logo.png -filter_complex "[0] pad=width=iw:height=ih+200:x=0:y=100:color=#f2e6e6@0.99 [v_1];[v_1] drawtext=fontfile='/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf':text='this is watermark': fontsize=24: x=0.23333333333333*main_w: y=0.1325*main_h: fontcolor=#b01e1e: alpha=1,drawtext=fontfile='/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf':text='This is Top fixed text': fontsize=32: x=w-tw-2: y=(100-th)/2: fontcolor=#9e2643: alpha=1,drawtext=fontfile='/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf':text='This is Bottom fixed text': fontsize=32: x=w-tw-2: y=h-50: fontcolor=#9e2643: alpha=1 [v_2];[v_2] subtitles=f=subtitles-final.srt:force_style='FontName=DejaVu Sans Mono,FontSize=26,OutlineColour=&H00f2eded,PrimaryColour=&H000bf282,BorderStyle=3,WrapStyle=3,Bold=1,italic=1,Underline=1,Alignment=3,MarginV=86.4' [v_3];[v_3] [1]overlay=main_w-140:105 [v_4]" -map "[v_4]" -map 0:a video-final.mp4

    Split into lines and indented to make it readable :

    ffmpeg -y
    -i video-orignal.mp4
    -i logo.png
    -filter_complex
       "[0] pad=width=iw:height=ih+200:x=0:y=100:color=#f2e6e6@0.99 [v_1];
       [v_1]
           drawtext=
               fontfile='/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf':
               text='this is watermark': fontsize=24:
               x=0.23333333333333*main_w: y=0.1325*main_h:
               fontcolor=#b01e1e: alpha=1,
           drawtext=
               fontfile='/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf':
               text='This is Top fixed text': fontsize=32:
               x=w-tw-2: y=(100-th)/2: fontcolor=#9e2643: alpha=1,
           drawtext=
               fontfile='/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf':
               text='This is Bottom fixed text': fontsize=32:
               x=w-tw-2: y=h-50: fontcolor=#9e2643: alpha=1
       [v_2];
       [v_2]
           subtitles=
               f=subtitles-final.srt:
               force_style=
                   'FontName=DejaVu Sans Mono,
                   FontSize=26,
                   OutlineColour=&H00f2eded,
                   PrimaryColour=&H000bf282,
                   BorderStyle=3,WrapStyle=3,Bold=1,italic=1,Underline=1,
                   Alignment=3,MarginV=86.4'
       [v_3];
       [v_3] [1]overlay=main_w-140:105 [v_4]"
    -map "[v_4]"
    -map 0:a
    video-final.mp4
  • Android Java (ffmpeg-kit). Assistance(opinion) with combining 4 ffmpeg commands together

    26 novembre 2022, par D-MAN

    I have the following 4 ffmpeg commands. 1. adds a png frame(border) over the entire length of the video. 2. creates a boomerang effect. 3. adds an outro jpeg to the last 2 seconds of the video. 4. Adds an intro jpeg to the first 2 seconds of the video.(these commands work individually)

    


    My aim is to combine all of these individual commands into one command to create a complete edited video. The final video needs all these elements in one final edited video.

    


    Your assistance is greatly appreciated.

    


    /**
 *

 * (Middle overlay filter) String exe = "-i " + input_video_uri + " -framerate 60 -i " + frame + " -filter_complex [0]pad="+mVideoWidth+":"+mVideoHeight+":576:0[vid];[vid][1]overlay -c:a copy -vcodec mpeg4 -crf 0 -preset ultrafast -qscale 0 " + file2.getAbsolutePath();

 * (Boomerang effect) String exe = "-y -i " + input_video_uri + " -filter_complex [0]reverse[r];[0][r][0]concat=n=3,setpts=0.5*PTS " + file2.getAbsolutePath();

 * (Put image at end of video) String exe = "-i "+ input_video_uri +" -i "+ frame +" -filter_complex \"[0:v][1:v] overlay=0:0:enable='between(t,"+ (msec - 2 ) + ","+ msec+")'\" -pix_fmt yuv420p -c:a copy " + file2.getAbsolutePath();

 * (Put image at start of video) String exe = "-i "+ input_video_uri +" -i "+ frame +" -filter_complex \"[0:v][1:v] overlay=0:0:enable='between(t,0,2)'\" -pix_fmt yuv420p -c:a copy " + file2.getAbsolutePath();

 * */


    


    Being new to ffmpeg, I am limited in knowledge. However, I have tried '&&' which produced an unrecognized error from the ffmpeg library.