Recherche avancée

Médias (91)

Autres articles (66)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (4585)

  • FFMPEG set -ss and -to with string

    12 mai 2017, par NewUser

    I know I can set the start with -ss and end with -to but can someone please help me to format the following so that I can enter the -ss and -to with a string ?

    I want -ss to come from

    String start = editStart.getText().toString();

    and -to to come from

    String end = editEnd.getText().toString();

    Here is my ffmpeg string I want to edit, I have entered -ss and -to to show where I want the above strings to be.

    String s = "-i" + " " + mVideoUri.toString().replace("file:///", "") + " -i " + newBackgroundBitmap.getPath() +  " -filter_complex [1:v][0:v]scale2ref=iw:ih[ovr][base];[ovr]colorchannelmixer=aa=0.7[ovrl];[base][ovrl]overlay[v] -ss -to -map [v] -c:v libx264 -preset ultrafast " + directoryToStore + "/" + FileName + mp4;

    String[] arguments = s.split(" ");

    ExecuteFFMPEG(arguments);

    EDIT

    Here is the full ffmpeg

    //Button onclick
    public void onButtonClicked(View view) {
       switch (view.getId()) {

       //WHEN THE EXPORT BUTTON IS CLICKED
       case Export:
           String s = "-i" + " " + mVideoUri.toString() + " -i " + newBackgroundBitmap.getPath() + " -filter_complex [1:v][0:v]scale2ref=iw:ih[ovr][base];[ovr]colorchannelmixer=aa=0.7[ovrl];[base][ovrl]overlay[v] -map [v] -c:v libx264 -preset ultrafast " + directoryToStore + "/" + lastSaved + mp;
           String[] arguments = s.split(" ");
           ExecuteFFMPEG(arguments);

       }
    }

    //Added onLoad FFMPEG
    public void LoadFFMPEG() {

       FFmpeg ffmpeg = FFmpeg.getInstance(getBaseContext());
       try {
           ffmpeg.loadBinary(new LoadBinaryResponseHandler() {

               @Override
               public void onStart() {
                   super.onStart();

               }

               @Override
               public void onFailure() {
                   super.onFailure();
               }

               @Override
               public void onSuccess() {
                   super.onSuccess();

               }

               @Override
               public void onFinish() {
                   super.onFinish();
               }
           });
       } catch (FFmpegNotSupportedException e1) {
           e1.printStackTrace();
           Log.d("[FFMPEGMain Exception]-", e1.toString());
       }
    }

    //Added Exceute FFMPEG
    public void ExecuteFFMPEG(String[] command) {


       FFmpeg ffmpeg = FFmpeg.getInstance(getBaseContext());
       try {

           ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {

               @Override
               public void onStart() {
                   super.onStart();
                   Log.d("[Start]", "start");

               }

               @Override
               public void onProgress(String message) {
                   Log.d("[Progress]", message);
               }

               @Override
               public void onFailure(String message) {
                   Log.d("[fail]", message);
               }

               @Override
               public void onSuccess(String message) {
                   Log.d("[Success]", message);


               }


               @Override
               public void onFinish() {
                   super.onFinish();
                   Log.d("[Finish]", "file output done");

               }

           });
       } catch (FFmpegCommandAlreadyRunningException e) {
           // Handle if FFmpeg is already running
           Log.d("[FFMPEG Exception]-", e.toString());

       }


    }

    The above works perfectly as I was hoping. Now I want to set the start and end of the video (depending on the position the user selected). I get the start and end of the video back as a string, like this :

    String valueRight = formatter.format(getValueRight);
    String valueLeft = formatter.format(getValueLeft);

    //this strings will return 00:00:00.000 DEPENDING on the position from the user
    //just like when you would normally call -ss 00:00:50.849 -to 00:02:05.100

    As I mentioned above that I know it should be set as -ss and -to but I am looking for a wat to format my string to enter -ss and -to with a string, somthing like this :

    -ss valueLeft -to valueRight

  • Evolution #3973 : Brancher inc/distant recuperer_url() sur une librairie récente

    8 octobre 2018, par b b

    Super, il faudrait peut-être commencer par un travail de recensement des librairies disponibles pour ça ? (je peux m’y coller)

  • Anomalie #3921 : verifier url site

    23 mars 2017, par jluc -

    Oui, super ! ça marche bien avec demo.spip.net

    ou bien au choix :

    Oui, désolé ! excusez le dérangement...