Recherche avancée

Médias (91)

Autres articles (50)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

  • Video - Could not find tag for codec wavpack in stream #1, codec not currently supported in container Could not write file MKV to MP4 with FFmpeg

    9 janvier, par Theagames10

    Trying to convert an hour long MKV file into an MP4 using FFmpeg, but during the conversion process it keeps giving me this error :

    



    Could not find tag for codec wavpack in stream #1, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument


    



    I have tried to use other converters, but they all have file size limits, It takes to long to convert with Handbrake and VLC. I tried to search for some kind of answer on google, but there has been no forum posts anywhere for a solution to this kind of issue.

    


  • Firebase function error : Cannot find ffmpeg

    9 janvier 2020, par Nathan

    I’m using the firebase storage to execute a function when a video gets uploaded to the default bucket, in the function I’m using Ffmpeg to convert the video and set some other options like size, then I want to reupload the file back to storage and I keep getting this error :

    Error: Cannot find ffmpeg
    at /srv/node_modules/fluent-ffmpeg/lib/processor.js:136:22
    at FfmpegCommand.proto._getFfmpegPath (/srv/node_modules/fluent-ffmpeg/lib/capabilities.js:90:14)
    at FfmpegCommand.proto._spawnFfmpeg (/srv/node_modules/fluent-ffmpeg/lib/processor.js:132:10)
    at FfmpegCommand.proto.availableFormats.proto.getAvailableFormats (/srv/node_modules/fluent-ffmpeg/lib/capabilities.js:517:10)
    at /srv/node_modules/fluent-ffmpeg/lib/capabilities.js:568:14
    at nextTask (/srv/node_modules/async/dist/async.js:4578:27)
    at Object.waterfall (/srv/node_modules/async/dist/async.js:4589:9)
    at Object.awaitable(waterfall) [as waterfall] (/srv/node_modules/async/dist/async.js:208:32)
    at FfmpegCommand.proto._checkCapabilities (/srv/node_modules/fluent-ffmpeg/lib/capabilities.js:565:11)
    at /srv/node_modules/fluent-ffmpeg/lib/processor.js:298:14

    I have used npm install to install both fluent-ffmpeg and ffmpeg-static yet it says it cannot find it ? Here’s my code :

    const ffmpeg = require('fluent-ffmpeg');
    const ffmpeg_static = require('ffmpeg-static');
    const {Storage} = require('@google-cloud/storage');
    const fs = require('fs');
    const os = require('os');
    var path = require('path');

    // Creates a client
    const storage = new Storage({
    projectId: 'projectID',
    });

    function promisifyCommand(command) {
    return new Promise((resolve, reject) => {
     command.on('end', resolve).on('error', reject).run();
    });
    }

    exports.updatePost = functions.storage.object().onFinalize(async (object) => {

    const fileBucket = object.bucket; // The Storage bucket that contains the file.
    const filePath = object.name; // File path in the bucket.
    const contentType = object.contentType; // File content type.
    const resourceState = object.resourceState; // The resourceState is 'exists' or 'not_exists' (for file/folder deletions).
    const metageneration = object.metageneration; // Number of times metadata has been generated. New objects have a value of 1.

    // Get file name
    const fileName = path.basename(filePath);

    // Exit if this is a move or deletaion event.
    if(resourceState === 'not_exists'){
       console.log('This is a deletion event');
       return;
    }

    // Download file from bucket
    const bucket = storage.bucket(fileBucket);
    const tempFilePath = path.join(os.tmpdir(), fileName)
    // We add a '_output.flac' suffix to target audio file name. That's where we'll upload the converted audio.
    const targetTempFileName = fileName.replace(/\.[^/.]+$/, "") + '_output.mp4';
    const targetTempFilePath = path.join(os.tmpdir(), targetTempFileName);
    const targetStorageFilePath = path.join(path.dirname(filePath), targetTempFileName);

    await bucket.file(filePath).download({destination: tempFilePath});
       console.log('Video downloaded locally to', tempFilePath);
       // Convert the video to suitable formats
       const command = ffmpeg(tempFilePath)
       .setFfmpegPath(ffmpeg_static.path)
       .withSize('50%')
       .toFormat('mp4')
       .output(targetTempFilePath);
       await promisifyCommand(command);
           console.log('New video created');

           //Upload video again
           await bucket.upload(targetTempFilePath, {destination: targetStorageFilePath});
               console.log('Output video uploaded to', targetStorageFilePath);
               // Delete the local file from server as it's been uploaded to storage
               fs.unlinkSync(tempFilePath);
               fs.unlinkSync(targetTempFilePath);

               console.log('Tempory files removed.', targetTempFilePath);
    });

    I have searched everywhere and people are also saying that running the ffmpeg module on the function will also exceed the limit very quickly and where told to use ffmpeg-static instead ?
    Thanks,

    Nathan

  • Webhoster can’t find server after outage

    28 décembre 2009, par admin — inlet media

    My web hoster can’t find my server anymore after it went down unexpectedly. Since the backup server in the same facility also went down and is also not findable, I have to recover the site from various backups. This could take a moment. Sorry for the inconvenience. UPDATE : I moved to a new (...)