Recherche avancée

Médias (0)

Mot : - Tags -/gis

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

Autres articles (48)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (7553)

  • How to add watemark in a video with ffmpeg, Python ?

    16 décembre 2023, par Mr.Slow

    I would like to add a .png watemark with 50% opacity over all my video. I would prefer using a ffmpeg filter over merging the watemark image with video-to-be images.

    


    audio = f'{PROJECT_PATH}/data/ppt-elements/audio_{file_id}.txt'
images = f'{PROJECT_PATH}/data/ppt-elements/images_{file_id}.txt'

image_input = ffmpeg.input(images, f='concat', safe=0, t=seconds).video
audio_input = ffmpeg.input(audio, f='concat', safe=0, t=seconds).audio

additional_parameters = {'c:a': 'aac', 'c:v': 'libx264'}

audio_input = ffmpeg.filter(audio_input, "amix", inputs=2, duration="longest")

watermark_file = f"{PROJECT_PATH}/data/logo/logo.png"

# add watermark
watermark = ffmpeg.input(watermark_file)

inputs = [image_input, audio_input, watermark]

watermark_filter = '[0:v][2:v]overlay=10:10'  

command = ffmpeg.output(*inputs, f"{PROJECT_PATH}/data/final-{file_id}.mp4", vf=[watermark_filter, "fps=10,format=yuv420p"],
                        preset="veryfast", shortest=None, r=10, max_muxing_queue_size=4000,
                        **additional_parameters)
command.overwrite_output().run(capture_stdout=True, capture_stderr=True)


    


    This code, however, creates a video without any watermark in it. Can you see any error ?

    


  • Rtsp streaming on nodejs - Blank screen

    17 juillet 2024, par theplaceofburak

    I am currently working on a Node.js project where I need to implement streaming using ffmpeg. However, I am facing an issue with the streaming process, as I am getting an empty blank screen instead of the expected video stream.

    


    Here's a brief overview of what I have done so far on the server-side :

    


    Installed ffmpeg and made sure it is accessible in the environment.
Configured the server-side code for the streaming process.
However, despite these efforts, the stream is not working correctly, and I am unable to see the video stream on the client-side.

    


    Server-side code :
app.js

    


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

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

// Start the RTSP stream
const stream = new Stream({
  name: 'rtsp_server_name',
  streamUrl: 'rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4',
  wsPort: 3000,
  ffmpegOptions: {
    '-stats': '', // an option with no necessary value uses a blank string
    '-r': 30, // options with required values specify the value after the key
  },
});

stream.on('data', data => {
  console.log(data);
});

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

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


    


    index.html

    


    &#xA;  &#xA;    <canvas></canvas>&#xA;  &#xA;  <h1>Test rtsp video</h1>&#xA;  <code class="echappe-js">&lt;script type=&quot;text/javascript&quot; src='http://stackoverflow.com/feeds/tag/js/jsmpeg.min.js'&gt;&lt;/script&gt;&#xA;  &lt;script type=&quot;text/javascript&quot;&gt;&amp;#xA;    player = new JSMpeg.Player(&amp;#x27;ws://localhost:3000&amp;#x27;, {&amp;#xA;      canvas: document.getElementById(&amp;#x27;canvas&amp;#x27;), // Canvas should be a canvas DOM element&amp;#xA;    });&amp;#xA;  &lt;/script&gt;&#xA;&#xA;

    &#xA;

    I got no console error when I open index.html but only get blank black screen
    &#xA;Blank Screen

    &#xA;

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

    &#xA;

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

    &#xA;

    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.

    &#xA;

    Here is my Node.js code :

    &#xA;

    const express = require(&#x27;express&#x27;);&#xA;const Stream = require(&#x27;node-rtsp-stream&#x27;);&#xA;&#xA;const app = express();&#xA;const port = 4000;&#xA;&#xA;&#xA;const stream = new Stream({&#xA;  name: &#x27;rtsp_server_name&#x27;,&#xA;  streamUrl: &#x27;rtsp://fake_test:jksdfhskhdfsomethingfake@111.111.11.1111:50213/cam/realmonitor?channel=1&amp;subtype=1&#x27;(fake rtsp link used for privacy),&#xA;  wsPort: 9999,&#xA;  ffmpegOptions: {&#xA;    &#x27;-stats&#x27;: &#x27;&#x27;, // an option with no necessary value uses a blank string&#xA;    &#x27;-r&#x27;: 30, // options with required values specify the value after the key&#xA;  },&#xA;});&#xA;&#xA;// Middleware to log each request&#xA;app.use((req, res, next) => {&#xA;  console.log(`${req.method} ${req.url}`);&#xA;  next();&#xA;});&#xA;&#xA;app.get(&#x27;/&#x27;, (req, res) => {&#xA;  res.send(&#x27;Hello World&#x27;);&#xA;});&#xA;&#xA;app.listen(port, () => {&#xA;  console.log(`Server running at http://localhost:${port}/`);&#xA;});&#xA;&#xA;// Event listener to check if the RTSP stream is ready&#xA;stream.on(&#x27;data&#x27;, (data) => {&#xA;  if (data.includes(&#x27;frame=&#x27;)) {&#xA;    console.log(&#x27;RTSP stream is ready and streaming.&#x27;);&#xA;  }&#xA;});&#xA;

    &#xA;

    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 !

    &#xA;