Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (77)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (6393)

  • using FFmpeg, how to decode H264 packets

    28 mars 2017, par Jun

    I’m new to FFmpeg struggling to decode H264 packets which can be obtained as an array of uint8_t.

    After many of investigations, I think it should be able to just put the array into an AVPacket like the below

    AVPacket *avpkt = (AVPacket *)malloc(sizeof(AVPacket) * 1);
    av_init_packet(avpkt);  
    avpkt->data = ct;   // ct is the array
    avpkt->length =....

    and decode by avcodec_decode_video2(). A part of the code is like

    ...
    codec = avcodec_find_decoder(CODEC_ID_H264);
    gVideoCodecCtx = avcodec_alloc_context();
    gFrame = avcodec_alloc_frame();
    avcodec_decode_video2(gVideoCodecCtx, gFrame, &frameFinished, packet);
    ...

    I guess I set all required properties properly but this function is returning only -1 :(

    I just found the -1 is coming from

    ret = avctx->codec->decode(avctx, picture, got_picture_ptr, avpkt) ;

    in the avcodec_decode_video2() ;

    Actually, what I’m wondering is if I can decode H264 packets (without RTP header) by avcodec_decode_video2().

    Thanks for the help in advance.


    /////////// added

    OK, I’m still trying to find a solution. What I’m doing now is the below

    ** the H264 stream in this RTP stream is encoded by FU-A

    1. receive a RTP packet

    2. look if the second byte of the RTP header is > 0 which means it’s the first packet (and possibly will be followed)

    3. see if the next RTP packet has > 0 at its second byte also, then it means the previous frame was a complete NAL or if this is < 0, the packet should be appended to the previous packet.

    4. remove all RTP header of the packets so it has only like FU indicator | FU header | NAL

    5. try play it with avcodec_decode_video2()

    but it’s only returning -1..... am I supposed to remove FU indicator and header too ??

    any suggestion will be very appreciated

    thanks in advance.

  • How to gain volumes of specific bands of audio files using ffmpeg ?

    10 mai 2019, par Ko Ohhashi

    I want increase or decrease volume of specific frequency bands with ffmpeg.

    I think bandreject and bandpass filter can do similar thing.
    But is there any way to reject 80% of energy of specific bands ?

    Thanks in advance ?

  • How to stream raw H264 ? [closed]

    31 mars 2023, par Alexander Lazarenko

    I don't know anything about streaming, so don't judge me harshly.

    &#xA;

    The program receives bytes from TCP stream, processes them and adds to byte array. This array contains raw H264 frames.

    &#xA;

    If they are saved and then broadcasted, the broadcast will be interrupted. Is there something I can do to avoid restarting broadcast ?

    &#xA;

    Thanks in advance

    &#xA;