
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
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
Autres articles (62)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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 (...) -
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 (10716)
-
How to create a m3u8 Byte-Range playlist without creating a new file
20 mars 2019, par Rodrigo ValençaI’ve found some nice related questions,such as this one How to create byte-range m3u8 playlist for HLS ? but the best answer, that provide us this ffmpeg command
ffmpeg -i sample.ts -hls_time 20 -hls_flags single_file out.m3u8
creates a new .ts file to use in the m3u8. In my application we need to create the m3u8 file, but we want it to be faster than the solution provided, it was unworkable for us. I think that the provided solution is a little slow ’cause it has to create a new file, do you guys know a solution that uses a already existing encoded ts file ? -
How to set the length metadata property with fluent-ffmpeg ?
8 avril 2024, par volume oneI have transcoded a sample video using
fluent-ffpmeg
and want to set thelength
metadata property so that the<video></video>
player knows how long the video is going to be.

To get the duration of the video I did this :


import ffmpeg from 'fluent-ffmpeg';

function ffprobePromise() {
 return new Promise((resolve, reject) => {
 ffmpeg.ffprobe('/path/to/file'), function (err, metadata) {
 FileDuration = metadata.format.duration;
 resolve()
 });
 })}

 await ffprobePromise();

 ffmpeg('path/to/output')
 .videoCodec('libx264')
 .audioCodec('libmp3lame')
 .duration(FileDuration) // !! not setting 'length' metadata property in file
 .size(`960x400`)
 // Stream output requires manually specifying output formats
 .format('mp4')
 .outputOptions(['-movflags dash', `-metadata length=${FileDuration}`]) // also not setting length in metadata



Here is the sample file that was created : https://devxxx001.s3.amazonaws.com/sample_960x400_47sec.mp4


If you download and view the properties of that file, there is no
length
property in the metadata. Hence when you play the file, the video player is not able to determine the total duration of the video. You'll notice it keeps jumping up as the video plays.

The ffmpeg documentation states that you can use
ffmpeg -i in.avi -metadata title="my title" out.flv
to set the title for example. But how do you do this withfluent-ffmpeg
?

-
Download a stream via ffmpeg in Node.js
16 juillet 2018, par loretoparisiI’m using
ffmpeg
to download an audio stream in Node.js. I usechild_process
for that :var downloadStream = function(uri,opath) {
var self=this;
// defaults
var loglevel= self.logger.isDebug() ? 'debug' : 'warning';
return new Promise((resolve, reject) => {
const args = [
'-y',
'-loglevel', loglevel,
'-v', 'quiet',
'-i', uri,
opath
];
const opts = {
cwd: self._options.tempDir
};
cp.spawn('ffmpeg', args, opts)
.on('message', msg => self.logger.info(msg))
.on('error', reject)
.on('close', resolve)
.on('exit', function (code, signal) {
console.log('child process exited with ' +
`code ${code} and signal ${signal}`);
resolve(code);
});
});
}//downloadStreamWhat happens is that the
close
event is called before the file has been written to the disk. I have also registered theexit
that is called with theclose
. While executing the command inbash
I get the stream saved in theopath
as expected. Which event listener shall I register for that ?