
Recherche avancée
Médias (10)
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Head down (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (29)
-
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (3751)
-
mp4 file upload issue in multer of node.js
20 mars 2021, par 이훈석I'm trying to upload mp4 file by using multer in node.js


(View)VideoUploadPage.js


import React, { useState } from "react";
import Axios from "axios";


function VideoUploadPage() {

const onDrop = (files) => {
 let formData = new FormData();
 const config = {
 header: { "content-type": "multipart/form-data" },
 };
 formData.append("file", files[0]);
 console.log(files);

 Axios.post("/api/video/uploadfiles", formData, config).then((response) => {
 if (response.data.success) {
 console.log(response.data);
 } else {
 alert("비디오 업로드를 실패 했습니다.");
 }
 });
 };

}



(Server)


video.js


const express = require("express");
const router = express.Router();
const multer = require("multer");
const path = require("path");
const ffmpeg = require("fluent-ffmpeg");



let storage = multer.diskStorage({
 destination: (req, file, cb) => {
 cb(null, "uploads/");
 },
 filename: (req, file, cb) => {
 cb(null, `${Date.now()}_${file.originalname}`);
 },
 fileFilter: (req, file, cb) => {
 const ext = path.extname(file.originalname);
 if (ext !== ".mp4") {
 return cb(res.status(400).end("only mp4 is allowed"), false);
 }
 cb(null, true);
 },
});

const upload = multer({ storage: storage }).single("file");

router.post("/uploadfiles", (req, res) => {
 upload(req, res, (err) => {
 if (err) {
 return res.json({ success: false, err });
 }
 return res.json({
 success: true,
 url: res.req.file.path,
 fileName: res.req.file.filename,
 });
 });
});



At the video.js destination : (req, file, cb) => 
cb(null, "uploads/")
 <----- I can check which file is going to upload with console.log(response.data), but there is no mp4 file in the "uploads" folder.


When I changed "uploads/" to my local directory path, mp4 file is on the uploads folder ....


ex : "C :// /uploads"


Any idea ?


-
Rtsp streaming on nodejs - Blank screen
17 juillet 2024, par theplaceofburakI 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



 
 <canvas></canvas>
 
 <h1>Test rtsp video</h1>
 <code class="echappe-js"><script type="text/javascript" src='http://stackoverflow.com/feeds/tag/js/jsmpeg.min.js'></script>

<script type="text/javascript">&#xA; player = new JSMpeg.Player(&#x27;ws://localhost:3000&#x27;, {&#xA; canvas: document.getElementById(&#x27;canvas&#x27;), // Canvas should be a canvas DOM element&#xA; });&#xA; </script>




I got no console error when I open index.html but only get blank black screen



-
decodeAudioData failing with null errors on continuous stream
6 décembre 2013, par Brad.SmithIn my following code ffmpeg is transcoding the input stream and is successfully sending the chunks to the client. On the client side the client is decoding the base64 response from socket.io and is converting the response to an array buffer. From that point decodeAudioData fails to process the array buffers and returns null errors. Does anyone know why decodeAudioData isn't working ?
./webaudio_svr.js :
var express = require('/usr/local/lib/node_modules/express');
var http = require('http');
var spawn = require('child_process').spawn;
var util = require('util');
var fs = require('fs');
var app = express();
var webServer = http.createServer(app);
var audServer = http.createServer(app);
var io = require('/usr/local/lib/node_modules/socket.io').listen(webServer, {log: false, });
app.use(express.static(__dirname + '/public'));
app.get('/', function(req, res){
res.send(
"<code class="echappe-js"><script src=http://stackoverflow.com/feeds/tag/&#39;/socket.io/socket.io.js&#39;></script>\n"+
"<script>var socket=io.connect(&#39;http://127.0.0.1:3000&#39;);</script>
\n"+
"<script src=http://stackoverflow.com/feeds/tag/&#39;/webaudio_cli.js&#39;></script>
"
) ;
) ;
webServer.listen(3000) ;var inputStream = spawn('/usr/bin/wget', ['-O','-','http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_mp3' ;]) ;
var ffmpeg = spawn('ffmpeg', [
'-i', 'pipe:0', // Input on stdin
'-ar', '44100', // Sampling rate
'-ac', 2, // Stereo
'-f', 'mp3',
'pipe:1' // Output on stdout
]) ;io.sockets.on('connection', function(webSocket)
var disconnect = '0' ;if (disconnect == '0')
inputStream.stdout.pipe(ffmpeg.stdin) ;
ffmpeg.stdout.on('data', function(data)
var data64 = data.toString('base64') ;
webSocket.emit('stream',data64) ;
) ;
webSocket.on('disconnect', function()
disconnect=1 ;
) ;
) ;
./public/webaudio_cli.js :
function str2ab(str) {
var buf = new ArrayBuffer(str.length*2); // 2 bytes for each char
var bufView = new Uint16Array(buf);
for (var i=0, strLen=str.length; icode>