Recherche avancée

Médias (2)

Mot : - Tags -/rotation

Autres articles (107)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Ajout d’utilisateurs manuellement par un administrateur

    12 avril 2011, par

    L’administrateur d’un canal peut à tout moment ajouter un ou plusieurs autres utilisateurs depuis l’espace de configuration du site en choisissant le sous-menu "Gestion des utilisateurs".
    Sur cette page il est possible de :
    1. décider de l’inscription des utilisateurs via deux options : Accepter l’inscription de visiteurs du site public Refuser l’inscription des visiteurs
    2. d’ajouter ou modifier/supprimer un utilisateur
    Dans le second formulaire présent un administrateur peut ajouter, (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (13980)

  • Documentation #4098 (En cours) : Compléter la documentation de #TRI pour générer un lien de tri av...

    28 septembre 2018, par cedric -

    Cela dit je complète et corrige ma réponse, tu peux tout à faire ce que tu veux déjà en mettant le code

    
    [(#TRIid_album, <:medias:par_id :>)]
    [(#TRI|==id_album|oui)
      [(#TRI’>’, <:medias:par_id :>,active)]
      [(#TRI’<’, <:medias:par_id :>,active)]
    ]
    
    


    et en complétant par les directives CSS :

    .lientri strong.on display:none ;
    .lentri a.active font-weight:bold
    

    Du coup quand un lien de choix de tri est cliqué, il se transforme en strong et est masqué et apparaisst alors uniquement le lien de changement de tri pertinent, l’autre étant aussi masqué. Techniquement il y a 3 liens différents mais un seul visible en même temps.

    Donc je ferme le ticket car je pense pas que ça vaille le coup de complexifier le code de la balise :)
    (tu fais une petite documentation avec une démo ?)

  • How to create a rounded background under text using ASS subtitle file ? [closed]

    26 novembre 2023, par Lionel Lakson

    Here is a image example

    &#xA;

    [Script Info]&#xA;Title : Default Aegisub file&#xA;ScriptType : v4.00+&#xA;Collate : UTF-8&#xA;WrapStyle : 0&#xA;ScaledBorderAndShadow : yes&#xA;YCbCr Matrix : None&#xA;PlayResX : 640&#xA;PlayResY : 480

    &#xA;

    [V4+ Styles]&#xA;Format : Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding&#xA;Style : Default,Helvetica,30,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,1,0,0,0,101,104,-5,0,1,1,1,5,10,10,0,1

    &#xA;

    [Events]&#xA;Format : Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text&#xA;Dialogue : 0,0:00:00.00,0:00:02.00,Default,,0,0,0,,\b900 \t(0,200,\fs20,\fs30)This is highlighted text.

    &#xA;

  • when ffpmeg drops frames some things aren't played back in real time

    8 février 2024, par Alex028502

    I am trying to run a bunch of ffpmeg processes that act as simulators for cameras, and something funny is happening when I the processor can't keep up with the configured frame rate.

    &#xA;

    I have replaced the rtsp stream with an output file, and managed to reproduce the issue, so will just show that to keep it simple.

    &#xA;

    First here is a makefile that creates my source movie :

    &#xA;

    clock.mp4: Makefile&#xA;    rm -f $@&#xA;    ffmpeg -f lavfi -i color=c=black:s=4096x2160:r=25 -vf \&#xA;"drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf:fontsize=72:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2: \&#xA;text=&#x27;%{eif\:trunc(n/25)\:d}&#x27;:start_number=0:rate=25" \&#xA;-t 60 -r 25 $@&#xA;

    &#xA;

    that gives me a one minute long movie that prints the second number to the screen. I have tested it out and the seconds are close enough. I put a lot of pixels to make it easier to jam up my CPU.

    &#xA;

    Here is the script that creates a processes similar to the one I am trying to debug (called experiment.sh)

    &#xA;

    I am actually using H.264, but H.265 is easier to overwhelm the processor with

    &#xA;

    #! /usr/bin/env bash&#xA;&#xA;set -e&#xA;&#xA;echo starting > message$1.txt&#xA;&#xA;rm -f superclock$1.mp4&#xA;ffmpeg -re -stream_loop -1 -i clock.mp4 \&#xA;       -an -vcodec libx265 -preset ultrafast -sc_threshold -1 -x265-params repeat-headers=1 \&#xA;       -vf "drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf:fontsize=24:fontcolor=white:x=10:y=10:text=&#x27;%{localtime\:%X}&#x27;, \&#xA;            drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf:fontsize=24:fontcolor=white:x=10:y=(h-text_h-10):textfile=message$1.txt:reload=1, \&#xA;            scale=1920x1080,fps=25" \&#xA;       -b:v 3M -minrate 3M -maxrate 3M \&#xA;       -bufsize 6M -g 25 superclock$1.mp4 &amp;&#xA;pid=$!&#xA;&#xA;for x in $(seq 0 10)&#xA;do&#xA;    echo $x > message$1.txt&#xA;    sleep 10&#xA;done&#xA;&#xA;kill -INT $pid || true&#xA;

    &#xA;

    It should

    &#xA;

      &#xA;
    • put the second in the middle of the screen - 'cause it gets it from the source video
    • &#xA;

    • put the approximate sixth of minute in the lower left corner&#xA;(only approximate because of the sleep but close enough)
    • &#xA;

    • put the the wall clock time in the upper left corner
    • &#xA;

    &#xA;

    and it works

    &#xA;

    make clock.mpg&#xA;./experiment.sh 0&#xA;vlc superclock0.mp4&#xA;

    &#xA;

    shows something like this&#xA;working video

    &#xA;

    Now here is the interesting part

    &#xA;

    If I run the script in four different terminals at the same time

    &#xA;

    ./experiment.sh 1&#xA;./experiment.sh 2&#xA;./experiment.sh 3&#xA;./experiment.sh 4&#xA;

    &#xA;

    It can't keep up with the frame rate, and I see this in the output :

    &#xA;

    frame= 1515 fps= 16 q=0.0 size=     768kB time=00:00:59.96 bitrate= 104.9k&#xA;

    &#xA;

    I was hoping the end result would all look ok when I watch it except with fewer frames, but the timestamps of the frames would make it all work as expected

    &#xA;

    However...

    &#xA;

      &#xA;
    • The time in the middle, that is inherited from the source video, the seconds in the middle of the screen, stays in sync with VLC's clock.
    • &#xA;

    • the wall clock in the upper left seems play at 150% speed
    • &#xA;

    • the every ten seconds incrementor in the lower left seems to increment every 7 seconds
    • &#xA;

    • the video is only 1:25 long even though it was recording for at least 1:40 according to sleeps
    • &#xA;

    • the wall clock in the upper right hand corner makes it more than 1'40" and then counter in the lower left makes it to 10.
    • &#xA;

    &#xA;

    30 seconds in

    &#xA;

    Here are four states to compare

    &#xA;

    |                  | Start    | 30" in   | end      |&#xA;|------------------&#x2B;----------&#x2B;----------|----------|&#xA;| Video Time       | 00:00    | 00:30    | 01:24    |&#xA;| Wall Clock Time  | 15:05:50 | 15:06:39 | 15:07:39 |&#xA;| sixth of minute  | 0        | 4        | 10       |&#xA;| seconds counter  | 0        | 30       | 24       |&#xA;

    &#xA;

    end of the movie

    &#xA;

    So you can see the vlc clock keeps pace with the original clock from the source movie.. even when it is only able to produce frames at 2/3 of the rate. However, the it is taking 50% long to get through the whole source movie I guess ?

    &#xA;

    I am having trouble coming up with a theory that can explain exactly how this happens.

    &#xA;

    Does anybody know how I can "correct" this ? (make it so that the movie is played at the same rate that it is recorded)

    &#xA;

    I am thinking of using a lower frame rate and size as the input video.. but it would be nice to have something that will always work as expected, just with a lower frame rate, no matter how busy the processor is.

    &#xA;