Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (73)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

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

Sur d’autres sites (8348)

  • Get mime type for MediaSource.isTypeSupported

    6 mars 2016, par Guig

    How do I get the Mime type I need to pass to MediaSource.isTypeSupported with ffprobe/ffmpeg ?

    For instance, on my computer, that returns true :

    MediaSource.isTypeSupported('video/mp4; codecs="avc1.64000d,mp4a.40.2"')

    while that doesn’t

    MediaSource.isTypeSupported('video/mp4')

    I’m not sure how to get what would correspond to the avc1.64000d,mp4a.40.2 part for a given video. Here is a larger list of what this part may look like.

    ffprobe -show_streams -i video.mp4 returns a number of interesting informations, including

    codec_type=video
    codec_time_base=1/40
    codec_tag_string=avc1
    codec_tag=0x31637661

    and

    codec_type=audio
    codec_time_base=1/48000
    codec_tag_string=mp4a
    codec_tag=0x6134706d

    I’m not sure I should go with 'video/mp4; codecs="avc1.0x31637661,mp4a.0x6134706d"' since this returns false and I don’t know if it’s because it’s not the excepted argument or because the video is indeed not supported.

  • fftools/ffmpeg_filter : do not assume av_buffersrc_get_nb_failed_requests()>0

    7 mars 2024, par Anton Khirnov
    fftools/ffmpeg_filter : do not assume av_buffersrc_get_nb_failed_requests()>0
    

    Apparently it can happen that avfilter_graph_request_oldest() returns
    EAGAIN, yet av_buffersrc_get_nb_failed_requests() returns 0 for every
    input.

    Works around #10795, though the root issue is most likely in the
    scale2ref filter.

    • [DH] fftools/ffmpeg_filter.c
  • FFMPEG - AVFrame to per channel array conversion

    27 décembre 2016, par ahmadh

    I am looking to copy an AVFrame into an array where pixels are stored one channel at a time in a row-major order.

    Details :

    I am using FFMPEG’s api to read frames from a video. I have used avcodec_decode_video2 to fetch each frame as an AVFrame as follows :

    AVFormatContext* fmt_ctx = NULL;
    avformat_open_input(&fmt_ctx, filepath, NULL, NULL);
    ...
    int video_stream_idx;  // stores the stream index for the video
    ...
    AVFrame* vid_frame = NULL;
    vid_frame = av_frame_alloc();
    AVPacket vid_pckt;
    int frame_finish;
    ...
    while (av_read_frame(fmt_ctx, &vid_pckt) >= 0) {
       if (b_vid_pckt.stream_index == video_stream_idx) {
           avcodec_decode_video2(cdc_ctx, vid_frame, &frame_finish, &vid_pckt);
           if (frame_finish) {
               /* perform conversion */
           }
       }
    }

    The destination array looks like this :

    unsigned char* frame_arr = new unsigned char [cdc_ctx->width * cdc_ctx->height * 3];

    I need to copy all of vid_frame into frame_arr, where the range of pixel values should be [0, 255]. The problem is that the array needs to store the frame in row major order, one channel at a time, i.e. R11, R12, ... R21, R22, ... G11, G12, ... G21, G22, ... B11, B12, ... B21, B22, ... (I have used the notation [color channel][row index][column index], i.e. G21 is the green channel value of pixel at row 2, column 1). I have had a look at sws_scale, but I don’t understand it enough to figure out whether that function is capable of doing such a conversion. Can somebody help !! :)