Recherche avancée

Médias (91)

Autres articles (38)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

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

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (3453)

  • I build my android app with NDK and ffmpeg. but, it need to include this file intrin.h

    23 janvier 2020, par Pradeep Simba

    when i build with NDK. It comes like this

    C :/Users/asus/AppData/Local/Android/Sdk/android-ndk-r21/build//../toolchains/llvm/prebuilt/windows-x86_64\lib64\clang\9.0.8\include\intrin.h:12:15 : fatal error : ’intrin.h’ file not found #include_next
    1 error generated.
    make : *** [C :/Users/asus/AppData/Local/Android/Sdk/android-ndk-r21/build//../build/core/build-binary.mk:476 : obj/local/arm64-v8a/objs/ffmpeg/ffmpeg-jni.o] Error 1

    1. how can i solve this ?

    2. it need to include this #include_next .but ,where i can include this .h file ?

  • How to reduce bit rate of an audio file using ffmpeg in java

    26 mars 2015, par Mehandi Hassan

    How to reduce bit rate of an audio file using ffmpeg in java

    I am not able to pass more then 4 argument in process builder.

    Here the code for video and i want audio.

    ProcessBuilder pb = new ProcessBuilder(
                               "ffmpeg",
                               "-i",
                               "C:/Users/Amit/Videos/Wildlife.wmv",
                               "C:/Users/Amit/Videos/Wildlife12.avi");
  • Background process that is run on file is still running after the file is deleted

    19 octobre 2015, par Marko Djokic

    So i have a process in Android that is run like this :

      process = Runtime.getRuntime().exec(commandString);
      Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
           public void run() {
                Log.d("ShutDownHook Called");
                process.destroy();
           }
      }));

    Where the command string contains a file path and some other arguments.
    That process is a CPU heavy process and can take last as long as a few hours (Movie transcoding). The file is an ffmpeg static file. The problem is in some cases the process stays in the background even though i killed the app. That situation is on one of my phones when i kill the app with the task manager. That being said, the onDestroy() method is not called, nor is the onTerminate() from the application class, nor the shutdown hook from above.

    Also i have created a background service with a notification, so when exit the app the service should stay in the background. Even with this kind of control, when i kill the application with the task manager, the service is restarted and i lose all the references to my ffmpeg class, Async task, process etc, and i cannot stop the process because i have null pointers.
    Anyway i can ensure that the service will not be tampered with the app kill, so i can kill the process with the notification bar from my service ?

    ServiceConnection mConnection = new ServiceConnection() {

       public void onServiceDisconnected(ComponentName name) {
           Log.d("HelperActivity", "onServiceDisconnected");
           mIsBound = false;
           mServer = null;
       }

       public void onServiceConnected(ComponentName name, IBinder service) {
           Log.d("HelperActivity", "onServiceConnected");
           mIsBound = true;
           NotificationService.LocalBinder mLocalBinder = (NotificationService.LocalBinder)service;
           mServer = mLocalBinder.getServerInstance();
           //mServer.test();
       }
    };
    //This is the onCreate of the application class
    @Override
    public void onCreate() {
       super.onCreate();
       Intent intent = new Intent(this,
               NotificationService.class);

       startService(intent);
       bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
       Log.d("onCreate", "Called");
       singleton = this;

    }

    I have been using http://hiteshsondhi88.github.io/ffmpeg-android-java/ for the ffmpeg support. Of course added new features but the basic concept of running a ffmpeg command is the same.

    One other strange thing is, when i start the app i delete the previous file, and still the process is running in the background, cause my transcoding performances are halved. The file is copied from assets to the internal storage every time the app is started.

     File ffmpegFile = new File(FileUtils.getFFmpeg(context));
     if (ffmpegFile.exists()) {
           Log.d("File exists!");
           ffmpegFile.delete();
     }

    The file is deleted i checked, but my CPU is still used a lot.
    Sorry for any mistakes during the post, it is my first one.