Recherche avancée

Médias (91)

Autres articles (4)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

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

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (4931)

  • Array.push returns a number, not an array.

    17 octobre 2013, par jonrohan
    Array.push returns a number, not an array.
  • FFmpeg av_read_frame returns packets from audio stream

    1er août 2018, par yultan

    I am currently trying to learn the FFmpeg API, following this tutorial. However, I already have issues with the first lesson on video decoding. My code is basically the same as the one from the tutorial except I am using C++. My issue is that the video stream does not match the one from the packet returned by av_read_frame.

    The video stream is obtained looping on the available streams until the video stream is found.

    for(int i = 0; i < pFormatCtx->nb_streams; i++) { // nb_streams == 2

       if(pFormatCtx->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO) {
           videoStream = i;
           break; // videoStream == 0
       }
    }

    Then when retrieving the frame data, it seams grabbing the audio channel.

    while(av_read_frame(pFormatCtx, &packet) >= 0) { // read returns 0

       // Is this a packet from the video stream?
       if(packet.stream_index == videoStream) {
           //packet.stream_index == 1, which correspond to the audio stream
       }
    }

    I have not found examples online where this test is actually failing. Have I miss some way to specify the stream_index that is not in the tutorial ? Maybe the tutorial is not up to date and is doing something wrong ? If so, what is the correct way to extract the frame data ? In case that matters, I am using the latest FFmpeg 4.0.2 build, on Windows 64-bits, compiling with Visual Studio 2017.

    On videos with no sound, the two streams match and I am able to decode and display the frames correctly.

  • Retry "getting impatient" SWF loading stage if PercentLoaded() returns > 0 && 100. Should help to prevent time-outs on very slow-to-load pages, first hit (non-cached cases etc.)

    28 mai 2012, par Scott Schiller

    m script/soundmanager2-jsmin.js m script/soundmanager2-nodebug-jsmin.js m script/soundmanager2-nodebug.js m script/soundmanager2.js Retry "getting impatient" SWF loading stage if PercentLoaded() returns > 0 &