Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (63)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

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

Sur d’autres sites (6666)

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

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

  • FFMPEG convert file output without original file's extension [closed]

    26 juin 2020, par sknagu05
    @echo off&#xA;&#xA;rem echo %~F0&#xA;rem echo %~F1&#xA;&#xA;Set filename=%~F0&#xA;For %%A in ("%filename%") do (&#xA;    Set Folder=%%~dpA&#xA;    Set Name=%%~nxA&#xA;)&#xA;&#xA;Set filename1=%~F1&#xA;For %%B in ("%filename1%") do (&#xA;    Set Folder1=%%~dpB&#xA;    Set Name1=%%~nxB&#xA;)&#xA;&#xA;rem echo "%Folder1%"&#xA;rem echo "%Name1%"&#xA;rem pause&#xA;&#xA;cd "%Folder1%"&#xA;&#xA;TITLE Mp4 Video 1 Click - FFMPEG v.4.2.2 32-bit - Encode to HLS (software libx264)&#xA;&#xA;set PATH=%Folder%;%SYSTEMROOT%\SysWOW64;%SYSTEMROOT%\System32&#xA;&#xA;&#xA;ffmpeg.exe -i "%Name1%" -profile:v baseline -level 3.0 -start_number 0 -hls_time 10 -hls_list_size 0 -f hls "%Name1%.m3u8"&#xA;

    &#xA;