Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (53)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (8547)

  • 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;