Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (36)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (5391)

  • FFMPEG support for WebVTT subtitle inline cues

    28 janvier 2024, par Cole

    I am trying to "soft" embed webvtt subtitles into my video using FFMPEG. I need to be able to place to the subtitles at a specific location within the video as well.

    


    I have created a webvtt file that goes along with my video however ; when I pass this through FFMPEG and then try to play the video in VLC media player, the positioning seems to be ignored.

    


    When I play the original video in VLC and then load the same webvtt subtitles file, the positioning is correct ?

    


    Does FFMPEG support the webvtt cues ? It is very possible that I am not passing the correct flags to FFMPEG.

    


    VTT EXAMPLE FILE (i.e. subtitle.vtt) :

    


    WEBVTT

00:00:00.000 --> 00:00:03.000 line:-1 align:right
TESTING 1

00:00:04.000 --> 00:00:08.000 line:-1 align:right
TESTING 2


    


    FFMPEG CLI :

    


    ffmpeg -y -i video.mp4 -i subtitle.vtt -c copy -c:s mov_text vttout.mp4


    


    Test Cases :

    


      

    1. Playing MP4 video in VLC and manually loading the webvtt subtitles -> position is correct.
    2. 


    3. Passing MP4 video through FFMPEG to soft embed the subtitles in container and then playing in VLC -> subtitles are present but position is ignored.
    4. 


    


  • How to add Title in video by ffmpeg on Node JS

    22 juin 2015, par Nazmul Hossain Bilash

    I am working on a project where I have to add Title on a video by FFmpeg. I have already succeeded in adding a picture on a video. Can anybody help me to add Text(Title) on a video ?

    Here is my code for adding Image, please suggest the required modification :

       try {
           var process = new ffmpeg('public/'+req.body.video);
           process.then(function (video) {
             console.log('The video is ready to be processed');
             var watermarkPath = 'public/images/logo.png',
               newFilepath = 'public/videos/watermarked/'+name,
               settings = {
                   position        : "SC"      // Position: NE NC NW SE SC SW C CE CW
                 , margin_nord     : null      // Margin nord
                 , margin_sud      : null      // Margin sud
                 , margin_east     : null      // Margin east
                 , margin_west     : null      // Margin west
               };
             var callback = function (error, files) {
               if(error){
                 console.log('ERROR: ', error);
               }
               else{
                 console.log('TERMINOU', files);
                 res.send('videos/watermarked/'+name)
               }
             }
             //add watermark
             video.fnAddWatermark(watermarkPath, newFilepath, settings, callback)

           }, function (err) {
             console.log('Error: ' + err);
           });
         } catch (e) {
           console.log(e.code);
           console.log(e.msg);
         }
  • How to add Title in video by ffmpeg on Node JS

    30 juin 2024, par Md Nazmul Hossain

    I am working on a project where I have to add Title on a video by FFmpeg. I have already succeeded in adding a picture on a video. Can anybody help me to add Text(Title) on a video ?

    



    Here is my code for adding Image, please suggest the required modification :

    



        try {
        var process = new ffmpeg('public/'+req.body.video);
        process.then(function (video) {
          console.log('The video is ready to be processed');
          var watermarkPath = 'public/images/logo.png',
            newFilepath = 'public/videos/watermarked/'+name,
            settings = {
                position        : "SC"      // Position: NE NC NW SE SC SW C CE CW
              , margin_nord     : null      // Margin nord
              , margin_sud      : null      // Margin sud
              , margin_east     : null      // Margin east
              , margin_west     : null      // Margin west
            };
          var callback = function (error, files) {
            if(error){
              console.log('ERROR: ', error);
            }
            else{
              console.log('TERMINOU', files);
              res.send('videos/watermarked/'+name)
            }
          }
          //add watermark
          video.fnAddWatermark(watermarkPath, newFilepath, settings, callback)

        }, function (err) {
          console.log('Error: ' + err);
        });
      } catch (e) {
        console.log(e.code);
        console.log(e.msg);
      }