Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (76)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (10324)

  • aacenc : Save channel configuration for later use.

    20 juin 2011, par Nathan Caldwell

    aacenc : Save channel configuration for later use.

  • FFmpeg save stream to mp3

    17 avril 2015, par Sergey92zp

    I have an iOS project that play online radio streams, it is use FFmpeg to play. Also I added ability to record streams, decode streams via avcodec_decode_audio4 function, and write output to .wav file. But this files are too big, because it is uncompressed format, so I want to decode files to .mp3.

    I have found couple ways to convert audio but only when audio it is ready file, but I want decode to some compressed format as soon as I get chunk of data from stream, not ready file.

    Is it possible ?
    Can you give me some advise how to achieve this ?

  • WebSocket video MP4 stream, save video and make snapshot

    6 janvier 2024, par Aleksandr Rogonov

    There is a WebSocket server, wss ://stoa-wsez-e01.ezvds.net/ezs/60/ezugi_5_hd/websocketstream2. If you connect to it, for example, here at https://piehost.com/websocket-tester and send {"eventType":"PLAY","stream":"ezugi_5_hd","requestId":0}, messages with the stream will be received.

    


    Let's imagine Node.js connects, takes a screenshot, and disconnects.

    


    I tried something like this :

    


    const videoPath = path.join(outputDirectory, `video_${timestamp}.webm`);
const videoStream = fs.createWriteStream(videoPath);


ws.on('message', (data: Buffer) => {
  videoStream.write(data);
});

ws.on('close', () => {
  videoStream.end();
  ffmpeg(videoPath)
    .output(path.join(outputDirectory, `screenshot_${timestamp}_%d.png`))
    .on('end', () => {
      fs.unlinkSync(videoPath);
    })
    .run();
});


    


    The saved video files cannot be opened, and ffmpeg gives an error :

    


    video_1704549199939.webm: Invalid data found when processing input.


    


    So clearly, I'm doing something wrong.

    


    UPD
In general, I am confident that I can take a snapshot from the video. The problem is how to capture and save this video to the disk. That's where I need help.