Recherche avancée

Médias (0)

Mot : - Tags -/utilisateurs

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (103)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

  • 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 (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP 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 (7846)

  • Fluent-ffmpeg : merging video and audio = wrong frames

    5 juin 2015, par rhanb

    I’m trying to merge a video (mp4) without audio stream with an audio file (mp3). I’m developing under nodewebkit a video software which means that I have to use ogg files, so when the user upload a video or a audio file it converts it in ogg whatever its format. Then when the user want to export its video I’m exporting frames from a canvas to PNG images. Once this is done I’m creating a video from the frames with a 30 fps with this following code :

    var videoMaker = function () {

       console.log('videoMaker');

       var deffered = Q.defer();
       if (!FS.existsSync($rootScope.project.path + '/video')) {
           filestorageService.createFolder($rootScope.project.path + '/video');
       }
       audioMaker().then(function () {
           var commandVideo = new Ffmpeg({
               source: $rootScope.project.path + '/frames/%d.png'
           });
           commandVideo.setFfmpegPath(ffmpegPath);
           commandVideo.addOptions(['-c:v libx264', '-r 30']).withFpsInput(30).format('mp4').on('error', function (err) {
               console.log('video', err);
           }).on('end', function () {
               console.log('video win');
               deffered.resolve();
           }).save($rootScope.project.path + '/video/rendu.mp4');
       });
       return deffered.promise;
    };

    Then i’m reconverting the audio wich has been uploaded by the user to mp3 :

    var audioMaker = function () {

       console.log('audioMaker');
       var deffered = Q.defer();
       if ($rootScope.project.settings.music.path !== '') {
           FS.writeFileSync($rootScope.project.path + '/music/finalMusic.mp3', null);
           var commandAudio = new Ffmpeg({
               source: $rootScope.project.settings.music.path
           });
           commandAudio.setFfmpegPath(ffmpegPath);
           if ($rootScope.project.settings.music.fadeIn) {
               commandAudio.audioFilters('afade=t=in:ss=0:d=0.5');
           }
           console.log($rootScope.project.settings.music.fadeOut, $rootScope.project.settings.music.fadeIn);
           if ($rootScope.project.settings.music.fadeOut) {
               var time = sceneService.getTotalDuration() - 0.5;
               commandAudio.audioFilters('afade=t=out:st=' + time + ':d=0.5');
           }
           commandAudio.toFormat('mp3').on('end', function () {
               console.log('audio win');
               deffered.resolve();
           }).on('error', function (err) {
               console.log('audio', err);
           }).save($rootScope.project.path + '/music/finalMusic.mp3');
       } else {
           deffered.resolve();
       }
       return deffered.promise;
    };

    Until there everything is alright those files work well but when i do this :

    var command = new Ffmpeg({
       source: $rootScope.project.path + '/video/rendu.mp4'
    });
    command.setFfmpegPath(ffmpegPath);
    console.log($rootScope.project.settings.music.path !== '');
    if ($rootScope.project.settings.music.path !== '') {
       command.addInput($rootScope.project.path + '/music/finalMusic.mp3');
       command.addOptions(['-c:v copy', '-c:a copy']);
       if ($rootScope.project.settings.music.duration > sceneService.getTotalDuration()) {
           command.addOptions(['-shortest']);
       }
       command.on('error', function (err) {
           console.log(err);
       }).on('end', function () {
           console.log("win");
           //filestorageService.rmFolder($rootScope.project.path + '/frames');
       }).save($rootScope.project.path + '/video/rendu.mp4');
    } else {
       filestorageService.rmFolder($rootScope.project.path + '/frames');
    }

    And my final file has the music and the right duration but the frames aren’t right, any ideas ?

  • RTSP streaming to video file using FFMPEG library

    17 août 2017, par Gona

    I want to save video taken with a network camera(IP camera) as a video file like .avi.

    At first I tried OpenCV but I have a codec problem and try to use FFMPEG.
    This is the first time to use FFMPEG so I am looking for some sample code.

    The overall project structure is C# with a C++ DLL, so I want to save(or write or record) the camera stream as a video file in C++.

    Camera stream is received using RTSP, and the RTSP URL is also known.
    How to save RTSP stream as video file using FFMPEG library ? The codec is H264.

    I would appreciate it if you could show me some sample code.

    My development environment is 64-bit Windows 10 and Visual Studio 2015.
    I downloaded FFMPEG library version 20170817-92da230, 64-bit architecture and linking both Shared and Dev from here https://ffmpeg.zeranoe.com/builds/

  • OpenCV won't open some videos of many videos of the same format

    2 octobre 2013, par OpenMinded

    I am using Visual Studio 2012 with OpenCV 2.4.6.

    I have 4 videos that I recorded one by one with my Nokia Lumia 920. OpenCV won't open .mp4 format from my phone by the default. So I converted all these 4 videos using Sony Vegas to .mp4 with the SAME preferences for all of them. Now the problem is that OpenCV has a problem to open two of them. The other two works like a charm with no problem. Below is the information about codec that I used (Yes, it is the same for all videos) :

    Codec info

    And this is the error :

    Error

    Why is it so that they are the same type but only a few of them are loaded properly ?