Recherche avancée

Médias (91)

Autres articles (42)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

Sur d’autres sites (4627)

  • oggparsevorbis : Support official chapter extension

    13 juillet 2013, par James Almer
    oggparsevorbis : Support official chapter extension
    

    Fixes ticket #1833

    Signed-off-by : James Almer <jamrial@gmail.com>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavformat/oggparsevorbis.c
  • Weird commandline behaviour when running a batch script. Script will only work if another script is being run first [closed]

    31 décembre 2022, par Macster

    TLDR ;
    &#xA;In cmd.exe
    &#xA;makedir.bat only <= Not working
    &#xA;new.bat then makedir.bat <= Working

    &#xA;

    I'm new to batch and noticed a weird behaviour when running a scrip.

    &#xA;

    It basically takes the last entry(Video file path) from a textfile and uses the path inside a ffmpeg command to get the file duration. But it's not working. makedir.bat

    &#xA;

    What I know is that the part which gets the path is working on it's own, and so does the part that gets the duration.

    &#xA;

    Now, if I run a second script, new.bat, which is actually just the part that gets the files duration and outputs the right duration(22 Seconds), before running makedir.bat, suddenly makedir.bat starts working as intended, even though set /a duration=2*3600*60&#x2B;*1 in the output is wrong. But thats only for cmd.exe. It wont work for PowerShell.&#xA;Whats going on ? Is the script faulty or is there some kind of caching in the cmd.exe ?

    &#xA;

    EDIT : Oh, and if I run makedir.bat first and then new.bat, new.bat wont work anymore.

    &#xA;

    makedir.bat

    &#xA;

    ::Get last entry from "mylist.txt"&#xA;for /f "delims=" %%a in (&#x27;type mylist.txt ^| findstr /b /c:"file"&#x27;) do set path=%%a&#xA;&#xA;::Trim path for file name&#xA;set video_path=%path:~32,-1%&#xA;&#xA;echo %video_path%&#xA;&#xA;::Get the video duration&#xA;for /f "tokens=1* delims=:" %%a in (&#x27;ffmpeg -i %video_path% 2^>^&amp;1 ^| findstr "Duration"&#x27;) do set duration=%%b&#xA;&#xA;set duration=%duration:~0,12%&#xA;set /a duration=%duration:~1,2%*3600&#x2B;%duration:~4,2%*60&#x2B;%duration:~7,2%*1&#xA;echo %duration%&#xA;

    &#xA;

    new.bat

    &#xA;

    for /F "tokens=1* delims=:" %%a in (&#x27;ffmpeg -i pipshort1.webm 2^>^&amp;1 ^| findstr "Duration"&#x27;) do set duration=%%b&#xA;set duration=%duration:~0,12%&#xA;set /a duration=%duration:~1,2%*3600&#x2B;%duration:~4,2%*60&#x2B;%duration:~7,2%*1&#xA;

    &#xA;

    Ouput makedir.bat

    &#xA;

    >for /F "delims=" %a in (&#x27;type mylist.txt | findstr /b /c:"file"&#x27;) do set path=%a&#xA;&#xA;>set path=file &#x27;/webapp/stream/videos/pip/transparent_short.webm&#x27;&#xA;&#xA;>set path=file &#x27;/webapp/stream/videos/pip/transparent_short.webm&#x27;&#xA;&#xA;>set path=file &#x27;/webapp/stream/videos/pip/transparent_short.webm&#x27;&#xA;&#xA;>set path=file &#x27;/webapp/stream/videos/pip/pipshort1.webm&#x27;&#xA;&#xA;>set video_path=pipshort1.webm&#xA;&#xA;>echo pipshort1.webm&#xA;pipshort1.webm&#xA;&#xA;>for /F "tokens=1* delims=:" %a in (&#x27;ffmpeg -i pipshort1.webm 2>&amp;1 | findstr "Duration"&#x27;) do set duration=%b&#xA;&#xA;>set duration=~0,12&#xA;&#xA;>set /a duration=0,*3600&#x2B;2*60&#x2B;*1&#xA;Missing operator&#xA;&#xA;>echo 0&#xA;0&#xA;

    &#xA;

    Output new.bat + makedir.bat

    &#xA;

    >new.bat&#xA;&#xA;>for /F "tokens=1* delims=:" %a in (&#x27;ffmpeg -i pipshort1.webm 2>&amp;1 | findstr "Duration"&#x27;) do set duration=%b&#xA;&#xA;>set duration= 00:00:22.02, start: 0.000000, bitrate: 2337 kb/s&#xA;&#xA;>set duration= 00:00:22.02&#xA;&#xA;>set /a duration=00*3600&#x2B;00*60&#x2B;22*1&#xA;&#xA;>echo 22&#xA;22&#xA;&#xA;>makedir.bat&#xA;&#xA;>for /F "delims=" %a in (&#x27;type mylist.txt | findstr /b /c:"file"&#x27;) do set path=%a&#xA;&#xA;>set path=file &#x27;/webapp/stream/videos/pip/transparent_short.webm&#x27;&#xA;&#xA;>set path=file &#x27;/webapp/stream/videos/pip/transparent_short.webm&#x27;&#xA;&#xA;>set path=file &#x27;/webapp/stream/videos/pip/transparent_short.webm&#x27;&#xA;&#xA;>set path=file &#x27;/webapp/stream/videos/pip/pipshort1.webm&#x27;&#xA;&#xA;>set video_path=pipshort1.webm&#xA;&#xA;>echo pipshort1.webm&#xA;pipshort1.webm&#xA;&#xA;>for /F "tokens=1* delims=:" %a in (&#x27;ffmpeg -i pipshort1.webm 2>&amp;1 | findstr "Duration"&#x27;) do set duration=%b&#xA;&#xA;>set duration=22&#xA;&#xA;>set /a duration=2*3600&#x2B;*60&#x2B;*1&#xA;Missing operator&#xA;&#xA;>echo 22&#xA;22&#xA;

    &#xA;

  • avcodec/utils : use a default lock manager that uses a pthread mutex

    17 octobre 2013, par Michael Niedermayer
    avcodec/utils : use a default lock manager that uses a pthread mutex
    

    That makes avformat & avcodec thread safe without the need to explicitly
    register a lock manager.

    Reviewed-by : wm4 <nfxjfg@googlemail.com>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/utils.c