Recherche avancée

Médias (0)

Mot : - Tags -/interaction

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

Autres articles (91)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (7121)

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

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

    26 juin 2020, par sknagu05
    @echo off

rem echo %~F0
rem echo %~F1

Set filename=%~F0
For %%A in ("%filename%") do (
    Set Folder=%%~dpA
    Set Name=%%~nxA
)

Set filename1=%~F1
For %%B in ("%filename1%") do (
    Set Folder1=%%~dpB
    Set Name1=%%~nxB
)

rem echo "%Folder1%"
rem echo "%Name1%"
rem pause

cd "%Folder1%"

TITLE Mp4 Video 1 Click - FFMPEG v.4.2.2 32-bit - Encode to HLS (software libx264)

set PATH=%Folder%;%SYSTEMROOT%\SysWOW64;%SYSTEMROOT%\System32


ffmpeg.exe -i "%Name1%" -profile:v baseline -level 3.0 -start_number 0 -hls_time 10 -hls_list_size 0 -f hls "%Name1%.m3u8"


    


  • How can I convert multiple images to a video file while keeping the same file name ? [duplicate]

    13 juillet 2015, par Ertzi

    This question already has an answer here :

    My intention would be to get at the same time, picture1.jpg, picture2.jpg, picture3.jpg to video format such as picture1.mp4, picture2.mp4, picture3.mp4.

    I am currently using Mencoder and Linux bash code mencoder mf: //*.jpg -mf w = 1366: h = 768: fps = 6/60: type = jpg -ovc copy -oac copy -o images.mp4. But this command makes all the images into one video file (images.mp4).

    Can I do it with mencoder or ffmpeg ?
    My linux bash coding skills are basic.