Recherche avancée

Médias (91)

Autres articles (109)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette 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 2011

    MediaSPIP 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 Kacy

    I’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 calling getCurrentPosition(), and once the bar reaches the end, it actually jumps back a few seconds. And I can no longer use seekTo() 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 of audioQuality(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 ignores audioBitrate() 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 Dtomper

    Hi 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 Konetchy

    I’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.js

    Below 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.