Recherche avancée

Médias (0)

Mot : - Tags -/diogene

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

Autres articles (82)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (6937)

  • Calling FFmpeg from C# hangs the Process

    18 octobre 2019, par Green Train

    I’m trying to run ffmpeg command in C# :

    processTrim = new Process();
    processTrim.StartInfo.FileName = $"{WorkingDirectory}/ffmpeg.exe";

    processTrim.StartInfo.WorkingDirectory = WorkingDirectory;
    processTrim.StartInfo.Arguments = string.Format(@"-i ""{0}"" -ss 1 -i ""{0}"" -c copy -map 1:0 -map 0 -shortest -f nut - | ffmpeg -f nut -i - -map 0 -map -0:0 -c copy ""{1}""", $"input.mp4", $"trimmed.mp4");

    processTrim.StartInfo.CreateNoWindow = false;
    processTrim.StartInfo.UseShellExecute = false;
    processTrim.EnableRaisingEvents = true;

    processTrim.Start();

    processTrim.WaitForExit(3000); // hangs here

    processTrim.Close();

    However, the process hangs at WaitForExit. This is the output from the process window (doesn’t go beyond handler_name) :

    enter image description here

    When I run the command in Windows command prompt it works, why wouldn’t it work in C# Process ?

  • How to convert image to video using fluent-ffmpeg in NodeJS

    2 juillet 2022, par MjM

    I would like to create a video using fluent-ffmpeg in NodeJS. My objective is to create a video using one image. And what I have done so far is the following :

    



    var express = require('express')
var router = express.Router()

const ffmpeg = require('fluent-ffmpeg');

router.get('/test', function (req, res) {
    // make sure you set the correct path to your video file
    var proc = ffmpeg('http://localhost:3000/images/image.jpg')

        // loop for 5 seconds
        .loop(5)
        // using 25 fps
        .fps(25)
        // setup event handlers
        .on('end', function () {
            console.log('file has been converted succesfully');
        })
        .on('error', function (err) {
            console.log('an error happened: ' + err.message);
            console.log(' error code is : ' + err.code);
        })
        // save to file
        .save('http://localhost:3000/video/image-cdo.mp4');
})

module.exports = router;


    



    When I run this I have been getting the following result with an error :

    



    GET /mixer/ 200 6.364 ms - 13
GET /images/image.jpg 206 3.355 ms - 311484
GET /images/image.jpg 206 4.041 ms - 311484
GET /images/image.jpg 206 3.509 ms - 311484
GET /images/image.jpg 206 1.225 ms - 311484
GET /images/image.jpg 206 0.742 ms - 311484
GET /images/image.jpg 206 0.655 ms - 311484
GET /images/image.jpg 206 0.695 ms - 311484
GET /images/image.jpg 206 0.691 ms - 311484
GET /images/image.jpg 206 0.676 ms - 311484
GET /images/image.jpg 206 0.648 ms - 311484
GET /images/image.jpg 206 0.663 ms - 311484
GET /images/image.jpg 206 0.886 ms - 311484
GET /images/image.jpg 206 0.598 ms - 311484
GET /images/image.jpg 206 0.532 ms - 311484
GET /images/image.jpg 206 0.547 ms - 311484
GET /images/image.jpg 206 0.630 ms - 311484
GET /images/image.jpg 206 0.560 ms - 311484
GET /images/image.jpg 206 0.536 ms - 311484
POST /video/image-cdo.mp4 404 30.270 ms - 1212


    



    


    an error happened : ffmpeg exited with code 1 : Could not write header
 for output file #0 (incorrect codec parameters ?) : Invalid argument
 Error initializing output stream 0:0 — 
 Conversion failed !

    



     error code is : undefined


    


    



    Can anyone help me out :)

    



    "dependencies": {
    "fluent-ffmpeg": "^2.1.2",
  }


    



    And NodeJS v12.13.0

    


  • I need the script to work on all dav files

    4 décembre 2019, par audicom

    Script should run in recursive mode, find DAV files and start DAV to JPG conversions using FFMPEG. The script is working, identifying files in folders and starting conversions when DAV files exist, but is ignoring some DAV files.
    When I put these DAV files back in the folder it converts correctly.
    What could be wrong ?
    I thought it might be the speed of the process, since the files are being generated in the folder, the script must wait for the file to be closed and complete to act. I tried to delay the conversion process by 15 seconds using a PING, but it still skips some files.

    cd E:\VM01\1002
    MD "E:\COLETA SNAPSHOT\SNAPSHOT 1002"
    MD  "E:\COLETA SNAPSHOT\PROCESSED 1002"

    :LOOP01  
    PING 1.1.1.1 -n 10 -w 6000 >NUL    
    For /R %%G in (*.Dav) do IF NOT EXIST "%%G" GOTO SKIP01

    :LOOP02
    PING 1.1.1.1 -n 10 -w 6000 >NUL    
    For /R %%G in (*.Dav) do IF EXIST "%%G" GOTO SKIP02
    REM ALL THIS WILL BE DONE IF THE DAV FILE EXISTS
    :
    :
    :SKIP01
    REM 6 SECONDS OF DELAY ...
    PING 1.1.1.1 -n 10 -w 6000 >NUL
    GOTO LOOP01
    :
    :
    :SKIP02
    REM START CONVERSION
    PING 1.1.1.1  -n 10 -w 15000 >NUL
    For /R %%G in (*.Dav) do IF EXIST "%%G" ffmpeg -i "%%G" -r 0.2 -bt 20M -s 480x300 "%%~nG"%%06d.jpg
    for /r %%G in (*.Dav) do Move "%%G" "E:\COLETA SNAPSHOT\PROCESSED 1002"
    Move "*.jpg" "E:\COLETA SNAPSHOT\SNAPSHOT 1002"
    PING 1.1.1.1  -n 10 -w 3000 >NUL
    )
    GOTO LOOP01