Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (60)

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

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

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

Sur d’autres sites (9080)

  • fftools/ffmpeg_mux_init : move the check for filtering+streamcopy

    24 septembre 2024, par Anton Khirnov
    fftools/ffmpeg_mux_init : move the check for filtering+streamcopy
    

    To streamcopy_init().

    This will allow to simplify the control flow in ost_add() by moving the
    ost_get_filters() call (which previously had to handle both encoding and
    streamcopy streams) to ost_bind_filter() (which is only called for
    audio/video encoding).

    Also, return EINVAL rather than ENOSYS, as trying to combine filtering
    with streamcopy is a parameter error.

    • [DH] fftools/ffmpeg_mux_init.c
  • FFMpeg 6.1 h265 decoding with grey artifacts

    5 septembre 2024, par Edimar

    I'm using FFmpeg 6.1 with Delphi 10.3, and when decoding an H.265 MP4 file, I occasionally get gray artifacts. It seems to occur when there is some processing stress.

    


    I’ve extracted the key points of the code being used below :

    


    fCodec := avcodec_find_decoder(AV_CODEC_ID_HEVC);

fCodecCtx := avcodec_alloc_context3(fCodec);

avcodec_open2(fCodecCtx, fCodec, nil)

try
    // Decode video frame
    pPDecInfo.ErrorCode := avcodec_send_packet(fCodecCtx, vPacket);

    while pPDecInfo.ErrorCode >= 0 do
    begin
      pPDecInfo.ErrorCode := avcodec_receive_frame(fCodecCtx, fFrame);

      if (pPDecInfo.ErrorCode = AVERROR_EAGAIN) or (pPDecInfo.ErrorCode = AVERROR_EOF)then
        Break
      else if pPDecInfo.ErrorCode < 0 then
        Exit(False);

      if pPDecInfo.ErrorCode = 0 then
        Break;
    end;

    // Returns: On error a negative value is returned, otherwise the number of bytes used or zero if no frame could be decompressed.
    // frameFinished Zero if no frame could be decompressed, otherwise it is non-zero.

    if (pPDecInfo.ErrorCode = 0) then
      vFrameFinished := 1;
  except
    vFrameFinished := 0; // Encoded video data is not valid
  end;


    


    Gray Frame

    


    I've enabled the ffmpeg debug information and there are no error message.

    


    I need to play the video stream using H.265 ; switching to H.264 is not an option.

    


  • FFMpeg 6.1 h265 decoding with grey frames

    5 septembre 2024, par Edimar

    I'm using FFmpeg 6.1 with Delphi 10.3, and when decoding an H.265 MP4 file, I occasionally get gray frames. It seems to occur when there is some processing stress.

    


    I’ve extracted the key points of the code being used below :

    


    fCodec := avcodec_find_decoder(AV_CODEC_ID_HEVC);

fCodecCtx := avcodec_alloc_context3(fCodec);

avcodec_open2(fCodecCtx, fCodec, nil)

try
    // Decode video frame
    pPDecInfo.ErrorCode := avcodec_send_packet(fCodecCtx, vPacket);

    while pPDecInfo.ErrorCode >= 0 do
    begin
      pPDecInfo.ErrorCode := avcodec_receive_frame(fCodecCtx, fFrame);

      if (pPDecInfo.ErrorCode = AVERROR_EAGAIN) or (pPDecInfo.ErrorCode = AVERROR_EOF)then
        Break
      else if pPDecInfo.ErrorCode < 0 then
        Exit(False);

      if pPDecInfo.ErrorCode = 0 then
        Break;
    end;

    // Returns: On error a negative value is returned, otherwise the number of bytes used or zero if no frame could be decompressed.
    // frameFinished Zero if no frame could be decompressed, otherwise it is non-zero.

    if (pPDecInfo.ErrorCode = 0) then
      vFrameFinished := 1;
  except
    vFrameFinished := 0; // Encoded video data is not valid
  end;


    


    Gray Frame

    


    I've enabled the ffmpeg debug information and there are no error message.

    


    I need to play the video stream using H.265 ; switching to H.264 is not an option.