Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (56)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (6187)

  • 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

    


      

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


    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. 


    


    I also tried some solutions which are available online

    


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

    


    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

    


        private class Mp4ToMp3ConverterTask extends AsyncTask {

    @Override
    protected String doInBackground(String... params) {
        String mp4FilePath = params[0];
        String mp3OutputPath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/output.mp3";

        String[] ffmpegCommand = {"-i", mp4FilePath, "-vn", "-ar", "44100", "-ac", "2", "-b:a", "192k", mp3OutputPath};


        Config.enableStatisticsCallback(new StatisticsCallback() {
            public void apply(Statistics newStatistics) {
                Log.d("Dekh", String.format("frame: %d, time: %d", newStatistics.getVideoFrameNumber(), newStatistics.getTime()));
            }
        });

        long executionIdd = FFmpeg.executeAsync(ffmpegCommand, new ExecuteCallback() {

            @Override
            public void apply(final long executionId, final int returnCode) {
                if (returnCode == RETURN_CODE_SUCCESS) {
                    Log.i("Dekh", "Async command execution completed successfully.");
                } else if (returnCode == RETURN_CODE_CANCEL) {
                    Log.i("Dekh", "Async command execution cancelled by user.");
                } else {
                    Log.i("Dekh", String.format("Async command execution failed with returnCode=%d.", returnCode));
                }
            }
        });

        FFmpeg.cancel(executionIdd);

        return mp3OutputPath;
    }
}


    


    Solution number 2 which I used is

    


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

    


    But I got an error here also Failed to instantiate extractor. and another error is java.io.FileNotFoundException : open failed : EISDIR (Is a directory)
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.

    


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

    


  • Remove error when running ffmpeg in Windows script to shrink MP3 file

    19 octobre 2022, par K7AAY

    I use a script to downsize audiobook files.
    
The original audiobook file was concatenated from multiple MP3 files into one MP3 file.
    
The script (in Windows) relies on ffmpeg (version git-2020-06-26-7447045) and contains

    


    FOR %%A IN (dir *.mp3) DO ffmpeg -i "%%A" -c:a libmp3lame -q:a 8 "_%%A"


    


    However, this error message appears :

    


    


    deprecated pixel format used, make sure you did set range correctly
    
[mp3 @ 000001f026d56400] Frame rate very high for a muxer not efficiently supporting it.
    
Please consider specifying a lower framerate, a different muxer or -vsync 2

    


    


    How do I modify the script for greater efficiency and remove that error message ?

    


  • ffmpeg set data stream codec tag when copying

    19 mars 2021, par user972014

    I use ffmpeg to copy a data stream from one file to the other using -c copy

    


    The problem is that it causes the output file to have no codec tag string. How can I set it ?

    


    The name of the original stream was :

    


    Stream #0:3(eng): Data: none (gpmd / 0x646D7067), 96 kb/s (default)
    Metadata:
      creation_time   : 2020-09-08 16:35:49
      handler_name    : GoPro MET


    


    While for the output file I get it is :

    


    Stream #0:2[0x102]: Data: bin_data ([6][0][0][0] / 0x0006)


    


    I'm using a commandline similar to that :

    


    ffmpeg -i video.mp4 -map 0:3 -c copy -metadata:s:d codec_tag=xxxx -vcodec libx264 converted4.ts


    


    I also tried handler=... handler_name=...