Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (55)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

  • 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 (5427)

  • avcodec/smvjpegdec : check that frames_per_jpeg cleanly divides height

    7 juin 2013, par Michael Niedermayer
    avcodec/smvjpegdec : check that frames_per_jpeg cleanly divides height
    

    Fixes out of array access

    If some valid files fail this check then please open a ticket and ping me and the smvjpegdec maintainer.

    Found-by : Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/smvjpegdec.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;

  • MAINTAINERS : some random updating

    14 août 2024, par Michael Niedermayer
    MAINTAINERS : some random updating
    

    Adding level to some of my entries
    Adding level to some random entries of other people who i have seen actively maintaining their code
    removing some people who have not been active where others where active

    For most we will need to contact people and ask if they are still available as maintainers
    (but for cases where patches are ignored for many months even with pings sent to the maintainer
    entries should be set to unmaintained)

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] MAINTAINERS