Recherche avancée

Médias (3)

Mot : - Tags -/pdf

Autres articles (97)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (8818)

  • FFMPEG Problem with Filter_Complex with Chain Filters

    11 avril 2023, par James

    This script combined three filters into one being drawgrid, drawbox and drawtext. The result had added the text and not added the grid and box.

    


    My script :

    


    Set "BXW=1000"  ::Box width
Set "BXH=1008"  ::Box height

set "TEXT1=360" :: Text lefthand side (no space characters allowed, see next example)
set "TEXT2=180" :: Text bottom and center
set "TEXT3=0" :: Text righthand side
set "TEXT4=0" :: Text top and center


set "COLOR=red" :: Text color
set "SIZE=200" :: Font size
set "POS_X1=0" ::X1 position of text
set "POS_Y1=(h-th)/2" :: Y1 position of text, use (h-th)/2 for centering
set "POS_X2=(w-tw)/2" :: X2 position of text, use (w-tw)/2 for centering
set "POS_Y2=(h-th)" ::Y2 position of text
set "POS_X3=(w-tw)" ::X3 position of text
set "POS_Y3=(h-th)/2" ::Y3 position of text, use (h-th)/2 for centering
set "POS_X4=(w-tw)/2" :: X4 position of text, use (w-tw)/2 for centering
set "POS_Y4=0" ::Y4 position of text



ffmpeg -i %1 -filter_complex   [0:v]"drawgrid=color=red:width=iw/8:height=0:thickness=6,drawgrid=color=blue:width=0:height=ih/12:thickness=6"[grid_s]; [grid_s]"format=rgb24,drawbox=x=((iw/2)-%BXW%/2):y=((ih/2)-%BXH%/2):width=%BXW%:height=%BXH%:thickness=40:color=white"[box_s]; [box_s]drawtext="fontfile='c\:/windows/fonts/arial.ttf':fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT1%:x=%POS_X1%:y=%POS_Y1%",drawtext="fontfile='c\:/windows/fonts/arial.ttf':fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT2%:x=%POS_X2%:y=%POS_Y2%,drawtext="fontfile='c\:/windows/fonts/arial.ttf':fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT3%:x=%POS_X3%:y=%POS_Y3%,drawtext="fontfile='c\:/windows/fonts/arial.ttf':fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT4%:x=%POS_X4%:y=%POS_Y4%"[text_s] -frames 1 -y temptxt.png


ffmpeg -i temptxt.png -vf scale=iw/8:-1 -f nut - | ffplay -


    


  • Multiple backslashes are not shown in Video

    26 février 2019, par Sebastian

    I want wo insert the text \ \ \ \ \ \ ' in a video. I escaped it to this

    -loglevel debug -y -i "in.mp4" -vf "[in] drawtext=fontfile=C\\\:\\\\Windows\\\\Fonts\\\\ariblk.ttf: text=\\\\ \\\\ \\\\ \\\\ \\\\ \\\\ \\\': fontsize=32 [out]" "out.mp4"

    The paths are read correctly, but no backslash is shown in the video. If I double the backslashes to \\ \\ \\ \\ \\ \\ ' I get the result I want with \ \ \ \ \ \ '

    -loglevel debug -y -i "in.mp4" -vf "[in] drawtext=fontfile=C\\\:\\\\Windows\\\\Fonts\\\\ariblk.ttf: text=\\\\\\\\ \\\\\\\\ \\\\\\\\ \\\\\\\\ \\\\\\\\ \\\\\\\\ \\\': fontsize=16 [out]" "out.mp4"

    The example from ffmpeg works.

    Which escape rule do I neglect ?

    Edit :
    Escaping the text to

    text='\\\\ \\\\ \\\\ \\\\ \\\\ \\\\ \\\'': fontsize=32 [out]

    or

    text=\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\ \\\\\': fontsize=32 [out]

    leads to an output of

    \ \ \ \ \ \: fontsize=32 [out]
  • avconv - drawtext - apply filter for given time period

    29 novembre 2015, par user3304297

    I am on Ubuntu 15.10 (wily). I want to add a text to the video for the 1st 30sec. I can add video to the entire length of the video by using the following command

    $ avconv -i input.MTS -metadata title="my video" -vf "drawtext=fontfile=/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-B.ttf:text='My Text':fontcolor=white@0.8:x=7:y=60:fontsize=36" -strict experimental out.mp4

    With ffmpeg there is an option drawtext=enable=between(t,0,30) but with avconv this is not a valid option.

    $ avconv -i 00054.MTS -metadata title="my video" -vf "drawtext=enable='between(t,0,30)':fontfile=/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-B.ttf:text='My Text':fontcolor=white@0.8:x=7:y=60:fontsize=36" -strict experimental out.mp4

    drawtext @ 0x18b8d20] No such option: enable.
    [AVFilterGraph @ 0x18c3000] Error initializing filter 'drawtext' with args 'enable=between(t,0,30):fontfile=/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-B.ttf:text=My Text:fontcolor=white@0.8:x=7:y=60:fontsize=36'

    With avconv how can I add a text to the video for a given time period ?

    $ avconv --version
    avconv version 11.4-6:11.4-2ubuntu3, Copyright (c) 2000-2014 the Libav developers
     built on Aug 11 2015 07:00:13 with gcc 5.2.1 (Ubuntu 5.2.1-15ubuntu1) 20150808