Recherche avancée

Médias (91)

Autres articles (98)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (3783)

  • avformat_write_header return error code when trying to write PCMU encoded frame into avi/mov file

    9 août 2015, par Kaidul Islam

    I am trying to write PCMU G.711 enocded data into avi multimedia container using below program which yields Error occurred when opening output file: Operation not permitted and when using mov container, it yields Error occurred when opening output file: Invalid argument. I set AV_CODEC_ID_PCM_U16LE as audio codec of output format and AV_SAMPLE_FMT_S16 as sample format.

    What’s the problem here ? Thanks in advance !

  • Intel IPP RGBToYUV420 function is getting IppStsSizeErr result code

    6 février 2018, par yesilcimen.ahmet

    I am using IPP 2017.0.3(r55431) and Delphi 10.2, I am trying convert RGB to YUV420P, but I am getting IppStsSizeErr result code.

    I have m_dst_picture, m_src_picture: AVPicture structure created by FFMPEG.

    { allocate the encoded raw picture }

    ret := avpicture_alloc(@m_dst_picture, AV_PIX_FMT_YUV420P, c^.width, c^.height);

    if (ret < 0) then
       Exit(False);

    { allocate BGR frame that we can pass to the YUV frame }
    ret := avpicture_alloc(@m_src_picture, AV_PIX_FMT_BGR24, c^.width, c^.height);
    if (ret < 0) then
      Exit(False);
    //It works fine.
    { convert BGR frame (m_src_picture) to and YUV frame (m_dst_picture) }
    sws_scale(sws_ctx, @m_src_picture.data[0], @m_src_picture.linesize, 0, c^.height, @m_dst_picture.data[0], @m_dst_picture.linesize);

    I want to convert the RGB buffer directly to YUV420P. The original code first loads RGB into the AVPicture then convert RGB to YUV420P with sws_scale and it causes slowness.

    Here I copy the BGR buffer to m_src_picture of FFMPEG. But this leads to performance loss, so I want to convert it directly to YUV420P using Intel IPP.

    procedure WriteFrameBGR24(frame: PByte);
    var
     y: Integer;
    begin
     for y := 0 to m_c^.height - 1 do
       Move(PByte(frame - (y * dstStep))^, PByte(m_src_picture.data[0] + (y * m_src_picture.linesize[0]))^, dstStep);
    end;

    In the code below I am trying to convert using Intel IPP.

    { Converting RGB to YUV420P. }

    **roiSize is 1920 and 1080

    **The values created by FFMPEG for YUV420P in m_dst_picture.linesize are [0]=1920,[1]=960,[2]=960 respectively.

    Do I need to convert the values of the linesize to another value ?

    **The reason why the srcStep parameter is a minus sign is the Bottom-Up Bitmap and the frame pointer indicates the Bmp.ScanLine[0] address, which indicates the highest pointer address.

    srcStep := (((width * (3 * 8)) + 31) and not 31) div 8; //for 24 bitmap

    { Swap of BGR channels to RGB. }
    //It works fine    
    st := ippiSwapChannels_8u_C3IR(frame, -srcStep, roiSize, @BGRToRGBArray[0]);

    { Convert RGB to YUV420P. }
    //IppStsSizeErr  
    st := ippiRGBToYUV420_8u_C3P3R(frame, -srcStep, @m_dst_picture.data[0], @m_dst_picture.linesize[0], roiSize);

    How do I solve this problem ?

    Thank you.

  • Getting an error in simple code with opening the file

    10 mars 2016, par Dmitry

    Here is code example :

    char* audio1Path = "in1.sdp";
    if (open_input_file(audio1Path, &input_format_context_0/*it`s null*/, &input_codec_context_0/*it`s null*/) < 0)
    {
       av_log(NULL, AV_LOG_ERROR, "Error while opening file 1\n");
       exit(1);
    }

    in1.sdp is in folder where exe file is. What`s wrong ?