Recherche avancée

Médias (91)

Autres articles (104)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (12397)

  • ffmpeg buffer not released

    11 mars 2013, par ByteByter

    So, I have written a basic decoder for ffmpeg that simply reads the input frames pixel data (Stored using RGB 8 format), and places it directly into the output buffer. (Also RGB 8) The problem is that when I use this decoder in ffmpeg, it says that there is 1 unreleased buffer.(Tested using ffmpeg -i Test.utah Test.png). Unfortunately, I am unsure of what buffer it is talking about, as I am not creating my own buffer. I have tried releasing the AVContext's coded_frame buffer in my decoders closing method, but this causes segmentation faults.

    Any help would be greatly appreciated.

    static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
    {
       int ret;           /*Hold return from get_buffer */
       int skipSize;      /*Number of dummy bytes to skip per line*/
       int fseek=8;       /*Location of the first pixel*/
       int i=0; int j=0;  /*Output buffer seek index/Input Buffer seek index*/
       const uint8_t *buf = avpkt->data; /*Hold a pointer to the input buffer*/
       AVFrame *pict=data; /*Hold a pointer to the output buffer*/

       /*Set the output pixel format to RGB8*/
       avctx->pix_fmt = AV_PIX_FMT_RGB8;

       /*Get the width and height*/
       bytestream_get_le32(&buf);
       avctx->width=bytestream_get_le16(&buf);
       avctx->height=bytestream_get_le16(&buf);

       /*Release the old buffer*/
       if (pict->data[0]) avctx->release_buffer(avctx, pict);

       /*Aquire a large enough data buffer to hold the decompressed picture*/
       if (ret=ff_get_buffer(avctx, pict) < 0) return ret;
       skipSize=pict->linesize[0] - avctx->width;

       /*Transfer input buffer to output buffer*/
       for(int y=0;yheight;y++){
           for(int x=0;xwidth;x++){
               pict->data[0][i]=avpkt->data[fseek+j];
               j++;
               i++;
           }
           i+=skipSize;
       }

       /*Inform ffmpeg the output is a key frame and that it is ready for external usage*/
       pict->pict_type        = AV_PICTURE_TYPE_I;
       pict->key_frame        = 1;
       *got_frame=1;
       return 0;
    }
  • avcodec/mpegpicture : Decrease size of encoding_error array

    10 janvier 2022, par Andreas Rheinhardt
    avcodec/mpegpicture : Decrease size of encoding_error array
    

    The current size is AV_NUM_DATA_POINTERS (i.e. eight).
    This number is chosen in order to minimize the amount of allocations
    for AVFrame.extended_(data|buf) for audio ; it is meaningless
    for video for which four is sufficient. So decrease this array
    in order to minimize what is copied in ff_mpeg_ref_picture()
    and at the places that copy a whole MpegEncContext.

    Also do the same for snowenc.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/mpegpicture.h
    • [DH] libavcodec/mpegvideo_enc.c
    • [DH] libavcodec/snow.h
    • [DH] libavcodec/snowenc.c
  • Can stream to Facebook using ffmpeg but not when using tee

    16 mai 2017, par MazeHatter

    I’m trying to stream to YouTube and Facebook simultaneously using ffmpeg.

    I can do them individually, but I want to use "tee" to send the results of encoding to two places.

    If I do :

    ffmpeg -re -i pipe:0 -acodec libfdk_aac -bsf:a aac_adtstoasc \
       -ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v baseline \
       -s 720x480 -bufsize 2048k -vb 1300k -maxrate 4000k -deinterlace \
       -vcodec libx264 -g 25 -r 25 \
       -f flv "rtmp://rtmp-api.facebook.com:80/rtmp/key"

    It works just fine.

    But if I do :

    ffmpeg -re -i pipe:0 -acodec libfdk_aac -bsf:a aac_adtstoasc \
       -ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v baseline \
       -s 720x480 -bufsize 2048k -vb 1300k -maxrate 4000k -deinterlace \
       -vcodec libx264 -g 25 -r 25 \
       -f tee -map 0:v -map 0:a \
       "[f=flv]rtmp://rtmp-api.facebook.com:80/rtmp/key"

    Then I get a rtmp 104 error.

    If that would work then I could just do :

           "[f=flv]rtmp://rtmp-api.facebook.com:80/rtmp/key|[f=flv]rtmp://youtube.etc"

    And that would stream to both.

    I did find out that I needed "-bsf:a aac_adtstoasc" otherwise the encoder broke, complaining about malformed bits.

    Any ideas ?

    The error is only with Facebook. YouTube works fine.

    Console output :

     Metadata:
       encoder         : Lavf57.72.101
       Stream #0:0: Video: h264 (libx264), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=-1--1, 1300 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
       Metadata:
         encoder         : Lavc57.95.101 libx264
       Side data:
         cpb: bitrate max/min/avg: 2000000/0/1300000 buffer size: 2048000 vbv_delay: -1
       Stream #0:1: Audio: aac (libfdk_aac), 44100 Hz, stereo, s16, 128 kb/s
       Metadata:
         encoder         : Lavc57.95.101 libfdk_aac
    frame=   61 fps= 30 q=25.0 size=N/A time=00:00:01.97 bitrate=N/A speed=0.961x        
    WriteN, RTMP send error 104 (136 bytes)