Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (82)

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

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

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

Sur d’autres sites (8922)

  • ffmpeg can't change number of B-frames

    10 juin 2021, par user1315621

    When streaming from a source I keep receiving frames following the same pattern :
I-frame P-frame I-frame P-frame I-frame P-frame ....
I tried many options and read as many questions here as I found, but I can't find a way to increse the number of P-frame or at least enable B-frames.

    


    Mainly it seems that I should use :

    


     ffprobe rtsp://localhost/video -g 30 -bf 3 -show_frames -of csv


    


    What am I doing wrong ?

    


  • sws_scale YUV —> RGB distorted image [closed]

    18 décembre 2024, par Sami susu

    I want to convert YUV420P image (received from H.264 stream) to RGB, while also resizing it, using sws_scale.
    
The size of the original image is 480 × 800. Just converting with same dimensions works fine.
    
But when I try to change the dimensions, I get a distorted image, with the following pattern :

    



      

    • changing to 481 × 800 will yield a distorted B&W image which looks like it's cut in the middle
    • 


    • 482 × 800 will be even more distorted
    • 


    • 483 × 800 is distorted but in color
    • 


    • 484 × 800 is ok (scaled correctly).
    • 


    



    Now this pattern follows - scaling will only work fine if the difference between divides by 4.

    



    Here's a sample code of the way that I decode and convert the image. All methods show "success".

    



    int srcX = 480;
int srcY = 800;
int dstX = 481; // or 482, 483 etc
int dstY = 800;

AVFrame* avFrameYUV = avcodec_alloc_frame();
avpicture_fill((AVPicture *)avFrameYUV, decoded_yuv_frame, PIX_FMT_YUV420P, srcX , srcY);

AVFrame *avFrameRGB = avcodec_alloc_frame();

AVPacket avPacket;
av_init_packet(&avPacket);
avPacket.size = read; // size of raw data
avPacket.data = raw_data; // raw data before decoding to YUV

int frame_decoded = 0;
int decoded_length = avcodec_decode_video2(g_avCodecContext, avFrameYUV, &frame_decoded, &avPacket);
int size = dstX * dstY * 3;

struct SwsContext *img_convert_ctx = sws_getContext(srcX, srcY, SOURCE_FORMAT, dstX, dstY, PIX_FMT_BGR24, SWS_BICUBIC, NULL, NULL, NULL);

avpicture_fill((AVPicture *)avFrameRGB, rgb_frame, PIX_FMT_RGB24, dstX, dstY);
sws_scale(img_convert_ctx, avFrameYUV->data, avFrameYUV->linesize, 0, srcY, avFrameRGB->data, avFrameRGB->linesize);

// draws the resulting frame with windows BitBlt
DrawBitmap(hdc, dstX, dstY, rgb_frame, size);

sws_freeContext(img_convert_ctx); 


    


  • Revision ada9dd7d84 : test_libvpx : fix negative CPU filter negative patterns begin with _one_ '-', no

    11 janvier 2014, par James Zern

    Changed Paths :
     Modify /test/test_libvpx.cc



    test_libvpx : fix negative CPU filter

    negative patterns begin with _one_ '-', not one before each pattern.

    https://code.google.com/p/googletest/wiki/V1_7_AdvancedGuide#Running_a_Subset_of
    _the_Tests

    Change-Id : I6fd527b31bc2571dfdaa453cbbb57c77b3409563