Recherche avancée

Médias (91)

Autres articles (24)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Participer à sa documentation

    10 avril 2011

    La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
    Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
    Pour ce faire, vous pouvez vous inscrire sur (...)

Sur d’autres sites (9067)

  • Muxing encoder output with custom io in ffmpeg

    3 mai 2021, par MisterSincere

    I am having some basic issues on how to mux my encoder results into a mp4 file. My current approach is to create a custom AVFormatContext, where the DataProvider is the encoder :

    


    AVFormatContext *create_format_context(DataProvider *pDataProvider) {
  AVFormatContext *ctx{avformat_alloc_context()};

  size_t   bufSize{8 * 1024 * 1024};
  uint8_t *avBuffer{(uint8_t*)av_malloc(bufSize)};

  ctx->pb = avio_alloc_context(avBuffer,
                               bufSize,
                               0,
                               pDataProvider,
                               DataProvider::read,
                               nullptr,
                               nullptr);

  ctx->flags |= AVFMT_FLAG_CUSTOM_IO;

  FFMPEG_CALL(avformat_open_input(&ctx, nullptr, nullptr, nullptr));
  return ctx;
}


    


    But I crash on avformat_open_input with the following error message :

    


    


    Invalid data found when processing input

    


    


    It tries to read for the first time from the encoder, but since this is at init-time, the encoder doesn't have any results yet. I figured the problem is that ffmpeg tries to query for some header informations, since it would feel weird to ask for actual data when just opening.
    
How do I provide that header information / where can I learn something about how this header should look like and what else I need to provide for ffmpeg ?
    
Or is there even a completely different approach, because quite honestly I would be happy if I could feed the per frame encoded data directly to ffmpeg instead of through this whole context abstraction.

    


    For context I pasted the muxer class, I guess the progress() function is the most interesting one, here header, source.

    


    Also I call the kinda magic functions

    


    av_register_all();
avcodec_register_all();
avformat_network_init();


    


    before everything else concerning ffmpeg.

    


    The encoder is not written with ffmpeg, but with cuda / the nvidia video sdk for hardware acceleration purposes.

    


  • avfilter/graphparser : add ’\r’ as whitespace

    6 mai 2016, par Muhammad Faiz
    avfilter/graphparser : add ’\r’ as whitespace
    

    for compatibility with platforms that treat it
    as newline

    Signed-off-by : Muhammad Faiz <mfcc64@gmail.com>

    • [DH] libavfilter/graphparser.c
    • [DH] libavfilter/version.h
  • avfilter/avf_showcqt : add performance debugging log

    6 mars 2016, par Muhammad Faiz
    avfilter/avf_showcqt : add performance debugging log
    

    for easier development

    Signed-off-by : Muhammad Faiz <mfcc64@gmail.com>

    • [DH] libavfilter/avf_showcqt.c
    • [DH] libavfilter/avf_showcqt.h