Recherche avancée

Médias (1)

Mot : - Tags -/portrait

Autres articles (60)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (10246)

  • Revision 79afb5eb41 : Use lrand48 on Android When building x86 assembly use lrand48 instead of the un

    13 juin 2014, par Johann

    Changed Paths :
     Modify /vp8/common/x86/postproc_mmx.asm


     Modify /vp8/common/x86/postproc_sse2.asm


     Delete /vp8/common/x86/postproc_x86.c


     Modify /vp8/vp8_common.mk


     Modify /vp9/common/x86/vp9_postproc_mmx.asm


     Modify /vp9/common/x86/vp9_postproc_sse2.asm


     Modify /vpx_ports/x86_abi_support.asm



    Use lrand48 on Android

    When building x86 assembly use lrand48 instead of the
    undocumented inlined _rand function.

    Android now supports rand()
    https://android-review.googlesource.com/97731
    but only for new versions. Original workaround :
    https://gerrit.chromium.org/gerrit/15744

    Change-Id : I130566837d5bfc9e54187ebe9807350d1a7dab2a

  • X264 Encoder API

    16 avril 2014, par user1884325

    I’m studying the X264 API for encoding images.

    So far I’ve built the X264 library and the following code snippet shows how far I am :

     int frame_size;
     x264_t* encoder;
     x264_picture_t pic_in, pic_out;
     x264_param_t x264Param;
     int fps = 20;
     int width = 1280;
     int height = 720;
     x264_nal_t* nals;
     int i_nals;

     x264_param_default_preset(&x264Param, "veryfast", "zerolatency");
     x264Param.i_threads = 1;
     x264Param.i_width = 1280;
     x264Param.i_height = 720;
     x264Param.i_fps_num = fps;
     x264Param.i_fps_den = 1;
     x264Param.i_keyint_max = fps;
     x264Param.b_intra_refresh = 1;
     x264Param.rc.i_rc_method = X264_RC_CRF;
     x264Param.rc.f_rf_constant = 25;
     x264Param.rc.f_rf_constant_max = 35;
     x264Param.b_repeat_headers = 1;
     x264Param.b_annexb = 1;
     x264_param_apply_profile(&x264Param, "baseline");

     encoder = x264_encoder_open(&x264Param);

     x264_picture_alloc(&pic_in, X264_CSP_BGR, width, height);

     /* How to fill in bitmap data? */

     frame_size = x264_encoder_encode(encoder, &nals, &i_nals, &pic_in, &pic_out);
     if (frame_size >= 0)
     {
         printf("OK\n");
     }

    So I’m trying to encode a 24bit BGR bitmap image. However, the x264 header file doesn’t show any API function for writing the bitmap image to the encoder. How is this done ?

    EDIT

    This code snippet seems to work. I would appreciate a review and some comments. Thanks.

     int frame_size;
     int accum_frame_size;
     x264_t* encoder;
     x264_picture_t pic_in, pic_out;
     x264_param_t x264Param;
     int fps = 20;
     int width = 1280;
     int height = 720;
     x264_nal_t* nals;
     int i_nals;
     int64_t frameCount = 0;
     int k;

     for (k = 0; k < (1280*3*720); k++)
     {
        bgr[k] = rand();
     }

     x264_param_default_preset(&x264Param, "veryfast", "zerolatency");
     x264Param.i_threads = 1;
     x264Param.i_width = 1280;
     x264Param.i_height = 720;
     x264Param.i_fps_num = fps;
     x264Param.i_fps_den = 1;
     x264Param.i_keyint_max = fps;
     x264Param.b_intra_refresh = 1;
     x264Param.rc.i_rc_method = X264_RC_CRF;
     x264Param.i_csp = X264_CSP_BGR;
     x264Param.rc.f_rf_constant = 25;
     x264Param.rc.f_rf_constant_max = 35;
     x264Param.b_repeat_headers = 1;
     x264Param.b_annexb = 1;
     x264_param_apply_profile(&x264Param, "baseline");

     encoder = x264_encoder_open(&x264Param);

     x264_picture_alloc(&pic_in, X264_CSP_BGR, width, height);

     /* Load 24-bit BGR bitmap */
     pic_in.img.i_csp = X264_CSP_BGR;
     pic_in.img.i_plane = 1;
     pic_in.img.i_stride[0] = 3 * 1280;
     pic_in.img.plane[0] = bgr;
     pic_in.i_pts = frameCount;
     pic_in.i_type = X264_TYPE_AUTO;
     pic_out.i_pts = frameCount;

     /* Returns a frame size of 912 for first frame in this case */
     frame_size = x264_encoder_encode(encoder, &nals, &i_nals, &pic_in, &pic_out);

     printf("Decoder returned frame size = %d \n", frame_size);
     printf("Decoder returned %d NAL units \n", i_nals);
     if (frame_size >= 0)
     {
        int i;
        int j;


        accum_frame_size = 0;
        for (i = 0; i < i_nals; i++)
        {
           printf("******************* NAL %d (%d bytes) *******************\n", i, nals[i].i_payload);
           for (j = 0; j < nals[i].i_payload; j++)
           {
              if (j == 0) printf("First 10 bytes: ");
              if (j < 10) printf("%02X |", nals[i].p_payload[j]);
              accum_frame_size++;
           }
           printf("\n");

        }
     }

     printf("Verified frame size = %d \n", accum_frame_size);

    EDIT #2
    The encoder outputs this :

        x264 [error]: baseline profile doesn't support 4:4:4
        x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
        x264 [info]: profile High 4:4:4 Predictive, level 3.1, 4:4:4 8-bit
        Decoder returned frame size = 1467194
        Decoder returned 4 NAL units
        ******************* NAL 0 (31 bytes) *******************
        First 10 bytes: 00 |00 |00 |01 |67 |F4 |00 |1F |91 |89 |
        ******************* NAL 1 (8 bytes) *******************
        First 10 bytes: 00 |00 |00 |01 |68 |EF |1F |2C |
        ******************* NAL 2 (595 bytes) *******************
        First 10 bytes: 00 |00 |01 |06 |05 |FF |FF |4C |DC |45 |
        ******************* NAL 3 (1466560 bytes) *******************
        First 10 bytes: 00 |00 |01 |65 |88 |82 |0A |FF |F5 |B0 |
        Verified frame size = 1467194

    Isn’t each NAL unit supposed to start with 0x00 0x00 0x00 0x01 ?

    szatmary : I appreciate your valuable feedback. So you’re saying that each NAL unit does not necessarily start with 0,0,0,1. However, I’m a bit unclear on your answer. Are you implying that with a certain configuration the NAL units will start with 0,0,0,1 ? If so, which configuration is that ? I need to make sure that each NAL unit I transmit out on the network to a remote receiver starts with 0,0,0,1. Prior to exploring the x264 library I was using the x264 exe and piped BMP data in and encoded data out from the x264 process. I then parsed the encoder output and looked for NAL units by looking for 0,0,0,1. How do I accomplish the same with the x264 library ?

    Regarding libswscale :

    I downloaded the ffmpeg source and ran configure and make in MINGW. After the process had completed I couldn’t find anything but a number of .exe files. How do I build actual static libraries (.lib) which I can use in a Visual Studio project ?

  • "ibpostproc 52. 3.100 / 52. 3.100" Error when convert video to flv

    14 avril 2014, par Ziba

    I use FFMpegConverter for convert video to flv in my site. it work properly in local but i get below error in host, why ?

    libpostproc    52.  3.100 / 52.  3.100

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Exception:  libpostproc    52.  3.100 / 52.  3.100

    Source Error:


    Line 71:
    Line 72:                         FFMpegConverter ff = new FFMpegConverter();
    Line 73:                         ff.ConvertMedia(start, end, Format.flv);
    Line 74:
    Line 75:                         if (File.Exists(VideoPath))

    Source File: f:\domains\bfs-co.ir\wwwroot\Cms\AddVideo.aspx.cs    Line: 73