Recherche avancée

Médias (91)

Autres articles (100)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (7527)

  • Nginx rtmp exec command not working in macOS

    8 janvier 2020, par Josh

    The nginx rtmp exec command not working on my macOS.
    I checked the error log file and saw this error.

    2019/05/19 19:45:24 [alert] 32986#0: kevent() error on 13 filter:-1 flags:4002 (2: No such file or directory)

    I have no idea what is that mean and i searched so much about it and i didn’t find anything.

    Config file

    rtmp {

       server {

           listen 8080;
           chunk_size 4096;

           application publish {

               live on;
               record off;

               allow publish all;
               allow play all;

               exec echo "" > /test.txt;

               # I even test that command with bash file
               exec /Users/josh/Projects/server/test.sh;
           }

           application hls {

               live on;
               record off;

               hls on;
               hls_path /usr/local/nginx/html/live;
               hls_fragment 15s;
           }
       }

    }
  • Problems piping ffmpeg to flac encoder

    19 mai 2019, par Sebastian Olsen

    I need to encode a flac file with seektables, ffmpeg’s flac encoder does not include seektables, so I need to use the flac CLI. I’m trying to make it possible to convert any arbitrary audio file to a seekable flac file by first piping it through ffmpeg, then to the flac encoder.

    export const transcodeToFlac: AudioTranscoder<{}> = ({
     source,
     destination
    }) => {
     return new Promise((resolve, reject) => {
       let totalSize = 0

       const { stdout: ffmpegOutput, stderr: ffmpegError } = spawn("ffmpeg", [
         "-i",
         source,
         "-f",
         "wav",
         "pipe:1"
       ])

       const { stdout: flacOutput, stdin: flacInput, stderr: flacError } = spawn(
         "flac",
         ["-"]
       )

       flacOutput.on("data", (buffer: Buffer) => {
         totalSize += buffer.byteLength
       })

       ffmpegError.on("data", error => {
         console.log(error.toString())
       })

       flacError.on("data", error => {
         console.log(error.toString())
       })

       //stream.on("error", reject)

       destination.on("finish", () => {
         resolve({
           mime: "audio/flac",
           size: totalSize,
           codec: "flac",
           bitdepth: 16,
           ext: "flac"
         })
       })

       ffmpegOutput.pipe(flacInput)
       flacOutput.pipe(destination)
     })
    }

    While this code works, the resulting flac file is not correct. The source audio is of duration 06:14, but the flac file is of duration 06:45:47. Encoding the flac manually without piping ffmpeg to it works fine, but I cannot do that in a server environment where I need to utilize streams.

    Here’s what the flac encoder outputs when transcoding :

    flac 1.3.2
    Copyright (C) 2000-2009  Josh Coalson, 2011-2016  Xiph.Org Foundation
    flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
    welcome to redistribute it under certain conditions.  Type `flac' for details.

    -: WARNING: skipping unknown chunk 'LIST' (use --keep-foreign-metadata to keep)
    -: WARNING, cannot write back seekpoints when encoding to stdout
    -: 0% complete, ratio=0.357
    0% complete, ratio=0.432
    0% complete, ratio=0.482
    0% complete, ratio=0.527
    0% complete, ratio=0.541
    1% complete, ratio=0.554
    1% complete, ratio=0.563
    1% complete, ratio=0.571
    size=   36297kB time=00:03:30.70 bitrate=1411.2kbits/s speed= 421x
    1% complete, ratio=0.572
    1% complete, ratio=0.570
    1% complete, ratio=0.577
    1% complete, ratio=0.583
    1% complete, ratio=0.584
    1% complete, ratio=0.590
    1% complete, ratio=0.592
    size=   64512kB time=00:06:14.49 bitrate=1411.2kbits/s speed= 421x
    video:0kB audio:64512kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead:
    0.000185%

    -: WARNING: unexpected EOF; expected 1073741823 samples, got 16510976 samples
    2% complete, ratio=0.579
  • h264 : Support multi-field closed captions by using AVBufferRef and not resetting...

    17 août 2018, par Kieran Kunhya
    h264 : Support multi-field closed captions by using AVBufferRef and not resetting per field
    

    Signed-off-by : Josh de Kock <joshdk@obe.tv>

    • [DH] libavcodec/h264_sei.c
    • [DH] libavcodec/h264_sei.h
    • [DH] libavcodec/h264_slice.c
    • [DH] libavcodec/h264dec.c