Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (15)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (4696)

  • FFMPeg command to combine images with audio and then add background music

    3 mars 2023, par John Smith

    So, I have a series of corresponding image and audio files "0.mp3", "0.png", "1.mp3", "1.png", etc...
I want to have it so the image shows for the duration of the audio file. I also want music to play in the background. The command will also eventually be generated programmatically, so it needs to be able to handle an arbitrary amount of sources.

    


    Here is first part working

    


    ffmpeg -i 0.png -i 0.mp3 -i 1.png -i 1.mp3 -i 2.png -i 2.mp3 -i 3.png -i 3.mp3 -i 4.png -i 4.mp3 -i 5.png -i 5.mp3 -i 6.png -i 6.mp3 -i m.mp3 -filter_complex "[0][1][2][3][4][5]concat=n=7:v=1:a=1[vv][a];[vv]format=yuv420p[vout]" -map [vout] -map [a] video.mp4


    


    and here is my attempt to get the music working :

    


    ffmpeg -i 0.png -i 0.mp3 -i 1.png -i 1.mp3 -i 2.png -i 2.mp3 -i 3.png -i 3.mp3 -i 4.png -i 4.mp3 -i 5.png -i 5.mp3 -i 6.png -i 6.mp3 -i m.mp3 -filter_complex "[0][1][2][3][4][5][6]concat=n=7:v=1:a=1[vv][aout];[vv]format=yuv420p[v];[7][aout]amerge[mout]" -map [v] -map "[mout]" video.mp4


    


    The first and third audio files end up getting merged and then the audio stops, but all of the images play for the expected duration.

    


  • I have a audio in 128kbps that was read 16KB every second, but it seems that I am getting more than 1 seconds of the music each time. Why ?

    23 décembre 2022, par Hexona

    So I have a new stream to which I will push 2048 bytes of audio buffer every 128ms (i.e. 16KB every second) but I seem to have more than 1 second of data pushed to the stream. (I think so by finding ffmpeg is still streaming sound even tens of seconds after I stop pushing data in it)

    


    When I changed it to 1024 bytes/128ms (8KB/s), the sound stop right after I stop pushing data.

    


    Please correct me if I do anything wrong !

    


    Some background story

    


    I am using ffmpeg to stream to a rtp server. It is one-time used, so I can't stop ffmpeg and start again. I don't want to use the ZeroMQ way because of latency. The target I am trying to archive is to have the same readable stream to ffmpeg and change the audio content on the go by stop pushing chunks of previous audio file and switch to the new one.

    


    If you know some other ways to archive the goal, I would be very pleased to know. Thank you in advance !

    


    My current code

    


    const stream = new Stream.Readable();

// ...
// (send stream to ffmpeg)
// ...

fileP = fs.createReadStream(input);
fileP.on('readable', async () => {
    var chunk;
    while (previousStream && (chunk = fileP?.read(16 * 128))) {
        if (!previousStream) break;
        stream.push(chunk);
        await delay(125);
    }
});


    


  • How to change or modify pitch of audio file (music etc like .mp3 file)using FFMPEG ?

    18 octobre 2022, par syed kashifullah

    I want to change and modify pitch an .mp3 audio file using FFMPEG.
But I am unable to use FFMPEG to change or modify pitch of that sound.
what command (exact command) should be exactly use for changing pitch of an audio file ?

    


     String outPutPath = new File("/storage/emulated/0/Share it Application/Over_the_HorizonTemp.wav").getPath();
                 
                String[] strFfmpeg  = {"ffmpeg","-i" ,strInputPath,"-af", "rubberband=tempo=1.0:pitch=1.5:pitchq=quality" ,outPutPath};
                execffmpegBinary(strFfmpeg);


    


    execffmpegBinary Function :

    


    public void execffmpegBinary(String[] command) {
    Config.enableLogCallback(new LogCallback() {
        @Override
        public void apply(LogMessage message) {
            Log.e(Config.TAG, message.getText());
            Log.e("TAG", "apply: " +message.getText());
        }
    });
    Config.enableStatisticsCallback(new StatisticsCallback() {
        @Override
        public void apply(Statistics statistics) {

        }
    });

    long executionId = FFmpeg.executeAsync(command, new ExecuteCallback() {
        @Override
        public void apply(long executionId, int returnCode) {
            if (returnCode == RETURN_CODE_SUCCESS) {
                
                Log.e("1TAG", "apply:return code "+returnCode );
                Log.e("1TAG", "apply:execution Id "+executionId );
                Log.e("1TAG", "apply:execution Id "+ new FFmpegExecution(executionId,command));


            } else if (returnCode == RETURN_CODE_CANCEL) {
                Log.e("2TAG", "apply:return code "+returnCode );
                Log.e("2TAG", "apply:execution Id "+executionId );
                Log.e("2TAG", "apply:execution Id "+ new FFmpegExecution(executionId,command));

            } else {
                Log.e("3TAG", "apply: returnCode"+ returnCode);
                Log.e("3TAG", "apply:return code "+returnCode );
                Log.e("3TAG", "apply:execution Id "+executionId );
                Log.e("3TAG", "apply:execution Id "+ new FFmpegExecution(executionId,command));

            }
        }
    });
}