Recherche avancée

Médias (0)

Mot : - Tags -/publication

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

Autres articles (67)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (6957)

  • Anomalie #4189 (Nouveau) : extraire_multi mélange un /li /ul final avec le de langue ajouté...

    5 octobre 2018, par jluc -

    Quand la langue de la chaîne n’est pas la langue désirée,
    extraire_multi appelle code_echappement qui insère

    au début, ok,
    mais qui colle aussi un

    immédiatement à la fin.

    En général c’est OK, mais pas quand la dernière ligne du texte est le dernier item d’une énumération,
    car alors ce ajouté est pris comme partie prenante de cette dernière ligne par l’appel suivant à propre,
    et le HTML qui sort de ce |propre sera mal emboité car il finira par au lieu de

    Cf #4187

    Dans le cas où le texte se termine par une liste, il faut insérer \n\n pour s’assurer que le /div ajouté par code_echappement reste en dehors de la liste.

    Cf simulation avec https://zone.spip.net/trac/spip-zone/changeset/111853/spip-zone

    Et pour corriger, dans le corps de extraire_multi (https://core.spip.net/projects/spip/repository/entry/spip/ecrire/inc/filtres.php#L1595 ),
    il faut insérer 2 fins de lignes quand ça se termine par /ul,
    entre les 2 lignes suivantes :

    1. <span class="CodeRay">    <span class="local-variable">$mode</span> = <span class="predefined">preg_match</span>(<span class="string"><span class="delimiter">'</span><span class="content">,span><span class="delimiter">'</span></span> . _BALISES_BLOCS . <span class="string"><span class="delimiter">'</span><span class="content">)[>[:space:]],iS</span><span class="delimiter">'</span></span>, <span class="local-variable">$trad_propre</span>) ? <span class="string"><span class="delimiter">'</span><span class="content">div</span><span class="delimiter">'</span></span> : <span class="string"><span class="delimiter">'</span><span class="content">span</span><span class="delimiter">'</span></span>;
    2.     <span class="local-variable">$trad</span> = code_echappement(<span class="local-variable">$trad</span>, <span class="string"><span class="delimiter">'</span><span class="content">multi</span><span class="delimiter">'</span></span>, <span class="predefined-constant">false</span>, <span class="local-variable">$mode</span>);
    3. </span></span>

    Télécharger

    Ce qui donne :

    1. <span class="CodeRay">    <span class="local-variable">$mode</span> = <span class="predefined">preg_match</span>(<span class="string"><span class="delimiter">'</span><span class="content">,span><span class="delimiter">'</span></span> . _BALISES_BLOCS . <span class="string"><span class="delimiter">'</span><span class="content">)[>[:space:]],iS</span><span class="delimiter">'</span></span>, <span class="local-variable">$trad_propre</span>) ? <span class="string"><span class="delimiter">'</span><span class="content">div</span><span class="delimiter">'</span></span> : <span class="string"><span class="delimiter">'</span><span class="content">span</span><span class="delimiter">'</span></span>;
    2.     <span class="keyword">if</span> (<span class="local-variable">$mode</span>==<span class="string"><span class="delimiter">'</span><span class="content">div</span><span class="delimiter">'</span></span> <span class="keyword">and</span> (<span class="predefined">substr</span>(<span class="predefined">rtrim</span>(<span class="local-variable">$trad_propre</span>), -<span class="integer">5</span>)==<span class="string"><span class="delimiter">'</span><span class="content"></span><span class="delimiter">'</span></span>)
    3.         <span class="local-variable">$trad</span> .= <span class="string"><span class="delimiter">"</span><span class="char">\n</span><span class="char">\n</span><span class="delimiter">"</span></span>;
    4.     <span class="local-variable">$trad</span> = code_echappement(<span class="local-variable">$trad</span>, <span class="string"><span class="delimiter">'</span><span class="content">multi</span><span class="delimiter">'</span></span>, <span class="predefined-constant">false</span>, <span class="local-variable">$mode</span>);
    5. </span></span>

    Télécharger

  • Live stream PowerPoint + Video - ffmpeg ? [on hold]

    21 novembre 2016, par Mango

    I’m in the unenviable position of needing to live stream a seminar with one video camera and PowerPoint. We need to switch between the video and PowerPoint at arbitrary times. The switch need not be fancy like a dissolve, and in fact it can take up to three seconds. The audio however must remain uninterrupted and must be synced with both video streams.

    I had the idea of creating a batch file with two ffmpeg commands : one that captured the desktop, and one that captured video from the camera. ffmpeg pushes the video to a local UDP port. Then, it loops.

    A separate ffmpeg process receives the local stream and pushes it to an RTMP server. All I have to do to switch video sources is kill the first ffmpeg.

    This works for video, but I haven’t figured out how to get the audio to sync.

    I’m aware of expensive video production software that provides this sort of thing as a service, but I thought I would see if I could do it open source if possible.

    Any suggestions would be appreciated.

  • automatically run script recording video at interval using command line and ffmpg

    29 décembre 2014, par arrie

    I’m really a beginner noob newbie command line noob. But. I’m trying to create a script that automatically starts my isight camera when turning on my mac laptop. It should create clips of about 5 seconds at an interval of 5 hours or so. (These numbers I can change of course later on if I have the basis for my script).

    So what I in fact need is (i think) a launch script, that launches a video recording script.

    Right now I’m as far as my video recording script, which is not finished : camera.sh

    #!/bin/bash

    FNAME=videocapture_`date +"%F_%H_%M"`.mpg
    echo $FNAME

    ffmpeg -f -t "0.20avfoundation -i "" $FNAME

    This in fact records a video when I play the script in the command line, until I tell it to quit. These videos are then named according to the date etc. But of course I want it to automatically record videos, in an already determined duration. And I just can’t seem to figure out how to make it happen. I come back to different kind of scripts using isight capture, which in fact doesn’t seem to exist anymore, and even so, I would like to stay with my own basis script just because I understand it haha.

    Hopefully someone here can help me figure this out ! Much appreciated :) Thanks !