Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (98)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (9104)

  • Using FFMPEG to make HLS clips from H264

    21 novembre 2017, par Tyler Brooks

    I am using a Hi35xx camera processor from HiSilicon. It is an Arm9 with a video pipeline bolted on the side. At one end of the pipeline is the CMOS sensor. At the other end is a H264 encoder. When I turn on the pipeline, the encoder outputs H264 NAL packets like this :

    frame0: <sps>,<pps>,<sei>,<key frame="frame">
    frame1: <delta frame="frame">
    frame2: <delta frame="frame">
    ...
    frameN: <delta frame="frame">
    frameN+1: <sps>,<pps>,<sei><key frame="frame">
    frameN+2: <delta frame="frame">
    frameN+3: <delta frame="frame">
    ...
    etc.
    </delta></delta></key></sei></pps></sps></delta></delta></delta></key></sei></pps></sps>

    I am turning that into HLS clips by doing the following (pseudo code for clarity) :

    av_register_all();
    avformat_network_init();

    avformat_alloc_output_context2(&amp;ctx_out, NULL, "hls", "./foo.m3u8");

    strm_out = avformat_new_stream(ctx_out, NULL);

    codec_out = strm_out->codecpar;
    codec_out->codec_id = AV_CODEC_ID_H264;
    codec_out->codec_type = AVMEDIA_TYPE_VIDEO;
    codec_out->width = encoder_width;
    codec_out->height = encoder_height;
    codec_out->bit_rate = encoder_bitrate;
    codec_out->codec_tag = 0;

    avformat_write_header(ctx_out, NULL);

    while(get_packet_from_pipeline_encoder(&amp;encoder_packet)) {
     AVPacket pkt;
     av_init_packet(&amp;pkt);
     pkt.stream_index = 0;

     pkt.dts = AV_NOPTS_VALUE;
     pkt.pts = AV_NOPTS_VALUE;
     pkt.duration = (1000000/FRAMERATE);    // frame rate in microseconds

     pkt.data = encoder_packet.data;
     pkt.size = encoder_packet.size;

     if (is_keyframe(&amp;encoder_packet)) {
       pkt.flags |= AV_PKT_FLAG_KEY;
     }

     av_write_frame(ctx_out, &amp;pkt);
    }

    av_write_trailer(ctx_out);
    avformat_free_context(ctx_out);

    This seems to work fine except that the resulting HLS frame rate is not right. Of course, this happens because I am not setting the pts/dts stuff correctly and ffmpeg lets me know that. So I have two quetions :

    1. Am I going about this right ?
    2. How can I set the pts/dts stuff correctly ?

    The encoder is giving me packets and I am submitting them as frames. Those <sps>, <pps> and <sei></sei></pps></sps> packets are really out of band data and don’t really have a timestamp. How can I submit them correctly ?

  • avcodec/amfdec,rkmppdec : Use correct extradata with BSFs

    11 juin, par Andreas Rheinhardt
    avcodec/amfdec,rkmppdec : Use correct extradata with BSFs
    

    Otherwise the extradata used would be ISOBMFF if the input is
    even though we use the *_mp4toannexb BSFs to convert it to
    annex B to feed it to the actual decoder.

    (The mediacodec decoders also use said BSFs, yet they process
    the extradata in a way that works even when using the ISOBMFF
    extradata ; in fact, using the converted extradata would break
    their check for whether to warn for missing extradata for
    the ISOBMFF without-in-band-header profiles.

    Furthermore, there are several users of the *_mp4toannexb BSFs
    that don't ever touch extradata. They have not been touched.)

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/amfdec.c
    • [DH] libavcodec/decode_bsf.h
    • [DH] libavcodec/rkmppdec.c
  • can someone explain this difference between H.264 and H.265 ?

    19 janvier 2017, par Muhammad Abu bakr

    I have studied this in a research paper :

    "The off-the-shelf video codecs like H.264 handle all the movements equally. In our case there are some non moving region that lies in region of interest and need to be encode in high quality and there are some moving regions which don’t need such requirements. H.265 can help us in such circumstances."

    How H.265 deals with movements differently ?