Recherche avancée

Médias (0)

Mot : - Tags -/publication

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

Autres articles (68)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • 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 (5184)

  • How do you run ffmpeg from Java, without crashing ?

    30 juin 2024, par WinnieTheDampoeh

    I try running ffmpeg from Java, and for a couple of moments everything is working fine. I want ffmpeg to record my screen, and split the recording into small clips. The command is working fine from the terminal, but when I run it from Java I get at most 3 clips. Ffmpeg doesn't write anything to the InputStream, so I have no idea what's going wrong.

    


    public static void execute(int frameRate, int width, int height, String windowTitle) {
      String[] args = new String[]{
              path,
              "-hide_banner",
              "-f", "gdigrab",
              "-thread_queue_size", "1024",
              "-rtbufsize", "256M",
              "-framerate", "" + frameRate,
              "-offset_x", "0",
              "-offset_y", "0",
              "-video_size", "" + width + "x" + height,
              "-draw_mouse", "1",
              "-i", "title=" + windowTitle,
              "-c:v", "libx264",
              "-r", "" + frameRate,
              "-preset", "ultrafast",
              "-tune", "zerolatency",
              "-crf", "28",
              "-pix_fmt", "yuv420p",
              "-movflags", "+faststart",
              "-y",
              "-f", "segment",
              "-reset_timestamps", "1",
              "-segment_time", "1",
              "output%06d.mp4"
      };

      try {
          Process p = Runtime.getRuntime().exec(args);
          Thread thread = new Thread(() -> {
              String line;
              BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));

              System.out.println("TEST");
              try {
                  while ((line = input.readLine()) != null)
                      System.out.println(line);

                  System.out.println("Stopping with reading");
                  input.close();
              } catch (IOException e) {
                  e.printStackTrace();
              }
          });
          int exitCode = p.waitFor();
          thread.start();
          thread.join();
          if (exitCode != 0) {
              throw new RuntimeException("FFmpeg exited with code " + exitCode);
          }
      } catch (IOException | InterruptedException e) {
          throw new RuntimeException(e);
      }
  }


    


    I've run the same command in the terminal. That worked fine. I ran the code above, but that resulted in ffmpeg stopping after 3 clips. It kept showing as working from the task manager. As said before, ffmpeg doesn't write anything to the InputStream, even though it normally does write a lot in the terminal. The weird thing is, when I stop my Java program, but accidentally keep ffmpeg running, it suddenly does everything I wanted it to. It didn't capture the things between stopping and closing Java, but after that it continues like it should have.

    


  • why ffmpeg muxingoverhead:unknown ?

    17 mai 2021, par 전재현

    i put on mac terminal ffmpeg -video_size 1280x1344 -r 25 -pix_fmt yuv420p -i /usr/local/bin/yuvdata.yuv image%d.png

    


    the result is always video:121123kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : unknown

    


    how to solve this problem ??
Help me please

    


  • How to use ffmpeg while ffserver is running

    19 juillet 2016, par shining2014

    Sorry for such elementary question,but i’m pretty new to Linux commands ,and i want to stream a video over browser ;I know that i should first run ffserver and then enter ff mpeg command but,problem is that when i launch ffserver,the terminal in not accepting ffmpeg code !Is it true ?
    Thanks.