Recherche avancée

Médias (91)

Autres articles (71)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (5528)

  • 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 :

    


    


  • ffmpeg alters color scheme when converting images to a video

    12 février 2019, par Flo Ryan

    I am trying to convert a sequence of png images to a video. Unfortunately the video though playing exactly what i want alters the colors.

    The command used to convert the images :

    ffmpeg -framerate 30 -pattern_type glob -i ’*.png’ -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p out.mp4

    The original image colors :
    Color scheme in image

    The colors as displayed in the video.

    Color scheme in video

    How can I circumvent this altering of the colors ?

    EDIT
    I found the answer as posted below.

  • 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