Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (100)

  • 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" (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (11431)

  • Node.js Stream Mp3 to http without having to save file

    10 janvier 2019, par user2758113

    I am trying to stream just audio from a youtube link straight to http with node.js.

    My code looks like this, I am using express 4.0.

    var express = require('express');
    var router = express.Router();
    var ytdl = require('ytdl');
    var ffmpeg = require('fluent-ffmpeg');
    var fs = require('fs');

    router.get('/', function(req, res) {

     var url = 'https://www.youtube.com/watch?v=GgcHlZsOgQo';
     var video = ytdl(url)

     res.set({
         "Content-Type": "audio/mpeg"
     })

     new ffmpeg({source: video})
         .toFormat('mp3')
         .writeToStream(res, function(data, err) {
           if (err) console.log(err)
         })

    });

    module.exports = router;

    Now, I’m able to stream the video’s audio to the response if I save the file then pipe it to the response, but I’d rather try to figure out some way to go from downloading to ffmpeg to response.

    Not sure if this is possible. The main goal is to keep it as light weight as possible, and not have to read from files.

    I’ve seen this code which is essentially what I’d like to do minus the saving to a file part.

    part of the error

  • C# FFMPEG - How to get extracted frames without save in file system

    4 janvier 2023, par kadam

    I need to process frames from video and live stream without saving into file system.

    


    C# I am trying using below code, but not getting frames

    


    Process proc = new Process();
            proc.StartInfo.FileName = @"E:\ffmpeg\bin\ffmpeg.exe";
            proc.StartInfo.Arguments = String.Format(@"-i E:\ffmpeg\bin\video.mp4 -f rawvideo pipe:1");
            proc.StartInfo.UseShellExecute = false;
            proc.StartInfo.RedirectStandardOutput = true;
            proc.Start();
proc.OutputDataReceived += (sender, args) => DataReceived(args);
            proc.ErrorDataReceived += (sender, args) => DataReceived(args);


    


    I can get frames in nodejs successfully using below code

    


    
const spawnProcess = require('child_process').spawn
    ffmpeg = spawnProcess('E:\\ffmpeg\\bin\\ffmpeg.exe', [
      '-i', 'rtsp://username:password@192.168.6.37/ch1/main/sub-stream',
      '-vcodec', 'mjpeg','-vf','fps=2',
      '-f', 'rawvideo',
      //'-s', HW, // size of one frame
      'pipe:1'
  ]);
      ffmpeg.stderr.pipe(logStream);
      let frames = [];
      ffmpeg.stdout.pipe(new ExtractFrames("FFD8FF")).on('data', (data) => {
        var fName=new Date().getTime()+".png";
        (
          async () => await ProcessFrame(Buffer.from(data).toString('base64'))
        )();
      })


    


    Same thing await ProcessFrame(Buffer.from(data).toString('base64')) I want in C#

    


  • Anomalie #3974 (En cours) : bdd vide, si le choix du prefix des tables au moment de l’installation...

    17 juillet 2017, par b b