
Recherche avancée
Autres articles (106)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
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, parMultilang 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. -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (8923)
-
Is there a way to stream download a mp3 file that is being converted on a nodejs server ?
19 février 2019, par ThriskelI am looking for a way to send the url to the nodejs server and respond the user with the mp3 file download.
I searched some examples, and read about requests and responses, but I am not sure what the problem really is.
This is the Javascript for the HTML :
var downloadBtn = document.querySelector('.download_button');
var URLinput = document.querySelector('#myUrl');
downloadBtn.addEventListener('click', () => {
console.log(`URL: ${URLinput.value}`);
sendURL(URLinput.value);
});
function sendURL(URL) {
window.location.href = `http://localhost:4000/download?URL=${URL}`;
}This is the Javascript for the Nodejs server :
const express = require('express');
const cors = require('cors');
const ytdl = require('ytdl-core');
const app = express();
const ffmpeg = require('fluent-ffmpeg')
app.use(cors());
app.listen(4000, () => {
console.log('Server Works !!! At port 4000');
});
app.get('/download', (req,res) => {
var URL = req.query.URL;
res.header('Content-Disposition', 'attachment; filename="file.mp3"');
let stream = ytdl(URL, {
quality: 'highestaudio',
}); //HERE THE STREAM FILE IS SELECTED TO BE CONVERTED TO MP3
ffmpeg(stream)
.audioBitrate(128)
.pipe(res); // HERE IS CONVERTED AND WHERE I WANT IT TO SEND IT AS A DOWNLOAD TO THE USER.
});I expected it to stream download the file but instead it gets me to the nodejs server page to /download/url_to_vid
-
How to download m3u8 to mkv in nodejs
10 février 2019, par Gabgab2003Im trying to download an mkv file from an m3u8 stream. I have the m3u8 as url, but can download it to a file if need be. I would like to solve this only with node and node modules.
I have already tried to use wget lib, but cant get ffmpeg (node library, not the standalone binary) to work with the file.
if anyone is interested, the url im trying to download is this
(Im writing a crunchyroll downloader application) -
Adding Support for resuming download with FFMPEG ?
5 février 2019, par INDIERsCurrently i am using this to download
hls
streams withffmpeg
in android appffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "input.m3u8" -codec copy video.mp4
it is working as it should.
In case of network lost, the file will be downloaded from BEGINNING which is ofc not good at all.
I did some research but didn’t found anything great, just these never implemented ideas :
First is get the duration of downloaded video file and then downloading the video from duration +0.1
Result High chances of FrameLoss. Dropped.
Second is to download all ts files one by one ofc using any downloader, using custom script, then concat them.
Result : Okay but needs space double of origial filesize, Dropped.
Third is to Download First segment Convert it to MP4 then download second segment convert to mp4 then concat with First Segment and so on... while Keeping records.
Result : Nice One but repeating same task for more than 2000 time, will it be Okay ? .
is there any better workaround for this ?
I’ve already showed the logic i tried.