
Advanced search
Medias (17)
-
Matmos - Action at a Distance
15 September 2011, by
Updated: September 2011
Language: English
Type: Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 September 2011, by
Updated: September 2011
Language: English
Type: Audio
-
Danger Mouse & Jemini - What U Sittin’ On? (starring Cee Lo and Tha Alkaholiks)
15 September 2011, by
Updated: September 2011
Language: English
Type: Audio
-
Cornelius - Wataridori 2
15 September 2011, by
Updated: September 2011
Language: English
Type: Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 September 2011, by
Updated: September 2011
Language: English
Type: Audio
-
Chuck D with Fine Arts Militia - No Meaning No
15 September 2011, by
Updated: September 2011
Language: English
Type: Audio
Other articles (50)
-
Qualité du média après traitement
21 June 2013, byLe bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...) -
Les images
15 May 2013 -
Les autorisations surchargées par les plugins
27 April 2010, byMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
On other websites (9638)
-
How can I get the final size after transcripting a video to stream it with fluent-ffmpeg?
5 April 2018, by G. ManukyanI am trying to stream a video using
createReadStream
and usingpipe(res)
in node.js and it works fine if the file doesn’t need transcoding (mp4, webm).With mkv files I am using fluent-ffmpeg to transcode it on the fly, but the problem is that I can’t go back and forward in the html video player.
download = function(file, req, res) {
const range = req.headers.range
const parts = range.replace(/bytes=/, "").split("-")
const start = parseInt(parts[0], 10);
const end = parts[1] ? parseInt(parts[1], 10) : file.length - 1
res.setHeader('Content-Type', 'video/webm')
res.setHeader('Accept-Ranges', 'bytes');
res.setHeader('Content-Length', 1 + end - start);
res.setHeader('Content-Range', `bytes ${start}-${end}/${file.length}`);
res.statusCode = 206;
var stream = file.createReadStream({start, end})
ffmpeg(stream)
.videoCodec('libvpx')
.audioCodec('libvorbis')
.videoBitrate('512k')
.format('webm')
.on('start', () => {
console.log('transcoding...')
})
.on('error', (err, stdout, stderr) => {
console.log(err.message, err, stderr);
})
.on('progress', function(progress) {
console.log(progress);
})
.on('end', function(filenames) {
console.log("Finished transcoding.");
})
.pipe(res);
}I think that comes from the fact that we don’t know in advance the size of the final transcoded file so the range we send in the headers is wrong and somehow make the video player "limited".
What can be a workaround to this problem ?
-
Version 1.3.1 final.
27 November 2014, by Erik de Castro LopoVersion 1.3.1 final.
- [DH] README
- [DH] build/config.mk
- [DH] configure.ac
- [DH] doc/Doxyfile.in
- [DH] doc/html/documentation_bugs.html
- [DH] doc/html/index.html
- [DH] src/libFLAC/libFLAC_dynamic.vcproj
- [DH] src/libFLAC/libFLAC_dynamic.vcxproj
- [DH] src/libFLAC/libFLAC_static.vcproj
- [DH] src/libFLAC/libFLAC_static.vcxproj
- [DH] test/metaflac-test-files/case07-expect.meta
-
lavu: remove comma at final enumeration items to fix pedantic warnings
20 October 2016, by Michael Behrisch