
Recherche avancée
Autres articles (26)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP 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 (4053)
-
Node.js Stream Mp3 to http without having to save file
21 août 2016, par user2758113I 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.
-
how to convert any audio file to wav on server side with node.js [on hold]
9 juin 2014, par pufmaigremy dear stackoverflow
I spent hours looking for an efficient and pretty way to transcode audio on server side, and I found a lot of informations... actually too much informations.
Sox for Node.js looks fine but there are not so much documentation, I was unable to convert a mp3 to wav with it :
https://www.npmjs.org/package/sox
Then fluent ffmpeg sounds good but I have the feeling I will loose a lot of time to achieve my goal with it :
https://github.com/fluent-ffmpeg/node-fluent-ffmpeg
and then i found some more obscure stuff like those ones :
https://github.com/andrewrk/node-plan-transcode
https://github.com/benvanik/node-transcoding
I’m not sure it’s really the "stackoverflow spirit" but I’m asking you wich way would you choose to achieve my goal because I’m feeling lost in the codec jungle.
thanks in advance !! love :)
-
Why can my incoming UDP stream only be saved as audio ?
11 juin 2014, par BoehmiCurrently I’m trying to get the following process working :
1) Send a stream of my desktop from PC A to PC B
2) Have PC B stream the incoming data to HTTP (localhost:8080/test.filename)
3) Now the goal is to access the HTTP stream and get what I’ve originally sent off from PC A
The problem I have with this is : At PC B, I get both my video and my audio track properly received - I can play it with FFMPEG or VLC too, no problem.
But now when I try to either stream it to HTTP via VLC or save it as a file with VLC/FFMPEG, all it contains is is the audio track. The video track has completely vanished from the picture. VLC and ffmpeg only show me that there is an audio track in, as well.I’ve tried this with : h264/mp4, vp8/webm, theora/ogg, and with all of these I’ve had the problem of just the audio track being left. What is happening here ? My current commandline to stream from PC A to PC B is
ffmpeg -f dshow -i audio="virtual-audio-capturer":video="screen-capture-recorder" -vcodec libx264 -b:v 500K -vf crop=400:300:0:0 -r 15 -strict -2-c:a libmp3lame -b:a 128k -bsf:v h264_mp4toannexb -maxrate 750k -bufsize 3000k -f mpegts udp://127.0.0.1:5004
However, I’ve tried many command lines with different settings, but I simply can’t find the right ones.