Recherche avancée

Médias (91)

Autres articles (23)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (7467)

  • Converting AWS Polly Audio Stream with fluent-ffmpeg

    27 juillet 2017, par Joel

    I am trying to convert an audio stream from Amazon AWS Polly in Node.js using fluent-ffmpeg. The documentation says that I can convert a stream, which is what the output of Polly provides, but I am getting an "Invalid input" error.

    polly.synthesizeSpeech(pollyParams, function (err, data) {
    if (err) {
       console.log(err)
    } else {
       console.log('Audio')
       console.log(data)
       ffmpeg().input(data.AudioStream).inputOptions(['-ac 2', '-codec:a libmp3lame', '-b:a 48k', '-ar 16000'])
    }  

    Results in :

    AudioStream : }
    2017-07-27T14:07:09.335Z dd75614c-72d4-11e7-b7cd-5d4425c782fc Error : Invalid input
    at FfmpegCommand.proto.mergeAdd.proto.addInput.proto.input (/var/task/node_modules/fluent-ffmpeg/lib/options/inputs.js:34:15)

    I know the output from Polly is a valid audio stream, because I am able to save it to an S3 bucket. I would prefer to convert the stream before saving to S3, rather than saving it, picking it up from S3, converting it, and then saving it again.

    Thanks for your help !

  • ffmpeg single output container with 4 audio channel to AWS IVS

    28 juillet 2021, par Yusufu

    Trying to send 1 video and 4 different audios to AWS IVS in single container. Which container or muxer should I use ?
FLV doesn't support multi audio, matroska doesn't support rtmp I guess link.
3GP and mp4 containers doesn't give me error but neither video showing on IVS

    


    For simple try I am using this command.

    


    ffmpeg -re -stream_loop -1 -i sample.mkv -r 30 -c:v libx264 -pix_fmt yuv420p -profile:v main -preset veryfast -x264opts "nal-hrd=cbr:no-scenecut" -minrate 3000 -maxrate 3000 -g 
60 -c:a aac -ac 2 -ar 44100 -vb 400k -maxrate 400k -minrate 400k -bufsize 800k -movflags frag_keyframe+empty_moov -f mp4 rtmps:someurls


    


    the above command doesn't include multi audio output so just trying to send except the flv format

    


  • How do I combine mkv and mka file using fluent-ffmpeg ?

    17 mai 2020, par YaSh Chaudhary

    I have two Amazon S3 bucket file urls , one is for mkv file(video) and other one for mka(audio).

    



    I am trying to merge audio and video in one file and upload it to S3 but following function doesn't seems to get working. Not getting error also.

    



    client.request({ method: 'GET', uri: uri }).then((response) => {
      const mediaLocation = response.body.redirect_to
      media.push(mediaLocation)
      if(media.length > 1) {
     ffmpeg(media[0])
      .addInput(media[1])
      .output(`${recordingSid}.mkv`)
      .on('error', function (err) {
        console.log('An error occurred: ' + err.message)
      })
      .on('end', function () {
        console.log('Processing finished !')
        var params = {
          Body: fs.createReadStream(`${recordingSid}.mkv`),
          Bucket: config.aws.bucketname,
          Key: `${recordingSid}.mkv`,
        }
        s3.upload(params, function (err, data) {
          //handle error
          if (err) {
            console.log('Error', err)
          }

          //success
          if (data) {
            console.log('Uploaded in:', data.Location)
          }
        })
      })
      }
    })


    



    My ultimate goal is to upload this output to S3 bucket.