Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (61)

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

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

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

Sur d’autres sites (8375)

  • Firefox does not support mkv format videos, need to convert video to mp4

    21 mai 2021, par sambhav jain

    I am making a screen recorder app that records your screen and upload the video to the s3 bucket. the video is in mpv format. the mkv format is supported by chrome, edge but not by firefox. Firefox supports the mp4 format. so how do I convert the video to mp4 format for firefox ? videofile is in mkv which needs to be converted to mp4

    


    handleUpload() {
    for (let i = 0; i < this.files.length; i++) {
      this.awsUploadService
        .getSignedUrlS3(this.files[i]["name"], this.files[i]["type"])
        .subscribe(
          ({ url, keyFile }) => {
            this.awsUploadService
              .uploadfileAWSS3(url, this.files[i]["type"], this.files[i])
              .subscribe(
                (data) => {
                  if (data["type"] === 1) {
                    this.files[i]["progress"] =
                      (data["loaded"] / data["total"]) * 100;
                  }
                  if (data["type"] === 4) {
                    this.files[i]["isUploadCompleted"] = true;
                    this.files[i][
                      "uploadLocation"
                    ] = `https://${environment.S3_BUCKET_NAME}.s3.${environment.S3_Region}.amazonaws.com/${keyFile}`;
                  }
                },
                (error) => {
                  this.files[i].isUploadCompleted = false;
                  throw error;
                }
              );
          },
          (error) => {
            this.files[i].isUploadCompleted = false;
            throw error;
          }
        );
    }
  }


    


  • ffmpeg hardcode subtitles, no subtitles but no output error

    8 février 2024, par Rafael Castelo

    I'm trying to hardcode subtitles for a project I'm working on : https://scriptme.io an mp4 files using an external SRT subtitles file.
Despite getting a succesful result as output :

    


    video:3923kB audio:975kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.344595%
[libx264 @ 0x63b08c0] frame I:9     Avg QP:15.65  size: 31298
[libx264 @ 0x63b08c0] frame P:609   Avg QP:20.37  size:  4283
[libx264 @ 0x63b08c0] frame B:1242  Avg QP:23.74  size:   907
[libx264 @ 0x63b08c0] consecutive B-frames:  3.3% 15.4% 23.1% 58.3%
[libx264 @ 0x63b08c0] mb I  I16..4: 21.5% 54.0% 24.5%
[libx264 @ 0x63b08c0] mb P  I16..4:  1.2%  2.7%  0.3%  P16..4: 18.7%  4.2%  1.6%  0.0%  0.0%    skip:71.4%
[libx264 @ 0x63b08c0] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 13.9%  0.6%  0.0%  direct: 0.1%  skip:85.2%  L0:41.5% L1:56.8% BI: 1.7%
[libx264 @ 0x63b08c0] 8x8 transform intra:62.4% inter:86.2%
[libx264 @ 0x63b08c0] coded y,uvDC,uvAC intra: 36.7% 53.0% 15.0% inter: 2.2% 3.1% 0.1%
[libx264 @ 0x63b08c0] i16 v,h,dc,p: 42% 20% 13% 25%
[libx264 @ 0x63b08c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 15% 28%  3%  4%  6%  4%  5%  3%
[libx264 @ 0x63b08c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 23% 14%  4%  6%  7%  5%  4%  2%
[libx264 @ 0x63b08c0] i8c dc,h,v,p: 51% 17% 26%  6%
[libx264 @ 0x63b08c0] Weighted P-Frames: Y:0.2% UV:0.2%
[libx264 @ 0x63b08c0] ref P L0: 69.1%  9.6% 15.1%  6.1%
[libx264 @ 0x63b08c0] ref B L0: 87.2% 10.7%  2.1%
[libx264 @ 0x63b08c0] ref B L1: 97.9%  2.1%
[libx264 @ 0x63b08c0] kb/s:517.69
[aac @ 0x63b3600] Qavg: 257.742


    


    However once I play the video with any player, the subtitles aren't there.

    


    This is the command I'm using for the task

    


    ffmpeg -i https://some-bucket.s3.region.amazonaws.com/my-video.mp4 -f mp4 -vf subtitles=sub.srt subtitled-video.mp4


    


  • Firebase Function using ffmpeg successful with emulator, out of memory when deployed

    25 septembre 2024, par flyingL123

    I need some help. I have a .mov file in Firebase Storage. The file is 25 seconds long and 106 MB. I wrote a callable Firebase function that uses ffmpeg to convert the file to a .mp4 file and save it to Firebase Storage. When I test the function using the Functions emulator, it works without issue. The function returns successfully and I see the converted file appear in storage. The converted video is about 6 MB and plays correctly when dowloaded.

    


    When I deploy this function and run it in production on the exact same video file, the function fails with :

    


    


    'Memory limit of 256 MiB exceeded with 407 MiB used. Consider
increasing the memory limit, see
https://cloud.google.com/functions/docs/configuring/memory'

    


    


    As a test, I edited the function and changed its allocated memory to 1 GiB. Then I test the function again in production. Now I receive the same error :

    


    


    'Memory limit of 1024 MiB exceeded with 1029 MiB used. Consider
increasing the memory limit, see
https://cloud.google.com/functions/docs/configuring/memory'

    


    


    This is my function code :

    


    const {initializeApp} = require("firebase-admin/app");
const {onCall} = require("firebase-functions/v2/https");
const { getStorage, getDownloadURL } = require('firebase-admin/storage');

initializeApp();

exports.convertVideo = onCall((request) => {
  const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
  const ffmpeg = require('fluent-ffmpeg');
  ffmpeg.setFfmpegPath(ffmpegPath);
  const originalLocation = request.data.originalLocation;
  const convertedLocation = request.data.convertedLocation;
  const originalVideoFile = getStorage().bucket().file(originalLocation);
  const newVideoFile = getStorage().bucket().file(convertedLocation);

  return new Promise(async (resolve, reject) => {
    await originalVideoFile.download({destination: '/tmp/original'}).catch(console.error);
    
    ffmpeg('/tmp/original')
      .addOutputOptions('-movflags +frag_keyframe+separate_moof+omit_tfhd_offset+empty_moov')
      .format('mp4')
      .on('error', (err) => {
        console.log(err);
      })
      .pipe(newVideoFile.createWriteStream())
      .on('error', (err) => {
        console.log(err);
      })
      .on('close', async () => {
        fs.unlink('/tmp/original', (err) => {
          if (err) throw err;
        });
        const convertedUrl = await getDownloadURL(newVideoFile);
        resolve([convertedLocation, convertedUrl]);
      });
  });
});


    


    I am sending a test request to the Function emulator using curl :

    


    curl -d '{"data": {"originalLocation": "customer_videos/original_video.mov", "convertedLocation": "customer_videos/converted/original_video.mp4"}}' -H "Content-Type: application/json" http://127.0.0.1:5001/foo/bar/convertVideo


    


    This works correctly. I send the same request to the deployed function, and receive the out of memory error.

    


    curl -d '{"data": {"originalLocation": "customer_videos/original_video.mov", "convertedLocation": "customer_videos/converted/original_video.mp4"}}' -H "Content-Type: application/json" https://convertvideo-foobarbaz-uc.a.run.ap


    


    Can somebody please help me understand why this is happening ? I didn't think I was doing anything too memory intensive, especially since it works correctly using the emulator.