Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (52)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • 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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (11358)

  • Error with RTSP Stream in Node.js : Could not find codec parameters for stream 0 (Video : h264, none)

    7 août 2023, par theplaceofburak

    I have a Node.js application that uses the node-rtsp-stream package to stream an RTSP video from an IP camera. However, when I run the application, I encounter the following errors in the console after a few minutes :

    


    [rtsp @ 000002402795dd80] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, rtsp, from 'rtsp://fake_test:jksdfhskhdfsomethingfake@111.111.11.1111:50213/cam/realmonitor?channel=1&subtype=1'(fake rtsp link used for privacy)':
  Metadata:
    title           : Media Server
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: h264, none, 90k tbr, 90k tbn
Output #0, mpegts, to 'pipe:':
[out#0/mpegts @ 0000024027987b80] Output file does not contain any stream
Error opening output file -.
Error opening output files: Invalid argument
RTSP stream exited with error


    


    I am certain that the RTSP stream from the camera is in H.264 - MPEG-4 AVC format, and I can play it in VLC without any issues. However, when I try to stream it using the node-rtsp-stream package, I encounter these errors.

    


    Here is my Node.js code :

    


    const express = require('express');
const Stream = require('node-rtsp-stream');

const app = express();
const port = 4000;


const stream = new Stream({
  name: 'rtsp_server_name',
  streamUrl: 'rtsp://fake_test:jksdfhskhdfsomethingfake@111.111.11.1111:50213/cam/realmonitor?channel=1&subtype=1'(fake rtsp link used for privacy),
  wsPort: 9999,
  ffmpegOptions: {
    '-stats': '', // an option with no necessary value uses a blank string
    '-r': 30, // options with required values specify the value after the key
  },
});

// Middleware to log each request
app.use((req, res, next) => {
  console.log(`${req.method} ${req.url}`);
  next();
});

app.get('/', (req, res) => {
  res.send('Hello World');
});

app.listen(port, () => {
  console.log(`Server running at http://localhost:${port}/`);
});

// Event listener to check if the RTSP stream is ready
stream.on('data', (data) => {
  if (data.includes('frame=')) {
    console.log('RTSP stream is ready and streaming.');
  }
});


    


    I have tried increasing the values for 'analyzeduration' and 'probesize' options, but the errors persist. How can I resolve these errors and successfully stream the RTSP video in H.264 format using the node-rtsp-stream package ? Any help or guidance would be appreciated. Thank you !

    


  • Error : ffmpeg exited with code 1 :

    16 juin 2022, par jibran

    I am using the videoshow node package to create straightforward video slideshows based on images using ffmpeg, with additional features such as audio. I am following the documentation exactly but I get the following error :

    



    


    Error : ffmpeg exited with code 1 :

    


    



    Here is the code :

    



        var videoshow = require(&#x27;videoshow&#x27;)&#xA;    const ffmpeg = require(&#x27;@ffmpeg-installer/ffmpeg&#x27;);&#xA;&#xA;&#xA;    var images = [&#xA;      &#x27;image1.jpg&#x27;,&#xA;      &#x27;image1.jpg&#x27;,&#xA;      &#x27;image1.jpg&#x27;&#xA;&#xA;    ]&#xA;    var videoOptions = {&#xA;      fps: 25,&#xA;      loop: 5, // seconds &#xA;      transition: true,&#xA;      transitionDuration: 1, // seconds &#xA;      videoBitrate: 1024,&#xA;      videoCodec: &#x27;libx264&#x27;,&#xA;      size: &#x27;640x640&#x27;,&#xA;      audioBitrate: &#x27;128k&#x27;,&#xA;      audioChannels: 2,&#xA;      format: &#x27;mp4&#x27;,&#xA;      pixelFormat: &#x27;yuv420p&#x27;&#xA;    }&#xA;&#xA;     var videoOptions = {&#xA;      fps: 24,&#xA;      transition: false,&#xA;      videoBitrate: 1024 ,&#xA;      videoCodec: &#x27;libx264&#x27;, &#xA;      size: &#x27;640x640&#x27;,&#xA;      outputOptions: [&#x27;-pix_fmt yuv420p&#x27;],&#xA;      format: &#x27;mp4&#x27; &#xA;    }&#xA;    videoshow(images, videoOptions)&#xA;      .audio(&#x27;nd.mp3&#x27;)&#xA;      .save(&#x27;/home/jibran/Desktop/video.avi&#x27;)&#xA;      .on(&#x27;start&#x27;, function (command) {&#xA;        console.log(&#x27;ffmpeg process started:&#x27;, command)&#xA;      })&#xA;      .on(&#x27;error&#x27;, function (err, stdout, stderr) {&#xA;        console.error(&#x27;Error:&#x27;, err)&#xA;        console.error(&#x27;ffmpeg stderr:&#x27;, stderr)&#xA;        console.error(&#x27;ffmpeg stdeout:&#x27;, stdout)&#xA;      })&#xA;      .on(&#x27;end&#x27;, function (output) {&#xA;        console.error(&#x27;Video created in:&#x27;, output)&#xA;      })&#xA;&#xA;    and on a console I get&#xA;&#xA;    ffmpeg process started: ffmpeg -i /tmp/videoshow-44a65b07-0949-4b1b-8a6e-bf8a71d5f5ca -i /tmp/videoshow-c7dd4222-385d-406e-8f10-c4160df3db17 -i /tmp/videoshow-2324c514-1738-4c6b-96dc-ab1cc3551d67 -y -filter_complex concat=n=3:v=1:a=0 /home/jibran/Desktop/video.avi&#xA;&#xA;    ffmpeg process started: ffmpeg -i /tmp/videoshow-0ff6909b-db19-4ba1-91ba-dc961127317f -i nd.mp3 -y -r 24 -b:v 1024k -vcodec libx264 -filter:v scale=w=640:h=640 -pix_fmt yuv420p -f mp4 -map 0:0 -map 1:0 -t 15 -af afade=t=in:ss=0:st=0:d=3 -af afade=t=out:st=12:d=3 /home/jibran/Desktop/video.avi&#xA;    Error: Error: ffmpeg exited with code 1: &#xA;        at ChildProcess.<anonymous> (/home/jibran/Desktop/hello-world/node_modules/fluent-ffmpeg/lib/processor.js:182:22)&#xA;        at ChildProcess.emit (events.js:127:13)&#xA;        at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)&#xA;    ffmpeg stderr: undefined&#xA;    ffmpeg stdeout: undefined&#xA;</anonymous>

    &#xA;

  • Nomenclature #4519 (Nouveau) : Renommage de terminologie (blacklist / whitelist)

    13 juillet 2020

    En lisant la compilation [PHP Annotated – June 2020](https://blog.jetbrains.com/phpstorm/2020/06/php-annotated-june-2020/) on tombe sur ce point :

    [[RFC] Change terminology to ExcludeList](https://wiki.php.net/rfc/change-terminology-to-excludelist) — The topic of renaming offensive terms has not been overlooked by the PHP world either. There have been [heated discussions](https://externals.io/message/110515) in the Internals.
    In the PHP core, the change affects only one thing : the configuration directive `opcache.blacklist_filename` should be renamed to `opcache.exclude_list_filename`.
    Many other PHP tools have already made changes in this regard : [PHPUnit](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-9.3.md#930---2020-08-07), [Drupal](https://www.drupal.org/project/drupal/issues/2993575), [Xdebug](https://github.com/xdebug/xdebug/commit/63b43b51e43b794cf8cd740e54089b2b7320fbe1), [Yii](https://github.com/yiisoft/yii2/pull/18104), [Composer](https://github.com/composer/composer/pull/8957) (+ [working with non-master Git branches](https://blog.packagist.com/composer-and-default-git-branches/)).

    C’est certainement intéressant aussi de songer à ces renommages chez nous également, utilisés à quelques endroits.