Recherche avancée

Médias (0)

Mot : - Tags -/images

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

Autres articles (112)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (12156)

  • webm_dash_manifest_demuxer : Fix UB in cue timestamp string code and make it actually...

    20 avril 2017, par Derek Buitenhuis
    webm_dash_manifest_demuxer : Fix UB in cue timestamp string code and make it actually work
    

    Output was apparently not tested for correctness. Passing overlapping
    memory to snprintf causes undefined behavior, and usually resulted in
    only the very last timestamp being written to metadata, and not a list
    at all.

    Signed-off-by : Derek Buitenhuis <derek.buitenhuis@gmail.com>

    • [DH] libavformat/matroskadec.c
  • avcodec/htmlsubtitles : Check for string truncation and return error

    5 mai 2017, par Michael Niedermayer
    avcodec/htmlsubtitles : Check for string truncation and return error
    

    Fixes out of array access
    Fixes : 1354/clusterfuzz-testcase-minimized-5520132195483648

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/htmlsubtitles.c
    • [DH] libavcodec/htmlsubtitles.h
  • 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