Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (101)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (10942)

  • ffmpeg : md5 of m3u8 playlists generated from same input video with different segment durations (after applying video filter) don't match

    15 juillet 2020, par Saurabh P Bhandari

    Here are a few commands I am using to convert and transize a video in mp4 format to a m3u8 playlist.

    


    For a given input video (mp4 format), generate multiple video only segments with segment duration 30s

    


    ffmpeg -loglevel error -i input.mp4 -dn -sn -an -c:v copy -bsf:v h264_mp4toannexb -copyts -start_at_zero -f segment -segment_time 30 30%03d.mp4 -dn -sn -vn -c:a copy audio.aac


    


    Apply video filter (in this case scaling) on each segment and convert it to a m3u8 format

    


    ls 30*.mp4 | parallel 'ffmpeg -loglevel error -i {} -vf scale=-2:144 -hls_list_size 0 {}.m3u8'


    


    Store the list of m3u8 files generated in list.txt in this format file 'segment-name.m3u8'

    


    for f in 30*.m3u8; do echo "file '$f'" >> list.txt; done


    


    Using concat demuxer, combine all segment files (which are in m3u8 format) and the audio to get one final m3u8 playlist pointing to segments with duration of 10s.

    


    ffmpeg -loglevel error -f concat -i list.txt -i audio.aac -c copy -hls_list_size 0 -hls_time 10 output_30.m3u8


    



    


    I can change the segment duration in the first step from 30s to 60s, and compare the md5 of the final m3u8 playlist generated in both the cases using this command

    


    ffmpeg -loglevel error -i <input m3u8="m3u8" playlist="playlist" /> -f md5 - &#xA;

    &#xA;

    The md5 of the output files differ i.e video streams of output_30.m3u8 and output_60.m3u8 are not the same.

    &#xA;

    Can anyone elaborate on this ?

    &#xA;

    (I expected the md5 to be the same)

    &#xA;

  • Streaming through FFMpeg stdout

    30 juin 2014, par SandyEmerald

    I need to stream my generating images using ffmpeg througth stdout. Is it possible ? If yes, could you give me some ffmpeg examples like commands or general conceptions ?

    The final task is to create streaming video server through RTP, so i could connect to it via VLC or other client. And i need to do it without using diskspace - only through streams.

    Now i have Qt program which generates images. I know that i can give them to stdout using QDataStream.

  • How to convert mp4 to mp3 in Android Java ?

    16 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.

    &#xA;

    This error in the code I am using is :

    &#xA;

    private class Mp4ToMp3ConverterTask extends AsyncTask {&#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;            @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.
    &#xA;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 works so far. Please help me on this. Thank you.

    &#xA;