Recherche avancée

Médias (91)

Autres articles (87)

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Liste des distributions compatibles

    26 avril 2011, par

    Le tableau ci-dessous correspond à la liste des distributions Linux compatible avec le script d’installation automatique de MediaSPIP. Nom de la distributionNom de la versionNuméro de version Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    Si vous souhaitez nous aider à améliorer cette liste, vous pouvez nous fournir un accès à une machine dont la distribution n’est pas citée ci-dessus ou nous envoyer le (...)

Sur d’autres sites (5045)

  • FFMPEG : Invalid data found when processing input

    16 mars, par Schüler

    I am unable to upload mp3 or mp4 is there any specific path format ? Here is my code. I have tried this also ffmpeg -i Video/" &#x2B; Name &#x2B; " -ss 01:30 -r 1 -an -vframes 1 -f mjpeg Video/" &#x2B; Name &#x2B; ".jpg

    &#xA;&#xA;

    exec("ffmpeg -y -i Video/" &#x2B; Name &#x2B; " -map_metadata -1 -ab 192k Video/" &#x2B; Name &#x2B; ".jpg", function(err) {&#xA;            if (err) {console.log(err)}&#xA;        console.log(&#x27;Done&#x27;, {&#x27;Image&#x27; : &#x27;Video/&#x27; &#x2B; Name &#x2B; &#x27;.jpg&#x27;});&#xA;        });&#xA;

    &#xA;&#xA;

    Here is the error

    &#xA;&#xA;

    { Error: Command failed: ffmpeg -y -i Video/ac9358e25dd41a69e95a72d3e71e4881 -map_metadata -1 -ab 192k Video/ac9358e25dd41a69e95a72d3e71e4881.jpg&#xA;ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with gcc 8.2.1 (GCC) 20190212&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth&#xA;  libavutil      56. 22.100 / 56. 22.100&#xA;  libavcodec     58. 35.100 / 58. 35.100&#xA;  libavformat    58. 20.100 / 58. 20.100&#xA;  libavdevice    58.  5.100 / 58.  5.100&#xA;  libavfilter     7. 40.101 /  7. 40.101&#xA;  libswscale      5.  3.100 /  5.  3.100&#xA;  libswresample   3.  3.100 /  3.  3.100&#xA;  libpostproc    55.  3.100 / 55.  3.100&#xA;Video/ac9358e25dd41a69e95a72d3e71e4881: Invalid data found when processing input&#xA;&#xA;    at ChildProcess.exithandler (child_process.js:275:12)&#xA;    at emitTwo (events.js:126:13)&#xA;    at ChildProcess.emit (events.js:214:7)&#xA;    at maybeClose (internal/child_process.js:925:16)&#xA;    at Socket.stream.socket.on (internal/child_process.js:346:11)&#xA;    at emitOne (events.js:116:13)&#xA;    at Socket.emit (events.js:211:7)&#xA;    at Pipe._handle.close [as _onclose] (net.js:557:12)&#xA;  killed: false,&#xA;  code: 1,&#xA;  signal: null,&#xA;  cmd: &#x27;ffmpeg -y -i Video/ac9358e25dd41a69e95a72d3e71e4881 -map_metadata -1 -ab 192k Video/ac9358e25dd41a69e95a72d3e71e4881.jpg&#x27; }&#xA;

    &#xA;

  • android : Merge two audio files to one using FFMPEG

    27 mars 2019, par Asif Sb

    I have been stuck from the past two days, couldn’t able to figure out what went wrong.

    Log.d(TAG, "doInBackground: wee");
    String s = "-i ["+fileName+"] -i ["+fileName3+"] -filter_complex amerge -ac 2 -c:a libmp3lame -q:a 4 ["+finalAudio+"]";
    String[] cmd=s.split(" ");
    mergeMediaFiles(RecordActivity.this,cmd);

    And I am getting the following error.

    2019-03-27 11:38:03.525 12912-13042/com.encrypt.audiorecord E/FFmpeg: Exception while trying to run: [Ljava.lang.String;@4bfef23
       java.io.IOException: Cannot run program "/data/user/0/com.encrypt.audiorecord/files/ffmpeg": error=2, No such file or directory
           at java.lang.ProcessBuilder.start(ProcessBuilder.java:1050)
           at java.lang.Runtime.exec(Runtime.java:695)
           at java.lang.Runtime.exec(Runtime.java:560)
           at com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10)
           at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38)
           at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10)
           at android.os.AsyncTask$2.call(AsyncTask.java:333)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
           at java.lang.Thread.run(Thread.java:764)
        Caused by: java.io.IOException: error=2, No such file or directory
           at java.lang.UNIXProcess.forkAndExec(Native Method)
           at java.lang.UNIXProcess.<init>(UNIXProcess.java:133)
           at java.lang.ProcessImpl.start(ProcessImpl.java:132)
           at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
           at java.lang.Runtime.exec(Runtime.java:695) 
           at java.lang.Runtime.exec(Runtime.java:560) 
           at com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10) 
           at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38) 
           at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10) 
           at android.os.AsyncTask$2.call(AsyncTask.java:333) 
           at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
           at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245) 
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 
           at java.lang.Thread.run(Thread.java:764) 
    </init>

    And I followed this link to integrate FFMPEG to the android app.

    Below is my mergeMediaFiles() method :

    public void mergeMediaFiles(Context context,String[] cmd) {
           FFmpeg ffmpeg = FFmpeg.getInstance(context);
           try {
               // to execute "ffmpeg -version" command you just need to pass "-version"
               ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {

                   @Override
                   public void onStart() {
                   }

                   @Override
                   public void onProgress(String message) {
                   }

                   @Override
                   public void onFailure(String message) {
                   }

                   @Override
                   public void onSuccess(String message) {
                   }

                   @Override
                   public void onFinish() {
                   }
               });
           } catch (FFmpegCommandAlreadyRunningException e) {
               //
           }
       }

    And the path of all my files are from cacheDir

    fileName = getExternalCacheDir().getAbsolutePath();
           fileName += "/audiorecordtest.wav";
  • I have a problem withInvalid file index 1 in filtergraph description

    17 avril 2019, par Davide

    This is my code :

    ffmpeg -i wireframe-spendo.mov palette.png -filter_complex fps=25,scale=800:600:flags=lanczos[x],[x][1:v]paletteuse wireframe-spendo.gif

    but after then :

    ffmpeg -i wireframe-spendo.mov palette.png -filter_complex fps=25,scale=800:600:flags=lanczos[x],[x][1:v]paletteuse wireframe-spendo.gif
    ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
     built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.3 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/openjdk-12.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/openjdk-12.jdk/Contents/Home/include/darwin' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr
     libavutil      56. 22.100 / 56. 22.100
     libavcodec     58. 35.100 / 58. 35.100
     libavformat    58. 20.100 / 58. 20.100
     libavdevice    58.  5.100 / 58.  5.100
     libavfilter     7. 40.101 /  7. 40.101
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  3.100 /  5.  3.100
     libswresample   3.  3.100 /  3.  3.100
     libpostproc    55.  3.100 / 55.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'wireframe-spendo.mov':
     Metadata:
       major_brand     : qt  
       minor_version   : 0
       compatible_brands: qt  
       creation_time   : 2019-04-17T09:38:24.000000Z
       com.apple.quicktime.make: Apple
       com.apple.quicktime.model: iMac12,2
       com.apple.quicktime.software: Mac OS X 10.13.6 (17G6029)
       com.apple.quicktime.creationdate: 2019-04-17T11:37:00+0200
     Duration: 00:00:16.42, start: 0.000000, bitrate: 3170 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1476x1074 [SAR 1:1 DAR 246:179], 3163 kb/s, 60 fps, 60 tbr, 6k tbn, 12k tbc (default)
       Metadata:
         creation_time   : 2019-04-17T09:38:24.000000Z
         handler_name    : Core Media Video
         encoder         : H.264

    output terminal says :

    Invalid file index 1 in filtergraph description fps=25,scale=800:600:flags=lanczos[x],[x][1:v]paletteuse.