Recherche avancée

Médias (91)

Autres articles (112)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

Sur d’autres sites (12502)

  • ffmpeg exited with code 1 : Error configuring complex filters

    21 décembre 2015, par rycornell

    I am using the fluent-ffmpeg node package to merge videos. I am following the documentation exactly but I get the following error : Error: ffmpeg exited with code 1: Error configuring complex filters. Here is the code :

    ffmpeg('/videos/test/part1.mov')
     .input('/videos/test/part2.mov')
     .on('error', function(err) {
       console.log('An error occurred: ' + err.message);
     })
     .on('end', function() {
       console.log('Merging finished !');
     })
     .mergeToFile('videos/test/final.mp4', 'videos/test/tempDir');

    and here is the error output (I logged the command generated by fluent-ffmpeg to the console) :

    C:\Program Files\ffmpeg\bin\ffmpeg.exe [ '-formats' ] { captureStdout: true }
    C:\Program Files\ffmpeg\bin\ffmpeg.exe [ '-encoders' ] { captureStdout: true }
    C:\Program Files\ffmpeg\bin\ffmpeg.exe [ '-i',
     '/videos/test/part1.mov',
     '-i','/videos/test/part2.mov',
     '-y',
     '-filter_complex',
     'concat=n=2:v=1:a=1',
     'videos/test/final.mp4' ] { niceness: 0 }
    An error occurred: Error: ffmpeg exited with code 1: Error configuring complex filters.
    Invalid argument

    at ChildProcess.<anonymous> (C:\test\node_modules\fluent-ffmpeg\lib\processor.js:169:22)
    at ChildProcess.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:809:12)
    </anonymous>

    I’m able to run ffmpeg on my machine for other tasks and it works fine. I’m not sure what the ’-filter_complex’ flag is supposed to do. I am using fluent-ffmpeg version 2.0.1 and ffmpeg windows static build git-9d1fb9e (2015-12-17).

  • How to convert mo4 to mp3 in android java ?

    3 août 2023, par Akshit

    I have the mp4 link of a video but don't have a link for the mp3 version of that mp4 video. So is there any way that I can convert that mp4 video to mp3 in Android ? I saw some resources but nothing works for me. I have two ways in which I believe this can be achieved

    &#xA;

      &#xA;
    1. Convert the mp4 link to mp3 directly. ( Not Sure if this is achievable )
    2. &#xA;

    3. Download the mp4 on the device with the help of a link and then use some code to convert that mp4 to mp3.
    4. &#xA;

    &#xA;

    I also tried some solutions which are available online

    &#xA;

    https://github.com/tanersener/mobile-ffmpeg

    &#xA;

    I tried the above library to achieve the final goal. But got Async command execution failed with returnCode=1. This error in the code I am using is

    &#xA;

        private class Mp4ToMp3ConverterTask extends AsyncTask {&#xA;&#xA;    @Override&#xA;    protected String doInBackground(String... params) {&#xA;        String mp4FilePath = params[0];&#xA;        String mp3OutputPath = Environment.getExternalStorageDirectory().getAbsolutePath() &#x2B; "/output.mp3";&#xA;&#xA;        String[] ffmpegCommand = {"-i", mp4FilePath, "-vn", "-ar", "44100", "-ac", "2", "-b:a", "192k", mp3OutputPath};&#xA;&#xA;&#xA;        Config.enableStatisticsCallback(new StatisticsCallback() {&#xA;            public void apply(Statistics newStatistics) {&#xA;                Log.d("Dekh", String.format("frame: %d, time: %d", newStatistics.getVideoFrameNumber(), newStatistics.getTime()));&#xA;            }&#xA;        });&#xA;&#xA;        long executionIdd = FFmpeg.executeAsync(ffmpegCommand, new ExecuteCallback() {&#xA;&#xA;            @Override&#xA;            public void apply(final long executionId, final int returnCode) {&#xA;                if (returnCode == RETURN_CODE_SUCCESS) {&#xA;                    Log.i("Dekh", "Async command execution completed successfully.");&#xA;                } else if (returnCode == RETURN_CODE_CANCEL) {&#xA;                    Log.i("Dekh", "Async command execution cancelled by user.");&#xA;                } else {&#xA;                    Log.i("Dekh", String.format("Async command execution failed with returnCode=%d.", returnCode));&#xA;                }&#xA;            }&#xA;        });&#xA;&#xA;        FFmpeg.cancel(executionIdd);&#xA;&#xA;        return mp3OutputPath;&#xA;    }&#xA;}&#xA;

    &#xA;

    Solution number 2 which I used is

    &#xA;

    https://androidprogrammatically425516919.wordpress.com/2020/04/21/how-to-convert-video-to-audio-in-android-programmatically/

    &#xA;

    But I got an error here also Failed to instantiate extractor. and another error is java.io.FileNotFoundException : open failed : EISDIR (Is a directory)&#xA;I tried the online available solution to solve these errors but nothing worked. Such as granting write permission. Providing a valid location to save the output.

    &#xA;

    But nothing work so far. Please help me on this. Thank you

    &#xA;

  • Revision 87599 : $GLOBALS[’visiteur_session’] au lieu de global $auteur_session ; et ...

    22 février 2015, par kent1@… — Log

    $GLOBALSvisiteur_session ? au lieu de global $auteur_session ; et $auteur_session
    Indentation / Formatage