Advanced search

Medias (91)

Other articles (89)

  • MediaSPIP version 0.1 Beta

    16 April 2011, by

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 September 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 (...)

  • Mise à jour de la version 0.1 vers 0.2

    24 June 2013, by

    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 profit de (...)

On other websites (11638)

  • Download hls stream without losing quality

    1 March 2018, by Sinan Güler

    I tried using -i "input.m3u8" -codec:v copy -codec:a copy output.mp4
    The hls stream is in ts.

    I don’t think I’m getting the best quality, sometimes the video lags for a sec or two, audio is intact anyway.

    Am I using the right command line?

  • youtube-dl download one minute per every 5 minutes (on a twitch video, but i have the local file saved too if easier)

    18 May 2016, by babadoctor

    I would like to do what the title says

    This is a ffmpeg command to download from a specific time in a video, offline or online.

    ffmpeg -ss (stop time) -i (direct video link) -t (start time) -c:v copy -c:a copy (title.mp4)

    I am going to be downloading this on OSX.
    I dont care what the title is.

    I think* there is a bash command that allows me to change the timings in this command up by a specific amount (+300 seconds per, the counter for start and stop time is in raw seconds)

    So, bash script that runs that command but increases the start and stop times incrementally by 300 (the stop timing being 60+ seconds ahead), downloads, then repeats.

  • Merging 2 videos using JavaCV, application does not crash, but stops responding

    27 June 2013, by rosu alin

    This is the code I use:

    public void stopRecording() throws Exception, com.googlecode.javacv.FrameRecorder.Exception {

       runAudioThread = false;

       if (recorder != null && recording) {
           recording = false;
           Log.v(LOG_TAG, "Finishing recording, calling stop and release on recorder");
           try {
               recorder.stop();
               recorder.release();
           } catch (FFmpegFrameRecorder.Exception e) {
               e.printStackTrace();
           }

       }
       Log.i(LOG_TAG, "filename = " + ffmpeg_link);
       if (i > 0) {
           Log.i(LOG_TAG, "!!!!!!!!!WILL CONCATENATE");
           FrameGrabber grabber1 = new FFmpegFrameGrabber(pathStart + "/JavaCV/stream0.mp4");
           grabber1.start();
           Log.i(LOG_TAG, "graber1.start");
           FrameGrabber grabber2 = new FFmpegFrameGrabber(pathStart + "/JavaCV/stream1.mp4");
           grabber2.start();
           Log.i(LOG_TAG, "graber2.start");
           FrameRecorder recorder2 = new FFmpegFrameRecorder(pathStart + "/JavaCV/output.mp4", grabber1.getImageWidth(), grabber1.getImageHeight(), grabber1.getAudioChannels());
           recorder2.setFrameRate(grabber1.getFrameRate());
           recorder2.setSampleFormat(grabber1.getSampleFormat());
           recorder2.setSampleRate(grabber1.getSampleRate());
           Log.i(LOG_TAG, "Recorder.start");
           recorder2.start();
           Frame frame;
           int j = 0;
           while ((frame = grabber1.grabFrame()) != null) {
               j++;
               recorder2.record(frame);
               Log.i(LOG_TAG, "while1 nr:" + j + "Frame number: " + grabber1.getFrameNumber());
           }
           Log.i(LOG_TAG, "after while1");
           while ((frame = grabber2.grabFrame()) != null) {
               recorder2.record(frame);
               Log.i(LOG_TAG, "while2");
           }
           Log.i(LOG_TAG, "Recorder.stop");
           recorder2.stop();
           grabber2.stop();
           grabber1.stop();
           Log.i(LOG_TAG, "end concatenate");
       }
       i++;
       ffmpeg_link = pathStart + "/JavaCV/stream" + i + ".mp4";
       Log.i(LOG_TAG, "next filename = " + ffmpeg_link);
    }

    Now First i've got the int i which if it's 0, then it's the first video created, and will ignore merging, and then its going to be incremented, and on the second video, it will enter the merging code.
    Now, i've put a lot of log's and from what I can see, it enters my first while function from the merge code:

    while ((frame = grabber1.grabFrame()) != null) {
               j++;
               recorder2.record(frame);
               Log.i(LOG_TAG, "while1 nr:" + j + "Frame number: " + grabber1.getFrameNumber());
           }

    It does not crash, but at a time, it stops, and then it doesn't do anything. If it would be stuck in the while function, then my log should continue to appear. But like this it stops, and then it does not go into the second while (i do not get the log after while1.
    What could be the problem? It does not force crash, LogCat doesn't show me any errors, it just does not continue to the second while