Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (81)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (5095)

  • Create hls stream in Google Cloud Functions (ffmpeg)

    3 novembre 2018, par Markus

    I tried for several hours with no good outcome.

    I want to create an hls stream (from a mp4 video) with the help of google cloud functions.

    This is what i have come up with so far :

     const remoteReadStream = myBucket.file(vidPath).createReadStream();
     const remoteWriteStream = myBucket.file(vidPath.replace('.mp4', '.m3u8')).createWriteStream();


     var proc = ffmpeg()
       .input(remoteReadStream)
     // Base url
     // include all the segments in the list
     .addOption('-hls_time',4)
     .addOption('-c:a aac')
     .addOption('-ar 48000')
     .addOption('-c:v h264')
     .addOption('-profile:v main')
     .addOption('-crf 20')
     .addOption('-sc_threshold 0')
     .addOption('-g 48')
     .addOption('-keyint_min 48')
     .addOption('-hls_playlist_type vod')
     .addOption('-b:v 800k')
     .addOption('-maxrate 856k')
     .addOption('-bufsize 1200k')  
     .addOption('-b:a 96k')
     .addOption('-hls_segment_filename', 'this_is_not_working_%03d.ts')
                 *tried gs://.../videos/$03d.ts' as well as other paths...
     .outputOptions('-f hls')
     .on('progress', function(progress) {

       var processing_str = 'Processing:' + progress.percent + '% done';
       console.log(processing_str);
     })
     .on('end', function() {
       console.log('file has been ffmpeg succesfully');
     })
     .on('error', (err, stdout, stderr) => {
         console.error('An error occured during encoding', err.message);
         console.error('stdout:', stdout);
         console.error('stderr:', stderr);
       })
     .pipe(remoteWriteStream, { end: true });

    This will give me the m3u8 file but the header files (ts files) will not be created, cause of the failure of saving them. The m3u8 file is saved, because it is a stream.

    Opening ’xxx.ts’ for writing Could not write header for output file #0 (incorrect codec parameters ?)

    I want to save them in the same folder, but I cannot access it by the bucket.
    Does anyone know, how to ’create’ multiple files (give the excact path of my bucket) in the ffmpeg configuration ?

    Maybe saving them as a stream would be the answer, but i have no clue how to pass that stream (.createWriteStream() ;) as an argument.

    Thanks in advance

  • How to create Animation video from Images like Google photos ?

    21 mars 2017, par Ahmed

    I am working on a mobile application to create a video/animation of multiple images.
    I have used server side tools like ffmpeg and whammy, what are other server side or mobile open source tools that i can use ?

  • Audio/video out of sync after Google Cloud Transcoding

    18 mai 2021, par Renov Jung

    I have been using Google Cloud Transcoding to convert video into HLS.
There are only few videos out of audio sync after the transcoding.
The Audio is behind +1 2 seconds.
The jobConfig looks no problem to me. So, I have no idea how to solve it or even what is causing the trouble from jobConfig setting.

    


    jobConfig :

    


    job: {
    inputUri: 'gs://' + BUCKET_NAME + '/' + inputPath,
    outputUri: 'gs://' + BUCKET_NAME + '/videos/' + outputName + '/',
    templateId: 'preset/web-hd',
    config: {
      elementaryStreams: [
        {
          key: 'video-stream0',
          videoStream: {
            codec: 'h264',
            widthPixels: 360,
            bitrateBps: 1000000,
            frameRate: 60,
          },
        },
        {
          key: 'video-stream1',
          videoStream: {
            codec: 'h264',
            widthPixels: 720,
            bitrateBps: 2000000,
            frameRate: 60,
          },
        },
        {
          key: 'audio-stream0',
          audioStream: {
            codec: 'aac',
            bitrateBps: 64000,
          },
        },
      ],
      muxStreams: [
        {
          key: 'hls_540p',
          container: 'ts',
          segmentSettings: {
            "individualSegments": true
          },
          elementaryStreams: ['video-stream0', 'audio-stream0'],
        },
         {
           key: 'hls2_720p',
           container: 'ts',
           segmentSettings: {
             "individualSegments": true
           },
           elementaryStreams: ['video-stream1', 'audio-stream0'],
         },
      ],
      manifests: [
        {
          "type": "HLS",
          "muxStreams": [
            "hls_540p", "hls2_720p"
          ]
        },
      ],
    },
  },


    


    Before transcoding video :

    


    


    After transcoding video :