Recherche avancée

Médias (91)

Autres articles (56)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (10123)

  • Adding frames to gifs using FFMPEG

    4 août 2021, par John Smith

    I have the following code

    


    for /f %%i in ('dir /b /a-d %script_id%_tmp_img_*1.png') do (
    ffmpeg -y -v error -i %%i -i %script_id%_tmp_blank_frame.png -filter_complex "overlay" overlayed_%%i
    del %%i
)


    


    It currently Adds a overlay image frame at every 10th frame EX , 1,11,21,31 ect ect anything that ends in *1 any advice how i would change this so instead it adds 8 overlay frames before the gif then 1 after the gif instead ? Any help would be great i am super stuck thanks :)

    


    EDIT Heres the full code

    


    :: Usage composegif.bat <file> [-cut ] [-fps ] [-blank <png file="file">]&#xA;:: The extra frame is a png named "blank_frame_orig.png" or a custom name can be passed as a parameter, &#xA;:: any dimension is ok, it will be resized and overlayed to the original frame&#xA;:: The frame is added as first and every 10 after that, so 1, 11, 21...&#xA;:: If you want to edit that , search "FREQUENCY" in this file and edit the line below&#xA;&#xA;@echo off&#xA;&#xA;setlocal ENABLEDELAYEDEXPANSION&#xA;&#xA;set script_id=%random%&#xA;set max_time=15&#xA;&#xA;if "%1" == "" (&#xA;    echo Select a file to transform&#xA;    exit &#xA;)&#xA;&#xA;if not exist %1 (&#xA;    echo File not found&#xA;    exit&#xA;)&#xA;&#xA;::set params&#xA;&#xA;set input_file=%1&#xA;set framerate=20&#xA;set blank_frame=blank_frame_orig.png&#xA;set cut_sec=%max_time%&#xA;&#xA;:loop&#xA;if not "%2"=="" (&#xA;    if "%2"=="-fps" (&#xA;        set framerate=%3&#xA;        shift&#xA;    )&#xA;    if "%2"=="-cut" (&#xA;        if not "%3"=="" (&#xA;            if "%3" GTR "%max_time%" ( &#xA;                echo Max output is %max_time% seconds&#xA;            ) else ( &#xA;                set cut_sec=%3&#xA;            )&#xA;        ) else (&#xA;            set cut_sec=%max_time%&#xA;        )&#xA;        shift&#xA;    )&#xA;    if "%2"=="-blank" (&#xA;        set blank_frame=%3&#xA;        shift&#xA;    )&#xA;    shift&#xA;    goto :loop&#xA;)&#xA;&#xA;echo Fps set to %framerate%&#xA;echo Cutting gif at %cut_sec% seconds&#xA;&#xA;::extract images&#xA;echo Extracting images&#xA;ffmpeg -v error -i %input_file% -vsync 0 %script_id%_tmp_img_%%03d.png || del %script_id%_tmp_*&#xA;&#xA;::get size from first frame&#xA;for /f %%i in (&#x27;ffprobe.exe -v error -show_entries stream^="width,height" -of csv^=p^=0:s^=\: %script_id%_tmp_img_001.png&#x27;) do (&#xA;    set size=%%i&#xA;)&#xA;&#xA;::resize blank frame&#xA;echo Size is %size%&#xA;ffmpeg -v error -y -i %blank_frame% -vf scale=%size% %script_id%_tmp_blank_frame.png || del %script_id%_tmp_*&#xA;&#xA;::add overlay to frames and removing corresponding ones&#xA;echo Adding overlay to every 10th frame&#xA;:: EDIT THIS TO CHANGE FREQUENCY&#xA;for /f %%i in (&#x27;dir /b /a-d %script_id%_tmp_img_*1.png&#x27;) do (&#xA;    ffmpeg -y -v error -i %%i -i %script_id%_tmp_blank_frame.png -filter_complex "overlay" overlayed_%%i&#xA;    del %%i&#xA;)&#xA;&#xA;::rename overlayed frames&#xA;rename "overlayed_*" "//////////*"&#xA;&#xA;::create gif at &#x27;framerate&#x27; fps&#xA;set finalFileName=%overlayed%_%random%.gif&#xA;echo Creating gif %finalFileName%&#xA;ffmpeg -v error -framerate %framerate% -i %script_id%_tmp_img_%%003d.png -t 00:00:%cut_sec% %finalFileName%  || del %script_id%_tmp_*&#xA;&#xA;&#xA;::delete tmp files&#xA;del %script_id%_tmp_*&#xA;&#xA;echo Done&#xA;</png></file>

    &#xA;

    but this code adds the overlay.png every 10th frame of the gif EX 1,11,21,31,41 ect instead i want it to add 19 of them before the gif then 1 after

    &#xA;

  • avcodec/libavcodec.v : Tighten export whitelist

    14 juin 2021, par Andreas Rheinhardt
    avcodec/libavcodec.v : Tighten export whitelist
    

    Currently every symbol (with external linkage) that starts with "av" is
    exported. Yet libaom-av1 has lots of functions that are not meant to be
    exported and start with "av1_" (I counted 1236) ; and libvpx has
    average_split_mvs. These functions are exported if one links these
    libraries statically into a shared libavcodec.so.

    Solve this by tightening the whitelist to "av_", "avcodec_", "avpriv_"
    and (as a special-case) "avsubtitle_free".

    Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/libavcodec.v
  • Fix linking of microbenchmark program

    23 janvier 2016, par Erik de Castro Lopo
    Fix linking of microbenchmark program
    

    On some setups, benchmark_residual linkage fails with an undefined
    reference to clock_gettime(). Adding -lrt fixes that.

    Patch-from : Ozkan Sezer <sezeroz@gmail.com>

    • [DH] configure.ac
    • [DH] microbench/Makefile.am