Recherche avancée

Médias (0)

Mot : - Tags -/organisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (40)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Initialisation de MediaSPIP (préconfiguration)

    20 février 2010, par

    Lors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
    Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
    Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
    Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)

Sur d’autres sites (9254)

  • ffmpeg Exception : Working Directory : null Environment : null

    13 décembre 2016, par Dylan

    Creating the Android app, I am trying to crop video using ffmpeg library and store it in the app directory. I created the command :

    String command = "ffmpeg -i /storage/emulated/0/DMC/diamondVideo.mp4 -vf crop=471:592:162:462 -c:a copy /storage/sdcard0/DMC/diamondVideoCropped.mp4";
    String[] cmd = command.toString().split(" ");

    After that I pass this command to the AsyncTask :

    new CropVideoTask().execute(cmd);

    And in my AsyncTask I execute this command :

    private class CropVideoTask extends AsyncTask {
    protected Void doInBackground(String[]... cmd) {
      FFmpeg ffmpeg = FFmpeg.getInstance(getContext());
      try {
          ffmpeg.execute(cmd[0], 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) {
          // Handle if FFmpeg is already running
      }
      return null;
    }

    After the code enters in onStart method, it throw an Exception :

    12-13 15:43:02.832 28941-32324/com.example.dmc E/FFmpeg: Exception while trying to run: [Ljava.lang.String;@42851b38
                                                           java.io.IOException: Error running exec(). Command: [/data/data/com.studioidan.dmc/files/ffmpeg, ffmpeg, -i, /storage/sdcard0/DMC/diamondVideo.mp4, -vf, crop=471:592:162:462, -c:a, copy, /storage/sdcard0/DMC/diamondVideoCropped.mp4] Working Directory: null Environment: null
                                                               at java.lang.ProcessManager.exec(ProcessManager.java:211)
                                                               at java.lang.Runtime.exec(Runtime.java:168)
                                                               at java.lang.Runtime.exec(Runtime.java:123)
                                                               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:287)
                                                               at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
                                                               at java.util.concurrent.FutureTask.run(FutureTask.java:137)
                                                               at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
                                                               at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
                                                               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
                                                               at java.lang.Thread.run(Thread.java:856)
                                                            Caused by: java.io.IOException: No such file or directory
                                                               at java.lang.ProcessManager.exec(Native Method)
                                                               at java.lang.ProcessManager.exec(ProcessManager.java:209)
                                                               at java.lang.Runtime.exec(Runtime.java:168)
                                                               at java.lang.Runtime.exec(Runtime.java:123)
                                                               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:287)
                                                               at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
                                                               at java.util.concurrent.FutureTask.run(FutureTask.java:137)
                                                               at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
                                                               at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
                                                               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
                                                               at java.lang.Thread.run(Thread.java:856)

    Manifest.xml contains premission

    Did I miss something ?

  • Problems with ffmpeg build in Xcode

    16 décembre 2016, par jon

    Hi I have a problem with getting ffmpeg libraries to build in my Xcode project. It is in C++ . I have installed it using homebrew and have checked that all the correct libraries have installed via terminal. I have tried with and without extern C as I know it is a c library.

    #include <iostream>
    #include <opencv2></opencv2>opencv.hpp>

    #include <libavformat>

    //extern "C" {
    //    #include <libavformat>
    //}
    </libavformat></libavformat></iostream>

    The linker flags have been set by using (e.g. pkg-config —libs libavcodec) in terminal and these flags do not throw up an error when building. The header files are also found with no problems as the autocomplete flags them top while typing.

    Please see attached pictures for Xcode build settings. Really stuck pease helpXcode build settings

    Xcode build settings 2

  • opencv2 can't load video on mac

    28 novembre 2016, par bogun

    I can’t use cv2.VideoCapture(’test.avi’) to load my local video.
    I had installed ffmpeg using brew install ffmpeg
    When i try to run the code cv2.VideoCapture(test.avi), the python process will crash, here is the error log :

    '2016-11-28 18:18:47.768 Python[20241:277423] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array

    *** First throw call stack :
    (
    0 CoreFoundation 0x00007fffa44b148b __exceptionPreprocess + 171
    1 libobjc.A.dylib 0x00007fffb8c13cad objc_exception_throw + 48
    2 CoreFoundation 0x00007fffa43cad8c -[__NSArrayM objectAtIndex :] + 204
    3 libopencv_highgui.2.4.dylib 0x0000000109be9270 _ZN13CvCaptureFileC2EPKc + 350
    4 libopencv_highgui.2.4.dylib 0x0000000109be7ce2 _Z32cvCreateFileCapture_AVFoundationPKc + 34
    5 libopencv_highgui.2.4.dylib 0x0000000109bdb7de cvCreateFileCapture + 14
    6 libopencv_highgui.2.4.dylib 0x0000000109bdba8e _ZN2cv12VideoCapture4openERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 64
    7 libopencv_highgui.2.4.dylib 0x0000000109bdb8ee _ZN2cv12VideoCaptureC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 42
    8 cv2.so 0x0000000109387bce _ZL34pyopencv_VideoCapture_VideoCaptureP7_objectS0_S0_ + 275
    9 Python 0x0000000109052534 PyEval_EvalFrameEx + 14624
    10 Python 0x000000010904ea1e PyEval_EvalCodeEx + 1617
    11 Python 0x000000010904e3c7 PyEval_EvalCode + 48
    12 Python 0x000000010906e63d PyParser_ASTFromFile + 297
    13 Python 0x000000010906e46b PyRun_InteractiveOneFlags + 377
    14 Python 0x000000010906df5f PyRun_InteractiveLoopFlags + 192
    15 Python 0x000000010906de09 PyRun_AnyFileExFlags + 60
    16 Python 0x000000010907fbca Py_Main + 3094
    17 libdyld.dylib 0x00007fffb94f2255 start + 1
    18 ??? 0x0000000000000001 0x0 + 1
    )
    libc++abi.dylib : terminating with uncaught exception of type NSException
    Abort trap : 6

    I guess the video’s codec could be wrong, but i don’t know how to fix it.