
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (109)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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. -
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 (11907)
-
MediaPlayer miscalculates audio duration. getCurrentPosition() goes back when audio reaches the end
26 mars 2017, par KacyI’m streaming .ogg files from my server. The
MediaPlayer
plays the song to completion, but when it reaches the end of the song,getCurrentPosition()
returns a time less than the actual duration of the song. For 1 song it’s only off by a second, but for another song it’s off by 13 seconds.I have a
SeekBar
that’s updated every second by callinggetCurrentPosition()
, and once the bar reaches the end, it actually jumps back a few seconds. And I can no longer useseekTo()
into the segment of the song that’s past the miscalculated duration because I receive the error :Attempt to seek to past end of file
.Chrome’s html video element simply displays the songs with the incorrect durations.
Other tools like ffmpeg or this app on Windows 10 called PowerMediaPlayer both calculate the songs’ durations perfectly.
I believe this problem is related to this answer, but the solution assumes ffmpeg also miscalculates the duration, which is not the case here. Using the
-vn
flag when converting audio files to ogg didn’t change anything.What are my options ? Is there a way to get the MediaPlayer to calculate the correct duration ?
Update :
Converting to mp3 has no issues (although I used
audioBitrate('96k')
instead ofaudioQuality(2)
, but I require a solution to get ogg files working. Below is how I’m using ffmpeg to perform the conversion. Another thing worth noting is that when I used'vorbis'
instead of'libvorbis'
for the codec the durations were off by less than a second, if at all. However, I must use'libvorbis'
because'vorbis'
is experimental and results in significanlty inconsistent bitrates across different files given the same audio quality parameter. (And it ignoresaudioBitrate()
entirely.)ffmpeg( filepath )
.toFormat( 'ogg' )
.audioCodec( 'libvorbis' )
.audioQuality( 2 )
.output( destination )
.run(); -
How can I merge intro.mp4, image.png, music.mp3 in one command ?
10 décembre 2020, par DtomperHi I want to make a simple music video where an intro plays then an image shows up while the song is playing in the background.


I have this command that mixes the song and the image, all I need now is the intro playing at the beginning :


ffmpeg -r 1 -loop 1 -y -i image.png -i music.mp3 -c:a copy -r 1 -vcodec libx264 -shortest mix.mp4



-
Including ffmpeg library in AWS Lambda
30 décembre 2016, par Alex KonetchyI’m trying to include the
ffmpeg
library with AWS.drwxrwxrwx 2 root root 0 Dec 22 13:04 bin
-rwxrwxrwx 1 root root 40166912 Dec 22 11:50 ffmpeg.exe
-rwxrwxrwx 1 root root 30 Dec 22 13:04 version.sh
drwxrwxrwx 2 root root 0 Dec 22 16:35 node_modules
-rwxrwxrwx 1 root root 594 Dec 22 13:03 package.json
-rwxrwxrwx 1 root root 818 Dec 30 11:04 SplitFrames.jsBelow is what’s in the main js file, SplitFrames.js
var execute = require('lambduh-execute');
var validate = require('lambduh-validate');
process.env['PATH'] = process.env['PATH'] + ':/tmp/:' + process.env['LAMBDA_TASK_ROOT']
exports.handler = function(event, context, callback) {
var exec = require('child_process').exec;
var cmd = 'ffmpeg -version';
exec(cmd, function(error, stdout, stderr) {
console.log(stdout);
callback(null, stdout);
});
}I test the function in lambda and it outputs nothing. Wondering how to include the ffmpeg library with AWS and node js. Any help is greatly appreciated.