Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (45)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

Sur d’autres sites (7146)

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

  • How to use third party drm server in hls conversion in ffmpeg [closed]

    11 janvier 2024, par dilwaria

    Currently I am using AWS Mediaconvert Service to convert any .mp4 video to hls in [360p, 480p and 720p] resolution. Also I am protecting the video using DRM service of third party BUYDRM , that gives an url for licence server.
I want to do this using ffmpeg , i can easily do is to convert in hls of [360p, 480p, 720p] and ffmpeg gives -hls_key_info "uri=keyfile.key" option to do AES encrpytion , but i am not able to find any solution to integrate my 3rd party drm licence server which provide licence at run conversion.
Please help here

    


    fmpeg gives -hls_key_info "uri=keyfile.key" option to do AES encrpytion
So i tried this

    


  • lavf/udp : fix dead code.

    3 juin 2016, par Nicolas George
    lavf/udp : fix dead code.
    

    Since d607861, service can not be NULL, only "0".
    An UDP address with neither local port nor address leaves both
    service and node to their default value, and POSIX specifies
    that they are not allowed to be both NULL ; "0" is equivalent
    to an unspecified port for all currently known protocols.

    Fix CID 1341570.

    • [DH] libavformat/udp.c