Recherche avancée

Médias (91)

Autres articles (60)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (3546)

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

    


  • ffmpeg transcoded video turns gray

    6 avril 2023, par santhosh duraipandiyan

    Iam using this package for multi-bitrate hls transcoding. It was working fine before now the 480p transcoding results in graying out in the middle of the video. i tried to google it but couldn't find anything useful.

    


    There is no errors on the logs too. so iam clueless here.

    


  • What to transcode my media library ?

    31 octobre 2017, par testname123

    I’ve got a bunch of movies in a folder that’s on a laptop running a Plex server. Some movies play fine, and others don’t buffer at all.

    Is there an FFMPEG conversion command that will convert them all to a format that Plex will just play natively ?