Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (48)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (6888)

  • ffmpeg in server cant upload video over 4 minutes

    12 octobre 2020, par Victor01288888

    here's my code

    


      ffmpeg(stream)
      .output(videoPath)
      .on("start", function () {
        console.log("Starting video compression... please wait...");
      })
      .on("error", function (err) {
        console.log("Something went wrong: " + err.message + " " + err.name);
      })
      .outputOptions(
        "-vcodec",
        "libx264",
        "-crf",
        "35", // change the crf value: high = lower quality & size, low = higher quality & size
        "-format",
        "mp4"
      )
      .on("progress", function (progress) {
        console.log(
          "Processing: " +
            Math.round(progress.currentKbps / progress.targetSize) +
            "% done"
        );
      })
      .on("end", async function () {
        console.log("[ffmpeg] processing done");
        // finish compressing then upload to S3
        console.log("uploading to S3... please wait");
        // const stream2 = await fileType.stream(createReadStream());
        let stream2 = fs.createReadStream(videoPath);
        // saving data in aws(s3)
        let origin = uploadToS3(`${newFileName}`);
        stream2.pipe(origin.writeStream);

        origin && (await origin.promise);
        await Video.updateOne({ _id: video._id }, { status: "success" });

        // del tmp video
        fs.unlink(videoPath, (err) => {
          if (err) {
            console.error(err);
          }
          console.log("Converted file delete from tmp folder server");
        });
      })
      .run();


    


    I uses this code in my server.
If I upload video in 1 minute it's ok.
But when I upload one more then 4 minute it just not appears in AWS.
and the journey only writes 0% without any error.

    


  • Pull a remote stream from server and then restream

    16 août 2018, par F.A

    I my working on Nginx RTMP server to restream iptv. I have two type of urls

    1- http://expamle.com:46801/live/3ni/ab/11939.ts

    2-
    http://example.com:8088/live/tv_10/playlist.m3u8?id=209&sionid=45&pk=54fb381ea

    Both URL’s work in VLC media player.

    Now problem is that ffmpeg exec only URL with .ts extension. but
    not exec url without extension at end.

    How to pull stream from a remote server for that URL which not have .ts extension ?

     exec_static ffmpeg -i http://example.com:80/live/sports_11/playlist.m3u8?id=209&sionid=45&pk=54fb31ea -c:v libx264 -preset veryfast -maxrate 1000k -bufsize 2000k -g 60 -b:a 128k -f flv rtmp://127.0.0.1;
  • Unable to install anything on CentOS 6 server [on hold]

    8 janvier 2016, par Jayendra

    When I am trying to anything on the CentOS 6 dedicated server, I get following error everytime.

    Loaded plugins: fastestmirror
    Setting up Install Process
    Error: File contains no section headers.
    file: file:///etc/yum.repos.d/dag.repo, line: 1
    '[dag] name=Dag RPM Repository for Red Hat Enterprise Linux\n'

    When I download the package it gets downloaded perfectly, but when I try to install that package like,

    yum install ffmpeg

    I get the same error as shown above.

    My repo file contents are as shown below.

    [dag] name=Dag RPM Repository for Red Hat Enterprise Linux
    baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
    gpgcheck=1
    enabled=1

    Can anyone help me, how I can overcome this error ?

    Thanks.