Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (47)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (7305)

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

  • FFMpeg clip broken, generated from images [closed]

    5 février 2024, par thomassss

    I hope someone can help me out here, would really appreciate it :).

    &#xA;

    I created a video out of images, and then merged it with other videos.&#xA;The problem is that the final result is kinda broken - when I want to add background music to it, it won't play the music on the parts with the video generated by images, and on mobile phones it seems even more broken.

    &#xA;

    The commands I used :

    &#xA;

    Extracting the images from the video :

    &#xA;

    ffmpeg.exe -i E:\dev\chatgpt\temp11\peng\final\1_runway.mp4 -vsync 0 -f image2 E:\dev\chatgpt\temp9\peng\final/1_runway-%06d.png&#xA;

    &#xA;

    Then I edit the images, then merging them back with :

    &#xA;

    ffmpeg.exe  -i  E:\dev\chatgpt\temp11\peng\final\2_runway_final-%06d.png E:\dev\chatgpt\temp9\peng\final\5_runway_final.mp4&#xA;&#xA;

    &#xA;

    This file now seems to be broken

    &#xA;

    Now when i merge this file with other mp4s via

    &#xA;

    ffmpeg.exe -f concat   -i E:\dev\chatgpt\temp11\peng\\final\ENGLISH_ffmpeg_input.txt  -vcodec copy -acodec copy E:\dev\chatgpt\temp9\peng\\final\ENGLISH_output.mp4&#xA;

    &#xA;

    Ad then add background music via

    &#xA;

    ffmpeg.exe -i "E:\dev\chatgpt\temp11\peng\final\ENGLISH_output.mp4" -i "E:\dev\chatgpt\background.mp3" -filter_complex "[1:a]volume=0.2[a1];[0:a][a1]amix=inputs=2:duration=longest[a]" -map 0:v -map "[a]" -c:v copy -c:a aac -shortest "E:\dev\chatgpt\temp10\peng\final\ENGLISH_output_background.mp4"&#xA;

    &#xA;

    the background music isn't played in the parts with the "video generated from images".&#xA;Even VLC sometimes have problem displaying all parts correctly - that's why I added Youtube-links - this seems to work somehow.

    &#xA;

    Does anyone have a clue how I can investigate further ?

    &#xA;

    I tried converting both, the final video-file and the generated clip from images into different formats with different framerates - but nothing worked

    &#xA;

    Thanks in advance !

    &#xA;

    Endfile with backgroundmusic&#xA;Dropbox :&#xA;https://www.dropbox.com/scl/fi/peouyis2eezakc91mzfvt/ENGLISH_output_background.mp4?rlkey=4yfcyxzvh6fa3w0qxbiaz4auf&dl=1&#xA;Youtube :&#xA;https://www.youtube.com/watch?v=9gV6wP08lWA

    &#xA;

    Without backgroundmusic&#xA;https://www.dropbox.com/scl/fi/7543al9kngtkdy92rqhe3/ENGLISH_output.mp4?rlkey=og6jnxgbqwc2r6gxg2xpphfwc&dl=1&#xA;Youtube :&#xA;https://www.youtube.com/shorts/1zIRFs6bYgU

    &#xA;

    Standalone file - generated from images :&#xA;https://www.dropbox.com/scl/fi/cy46ngkvoofnf7mur420i/3_runway_final.mp4?rlkey=70emr5t9dv53s5rcz4qaygwla&dl=1

    &#xA;

    Edit :

    &#xA;

    Download Single Images of one Video :&#xA;https://www.dropbox.com/scl/fi/817kakf1sksqfnulv1cja/singleimagesofonevideo.7z?rlkey=xkc73s7z8rfkp1js2epuzebs0&dl=1

    &#xA;

    All Videos :&#xA;https://www.dropbox.com/scl/fi/817kakf1sksqfnulv1cja/singleimagesofonevideo.7z?rlkey=xkc73s7z8rfkp1js2epuzebs0&dl=1

    &#xA;

    ffprobe of "normal" video :

    &#xA;

    ffprobe.exe ENGLISH_0.mp4&#xA;ffprobe version 6.1.1-full_build-www.gyan.dev Copyright (c) 2007-2023 the FFmpeg developers&#xA;built with gcc 12.2.0 (Rev10, Built by MSYS2 project)&#xA;configuration : —enable-gpl —enable-version3 —enable-static —pkg-config=pkgconf —disable-w32threads —disable-autodetect —enable-fontconfig —enable-iconv —enable-gnutls —enable-libxml2 —enable-gmp —enable-bzlib —enable-lzma —enable-libsnappy —enable-zlib —enable-librist —enable-libsrt —enable-libssh —enable-libzmq —enable-avisynth —enable-libbluray —enable-libcaca —enable-sdl2 —enable-libaribb24 —enable-libaribcaption —enable-libdav1d —enable-libdavs2 —enable-libuavs3d —enable-libzvbi —enable-librav1e —enable-libsvtav1 —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxavs2 —enable-libxvid —enable-libaom —enable-libjxl —enable-libopenjpeg —enable-libvpx —enable-mediafoundation —enable-libass —enable-frei0r —enable-libfreetype —enable-libfribidi —enable-libharfbuzz —enable-liblensfun —enable-libvidstab —enable-libvmaf —enable-libzimg —enable-amf —enable-cuda-llvm —enable-cuvid —enable-ffnvcodec —enable-nvdec —enable-nvenc —enable-dxva2 —enable-d3d11va —enable-libvpl —enable-libshaderc —enable-vulkan —enable-libplacebo —enable-opencl —enable-libcdio —enable-libgme —enable-libmodplug —enable-libopenmpt —enable-libopencore-amrwb —enable-libmp3lame —enable-libshine —enable-libtheora —enable-libtwolame —enable-libvo-amrwbenc —enable-libcodec2 —enable-libilbc —enable-libgsm —enable-libopencore-amrnb —enable-libopus —enable-libspeex —enable-libvorbis —enable-ladspa —enable-libbs2b —enable-libflite —enable-libmysofa —enable-librubberband —enable-libsoxr —enable-chromaprint&#xA;libavutil 58. 29.100 / 58. 29.100&#xA;libavcodec 60. 31.102 / 60. 31.102&#xA;libavformat 60. 16.100 / 60. 16.100&#xA;libavdevice 60. 3.100 / 60. 3.100&#xA;libavfilter 9. 12.100 / 9. 12.100&#xA;libswscale 7. 5.100 / 7. 5.100&#xA;libswresample 4. 12.100 / 4. 12.100&#xA;libpostproc 57. 3.100 / 57. 3.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'ENGLISH_0.mp4' :&#xA;Metadata :&#xA;major_brand : isom&#xA;minor_version : 512&#xA;compatible_brands : isomiso2avc1mp41&#xA;encoder : Lavf60.16.100&#xA;Duration : 00:00:03.38, start : 0.000000, bitrate : 238 kb/s&#xA;Stream #0:00x1 : Video : h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(progressive), 1080x1920, 160 kb/s, 25 fps, 25 tbr, 12800 tbn (default)&#xA;Metadata :&#xA;handler_name : VideoHandler&#xA;vendor_id : [0][0][0][0]&#xA;encoder : Lavc60.31.102 libx264&#xA;Stream #0:10x2 : Audio : aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s (default)&#xA;Metadata :&#xA;handler_name : SoundHandler&#xA;vendor_id : [0][0][0][0]

    &#xA;