Recherche avancée

Médias (0)

Mot : - Tags -/navigation

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

Autres articles (78)

  • 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.

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • 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é.

Sur d’autres sites (7784)

  • libx264 not found FFmpeg ?

    23 avril 2020, par pabolo12

    I am trying to make a build of ffmpeg with libx264 enabled. However when I run the following command in MSYS

    



    ./configure --prefix=ffmpeg/ --enable-gpl --enable-libx264


    



    I get an error saying

    



    ERROR: libx264 not found


    



    I am using MSYS on windows 10. I also have installed NASM. Here is the config.log file

    



    BEGIN /tmp/ffconf.TRVJWfGe/test.c
    1   #include 
    2   #include 
    3   #include 
    4   long check_x264_encoder_encode(void) { return (long) x264_encoder_encode; }
    5   int main(void) { int ret = 0;
    6    ret |= ((intptr_t)check_x264_encoder_encode) & 0xFFFF;
    7   return ret; }
END /tmp/ffconf.TRVJWfGe/test.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO=1 -D__MSVCRT_VERSION__=0x0700 -D_WIN32_WINNT=0x0600 -D__printf__=__gnu_printf__ -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -std=c11 -fomit-frame-pointer -c -o /tmp/ffconf.TRVJWfGe/test.o /tmp/ffconf.TRVJWfGe/test.c
In file included from c:\mingw\include\stdint.h:46,
                 from c:\mingw\lib\gcc\mingw32\9.2.0\include\stdint.h:9,
                 from C:/Users/pawel/AppData/Local/Temp/ffconf.TRVJWfGe/test.c:1:
c:\mingw\include\_mingw.h:413:3: warning: #warning "Direct definition of __USE_MINGW_ANSI_STDIO is deprecated." [-Wcpp]
  413 | # warning "Direct definition of __USE_MINGW_ANSI_STDIO is deprecated."
      |   ^~~~~~~
c:\mingw\include\_mingw.h:414:10: note: #pragma message: See <_mingw.h> for preferred feature activation methods.
  414 | # pragma message "See <_mingw.h> for preferred feature activation methods."
      |          ^~~~~~~
C:/Users/pawel/AppData/Local/Temp/ffconf.TRVJWfGe/test.c:2:10: fatal error: x264.h: No such file or directory
    2 | #include 
      |          ^~~~~~~~
compilation terminated.
ERROR: libx264 not found


    



    Could you tell me how to fix the error, or is there a prebuilt package with libx264 already inside ?

    


  • ffmpeg scrolling filter, how not to have a -t parameter ?

    22 avril 2020, par Julien FEGER

    Hello everyone and thanks for reading ! I'm trying to create a video workflow for automating video editing from a .jpg.

    



    I'm using the ffmpeg scroll filter but having quite the difficulties with it.

    



    const encodeVideo = (path, video) => {
const p = new Promise((resolve, reject) => {
    Jimp.read(`${path}/${video.name}`).then((image) => {
        image.resize(1280, Jimp.AUTO)
        image.write(`${path}/${video.name}`)
        clipDuration = Math.ceil(image.bitmap.height * 0.0135); //not working well...
        const ffmpeg = spawn('ffmpeg', ['-loop', '1', '-i', `${path}/${video.name}`, '-vf', `scroll=vertical=0.001,crop=1280:720:0:0,format=yuv420p,fps=70,fade=type=in:duration=1,fade=type=out:duration=1:start_time=${clipDuration - 1}`, '-t', `${clipDuration}`, `./${path}/${video.name}.mp4`]);
        ffmpeg.stderr.on('data', (data) => {
            // console.log(`${data}`);
        });
        ffmpeg.on('close', (code) => {
            resolve();
        });
    }).catch((err) => console.log(err))
});
return p;


    



    }

    



    Here is my encodeVideo function. It creates a scrolling video of length : clipDuration, with a fade in/fade out effect.

    



    My questions are the following :

    



      

    • How can i bypass the clipDuration property so that only the scrollspeed and image.bitmap.height determine the clip duration ? Currently if clipDuration is too long, once scrolling is done it loops to the beginning. If clipDuration is too short, it doesn't go to end of image. I want it to stop when scrolling has reached the bottom of image.

    • 


    • How can i add a 1sec pause at the beginning and the end of the clip ?

    • 


    



    Thanks for your time and inputs !

    


  • Restart environment and script during batch script

    7 décembre 2024, par ninbura

    I've built a few FFmpeg powershell scripts for me and a few others to use and I'm attempting to make the setup and update process as easy as possible. The end goal is to be able to run 1 batch file that installs Chocolatey, FFmpeg, git, clones the github repo (for updates), and edits the Windows registry to add the actual FFmpeg powershell scripts / console programs to the Windows Explorer contextual menu. This way I just pass them the folder containing everything once and any time I change or add something to the project I can just tell them to run the batch file again, and presto everything is up to date.

    



    However I'm struggling to find a way to install Chocolatey, then git with Chocolatey, and then run a git command with the execution of a single .bat file. From what I can tell after installing Chocolatey I need to restart the shell entirely before I can install git, and then I have to restart the shell again before I can use a git command. As of right now most of the actual processing is happening via Powershell scripts that are launched from the .bat file, and as each step is taken I update a txt file, attempt to restart the batch script, and read the txt file to pick up where I left off :

    



    @echo off
echo Administrative permissions required. Detecting permissions...
echo.

net session >nul 2>&1
if %errorLevel% == 0 (
    echo Success: Administrative permissions confirmed.
    echo.
) else (
    echo Failure: Current permissions inadequate.

    PAUSE

    exit
)

set relativePath=%~dp0
set relativePath=%relativePath:~0,-1%

PowerShell -NoProfile -ExecutionPolicy Bypass -File "%relativePath%\Setup\CheckRequiredPackages.ps1" -relativePath "%relativePath%"

set /p step=<"%relativePath%\Setup\Step.txt"

if %step% == 1 (
    (echo 2) > "%relativePath%\Setup\Step.txt"

    PowerShell -NoProfile -ExecutionPolicy Bypass -File "%relativePath%\Setup\GetChocolatey.ps1"

    start "" "%relativePath%\RunMe.bat"

    exit
) 

if %step% == 2 (
    (echo 3) > "%relativePath%\Setup\Step.txt"

    PowerShell -NoProfile -ExecutionPolicy Bypass -File "%relativePath%\Setup\GetRequiredPackages.ps1"

    start "" "%relativePath%\RunMe.bat"

    exit
) 

if %step% == 3 (
    (echo 0) > "%relativePath%\Setup\Step.txt"

    PowerShell -NoProfile -ExecutionPolicy Bypass -File "%relativePath%\Setup\Update.ps1" -relativePath "%relativePath%"
) 

PAUSE
Exit


    



    The problem is using the start command in the batch script doesn't seem to work, I'm guessing since that new process is spawned from the same process that handles the Chocolatey install it doesn't count as actually restarting the shell. Is there any way to actually restart the shell and somehow have the batch file start back up without user intervention ?