Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (3)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (500)

  • Unable to play video from firebase cloud storage download url on Iphone Safari [closed]

    26 janvier, par Acid Coder
                        getDownloadURL(ref)
                        .then(url => {
                            //... save the url to state
                        })


    


    front end : React

    


                                &#xA;                                <source src="{videoURL}" type="video/mp4"></source>&#xA;                            &#xA;

    &#xA;

    work fine on PC and Android, but on Iphone Safari, only 1 out of 10 videos can be played

    &#xA;

    enter image description here

    &#xA;

    all video are from the same source, going through same compression, from mp4 to mp4

    &#xA;

    import ffmpeg from &#x27;fluent-ffmpeg&#x27;&#xA;&#xA;        ffmpeg(inputPath)&#xA;            .output(outputPath)&#xA;            .videoCodec(&#x27;libx264&#x27;)&#xA;            .audioCodec(&#x27;aac&#x27;)&#xA;            .on(&#x27;end&#x27;, () => {&#xA;                // ...&#xA;            })&#xA;            .on(&#x27;error&#x27;, err => {&#xA;                // ...&#xA;            })&#xA;            .run()&#xA;

    &#xA;

  • Can't upload folder with large amount of files to google storage. I using "@ffmpeg-installer/ffmpeg" and @google-cloud/storage

    20 juillet 2022, par Dmytro

    I upload file to google storage using "@ffmpeg-installer/ffmpeg" and @google-cloud/storage in my node.js App.&#xA;Step 1. file uploading to fs is in child processes - one process for each type of resolution (totaly six).&#xA;step 2. encription (converting to stream)&#xA;step 3. upload to google storage

    &#xA;

    I use "Upload a directory to a bucket" in order to send the video from the client to the Google Cloud Storage bucket.

    &#xA;

    This way is working fine only with small video.

    &#xA;

    for example when I upload video with duration one hour it split on chunk and totally I get more three thousands files. But the problem occurs when there are more than 1500 files

    &#xA;

    So actually i upload folder with large amount of files, but not all of this files are uploaded to cloud.

    &#xA;

    maybe someone had the similar problem and helps fix it.

    &#xA;

    &#xD;&#xA;
    &#xD;&#xA;
    const uploadFolder = async (bucketName, directoryPath, socketInstance) => {&#xA;    try {&#xA;      let dirCtr = 1;&#xA;      let itemCtr = 0;&#xA;      const fileList = [];&#xA;&#xA;      const onComplete = async () => {&#xA;        const folderName = nanoid(46);&#xA;&#xA;        await Promise.all(&#xA;          fileList.map(filePath => {&#xA;            const fileName = path.relative(directoryPath, filePath);&#xA;            const destination = `${ folderName }/${ fileName }`;&#xA;&#xA;            return storage&#xA;              .bucket(bucketName)&#xA;              .upload(filePath, { destination })&#xA;              .then(&#xA;                uploadResp => ({ fileName: destination, status: uploadResp[0] }),&#xA;                err => ({ fileName: destination, response: err })&#xA;              );&#xA;          })&#xA;        );&#xA;&#xA;        if (socketInstance) socketInstance.emit(&#x27;uploadProgress&#x27;, {&#xA;          message: `Added files to Google bucket`,&#xA;          last: false,&#xA;          part: false&#xA;        });&#xA;&#xA;        return folderName;&#xA;      };&#xA;&#xA;      const getFiles = async directory => {&#xA;        const items = await fs.readdir(directory);&#xA;        dirCtr--;&#xA;        itemCtr &#x2B;= items.length;&#xA;        for(const item of items) {&#xA;          const fullPath = path.join(directory, item);&#xA;          const stat = await fs.stat(fullPath);&#xA;          itemCtr--;&#xA;          if (stat.isFile()) {&#xA;            fileList.push(fullPath);&#xA;          } else if (stat.isDirectory()) {&#xA;            dirCtr&#x2B;&#x2B;;&#xA;            await getFiles(fullPath);&#xA;          }&#xA;        }&#xA;      }&#xA;&#xA;      await getFiles(directoryPath);&#xA;&#xA;      return onComplete();&#xA;    } catch (e) {&#xA;      log.error(e.message);&#xA;      throw new Error(&#x27;Can\&#x27;t store folder.&#x27;);&#xA;    }&#xA;  };

    &#xD;&#xA;

    &#xD;&#xA;

    &#xD;&#xA;&#xA;

  • Can't upload huge video to google storage. I using "@ffmpeg-installer/ffmpeg" and @google-cloud/storage

    20 juillet 2022, par Dmytro Petskovych

    I upload file to google storage using "@ffmpeg-installer/ffmpeg" and @google-cloud/storage in my node.js App.&#xA;Step 1. file uploading to fs is in child processes - one process for each type of resolution (totaly six).&#xA;step 2. encription (converting to stream)&#xA;step 3. upload to google storage

    &#xA;

    I use "Upload a directory to a bucket" in order to send the video from the client to the Google Cloud Storage bucket.

    &#xA;

    This way is working fine only with small file.

    &#xA;

    when I upload video, actually I upload six videos, one for each type resolution

    &#xA;

    for example when I upload video with duration one hour it split on chunk and totally I get more three thousands files.

    &#xA;

    So actually i upload folder with large amount of files, but not all of this files are uploaded to cloud.

    &#xA;

    maybe someone had the similar problem and helps fix it.

    &#xA;

    &#xD;&#xA;
    &#xD;&#xA;
    const uploadFolder = async (bucketName, directoryPath, socketInstance) => {&#xA;    try {&#xA;      let dirCtr = 1;&#xA;      let itemCtr = 0;&#xA;      const fileList = [];&#xA;&#xA;      const onComplete = async () => {&#xA;        const folderName = nanoid(46);&#xA;&#xA;        await Promise.all(&#xA;          fileList.map(filePath => {&#xA;            const fileName = path.relative(directoryPath, filePath);&#xA;            const destination = `${ folderName }/${ fileName }`;&#xA;&#xA;            return storage&#xA;              .bucket(bucketName)&#xA;              .upload(filePath, { destination })&#xA;              .then(&#xA;                uploadResp => ({ fileName: destination, status: uploadResp[0] }),&#xA;                err => ({ fileName: destination, response: err })&#xA;              );&#xA;          })&#xA;        );&#xA;&#xA;        if (socketInstance) socketInstance.emit(&#x27;uploadProgress&#x27;, {&#xA;          message: `Added files to Google bucket`,&#xA;          last: false,&#xA;          part: false&#xA;        });&#xA;&#xA;        return folderName;&#xA;      };&#xA;&#xA;      const getFiles = async directory => {&#xA;        const items = await fs.readdir(directory);&#xA;        dirCtr--;&#xA;        itemCtr &#x2B;= items.length;&#xA;        for(const item of items) {&#xA;          const fullPath = path.join(directory, item);&#xA;          const stat = await fs.stat(fullPath);&#xA;          itemCtr--;&#xA;          if (stat.isFile()) {&#xA;            fileList.push(fullPath);&#xA;          } else if (stat.isDirectory()) {&#xA;            dirCtr&#x2B;&#x2B;;&#xA;            await getFiles(fullPath);&#xA;          }&#xA;        }&#xA;      }&#xA;&#xA;      await getFiles(directoryPath);&#xA;&#xA;      return onComplete();&#xA;    } catch (e) {&#xA;      log.error(e.message);&#xA;      throw new Error(&#x27;Can\&#x27;t store folder.&#x27;);&#xA;    }&#xA;  };

    &#xD;&#xA;

    &#xD;&#xA;

    &#xD;&#xA;&#xA;