Recherche avancée

Médias (91)

Autres articles (48)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

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

  • RTSP stream exited with error" : Connection timed out

    21 février 2020, par fw08

    I am building an web application on AWS Cloud that requires to stream a recorded/live video over the global network. I purchased an IP camera(GV-AVD4710) and NVR(GV-SNVR0811) for our application. In future I need to stream no. of cameras on my application.

    While Camera in use With NVR, I have connected the NVR in our local network and the camera at channel_1 of NVR. Now the lets assume NVR is getting an IP of 192.168.1.203. So for rtsp streaming URL for channel_1 will be "rtsp://id:password@192.168.1.203:554/ch1" as per manufacturer’s specification. For camera streaming I am using "ffmpeg" multimedia framework (https://github.com/xpcrts/Steaming-IP-Camera-Nodejs ). So it is working fine. I tested it and working well in local network. Code that is running on the server

    Stream = require('node-rtsp-stream')
    stream = new Stream({
       name: 'name',
       streamUrl: 'rtsp://ID:PASSWORD@abcxyz.com:554/ch1',
       wsPort:3000,
       ffmpegOptions: {
           '-stats': '',
           '-r': 30
       }
    })

    and Code running at client side which is independent of any plug-ins

    <div>
          <canvas width="auto" height="auto"></canvas>
          <code class="echappe-js">&lt;script type=&quot;text/javascript&quot; src='http://stackoverflow.com/feeds/tag/jsmpeg.min.js'&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;<br />
               var canvas = document.getElementById('chanel1');<br />
               var websocket = new WebSocket(&quot;ws://34.202.222.188:3000&quot;);<br />
               var player= new jsmpeg(websocket, {canvas:canvas, autoplay:true, loop:true})<br />
          &lt;/script&gt;

    When I made this IP address available for public, and then the problem begins. It is not working and giving an error :

    "[tcp @ 0x563911f0a340] Connection to tcp://192.168.1.205:554?timeout=0 failed: Connection timed out
    rtsp://admin:admin@192.168.1.205: Connection timed out RTSP stream exited with error"

    In Camera Without NVR, I connected camera directly to our local network and so got an rtsp url like rtsp ://id:password@192.168.1.205/media/video1. Same happens again. Works well in local, but not working when I am making this available on public network.

    How can stream video over global network ? Is it possible to implement these logic using ffmpeg multimedia framework ? Does VLC can help in these cases ?

    I would like to reiterate that, In future there are no. of cameras needs to be stream.

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

    &#xA;&#xA;

    var express = require(&#x27;express&#x27;)&#xA;var router = express.Router()&#xA;&#xA;const ffmpeg = require(&#x27;fluent-ffmpeg&#x27;);&#xA;&#xA;router.get(&#x27;/test&#x27;, function (req, res) {&#xA;    // make sure you set the correct path to your video file&#xA;    var proc = ffmpeg(&#x27;http://localhost:3000/images/image.jpg&#x27;)&#xA;&#xA;        // loop for 5 seconds&#xA;        .loop(5)&#xA;        // using 25 fps&#xA;        .fps(25)&#xA;        // setup event handlers&#xA;        .on(&#x27;end&#x27;, function () {&#xA;            console.log(&#x27;file has been converted succesfully&#x27;);&#xA;        })&#xA;        .on(&#x27;error&#x27;, function (err) {&#xA;            console.log(&#x27;an error happened: &#x27; &#x2B; err.message);&#xA;            console.log(&#x27; error code is : &#x27; &#x2B; err.code);&#xA;        })&#xA;        // save to file&#xA;        .save(&#x27;http://localhost:3000/video/image-cdo.mp4&#x27;);&#xA;})&#xA;&#xA;module.exports = router;&#xA;

    &#xA;&#xA;

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

    &#xA;&#xA;

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

    &#xA;&#xA;

    &#xA;

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

    &#xA;&#xA;

     error code is : undefined&#xA;

    &#xA;

    &#xA;&#xA;

    Can anyone help me out :)

    &#xA;&#xA;

    "dependencies": {&#xA;    "fluent-ffmpeg": "^2.1.2",&#xA;  }&#xA;

    &#xA;&#xA;

    And NodeJS v12.13.0

    &#xA;

  • Boussole SPIP

    SPIP.net-La documentation officielle et téléchargement de (...) SPIP Code-La documentation du code de SPIP Programmer SPIP-La documentation pour développer avec (...) Traduire SPIP-Espace de traduction de SPIP et de ses (...) Plugins SPIP-L'annuaire des plugins SPIP SPIP-Contrib-L'espace des contributions à SPIP Forge SPIP-L'espace de développement de SPIP et de ses (...) Discuter sur SPIP-Les nouveaux forums de la communauté (...) SPIP Party-L'agenda des apéros et autres rencontres (...) Médias SPIP-La médiathèque de SPIP SPIP Syntaxe-Tester l'édition de texte dans SPIP