Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (13)

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

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (5043)

  • 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
  • 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&lt;{}> = ({
     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
  • 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;
           }
       }

    }