Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (28)

  • Soumettre bugs et patchs

    10 avril 2011

    Un logiciel n’est malheureusement jamais parfait...
    Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
    Si vous pensez avoir résolu vous même le bug (...)

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (4931)

  • fluent-ffmpeg concatenate audio files

    8 septembre 2020, par Martin

    I am trying to use fluent-ffmpeg with my electron app to concatenate multiple audio files together with an image in a video. So if i have three files :

    


    song1.mp3 1:00
song2.mp3 0:30
song3.mp3 2:00
front.jpg

    


    I could create output.mp4 which would be 3:30 seconds long, and play each file one after the other in order. With front.jpg set as the background image.

    


    I have succesfully been able to render a single audio file with an image file, but havent been able to render multiple audio files together yet into a video.

    


    Here is my concat attempt :

    


    const command = ffmpeg();
       
            const audioFiles = ['C:\\Users\\marti\\Documents\\martinradio\\uploads\\Movers - 1970 greatest hits vol. 2\\01 back from the moon.mp3', 'C:\\Users\\marti\\Documents\\martinradio\\uploads\\Movers - 1970 greatest hits vol. 2\\02 love me not.mp3'];
            audioFiles.forEach((fileName)=>{
                command.input(fileName);
            })
            command
                    .complexFilter([
                        '[0]adelay=1000|1000[a]',
                        '[1]adelay=4000|4000[b]',
                        '[a][b]amix=2'
                    ])
                    .input(imgPath)
                    .videoCodec('copy')
                    .save('C:\\Users\\marti\\Documents\\martinradio\\uploads\\Movers - 1970 greatest hits vol. 2\\concat-autio.mp4')
                    .on('codecData', function(data) {
                        console.log('codecData=',data);
                    })
                    .on('progress', function({ percent }) {
                        console.log('progress percent: ' + percent);
                    })
                    .on('end', function() {
                        console.log('file has been converted succesfully');
                    })
                    .on('error', function(err) {
                        console.log('an error happened: ' + err.message);
                    })
                    command.run()


    


    When I run it I can see in my console it start, run, and end.

    


    enter image description here

    


    My example uses two audio files :

    


    01 back from the moon.mp3 02:31
02 love me not.mp3' 02:35

    


    So my output file should be 05:06 in length, but my output is only 02:39 in length
enter image description here

    


  • Split video into images with ffmpeg-python

    29 décembre 2022, par sgt pepper

    As far as I understand ffmpeg-python is main package in Python to operate ffmpeg directly.

    


    Now I want to take a video and save it's frames as separate files at some fps.

    


    There are plenty of command line ways to do it, e.g. ffmpeg -i video.mp4 -vf fps=1 img/output%06d.png described here

    


    But I want to do it in Python. Also there are solutions [1] [2] that use Python's subprocess to call ffmpeg CLI, but it looks dirty for me.

    


    Is there any way to to make it using ffmpeg-python ?

    


  • How to get progress percentage of flutter ffmpeg execution

    11 août 2021, par Sharik ansari

    I want to get percentage of ffmpeg execution in flutter

    


    I have some code example but I don't know to do this

    


    ANDROID EXAMPLE :

    


    int start = message.indexOf("time=");
    int end = message.indexOf(" bitrate");
    if (start != -1 && end != -1) {
        String duration = message.substring(start + 5, end);
        if (duration != "") {
            try {
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
                sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
                dialog.setProgress((int)sdf.parse("1970-01-01 " + duration).getTime());                        
            }catch (ParseException e)
            {
                e.printStackTrace();
            }
        }
}


    


    FLUTTER CODE :

    


      void statisticsCallback(Statistics statistics) {
print("Statistics: executionId: ${statistics.executionId}, time: ${statistics.time}, size: ${statistics.size}, bitrate: ${statistics.bitrate}, speed: ${statistics.speed}, videoFrameNumber: ${statistics.videoFrameNumber}, videoQuality: ${statistics.videoQuality}, videoFps: ${statistics.videoFps}");
  }


    


    how can I generate progress of execution from statisticsCallback method ?

    


    Please help me out