Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (41)

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

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (3474)

  • How does FFMPEG copy work ?

    24 novembre 2017, par Tyler Brooks

    How can I implement the equivalent of this command :

    ffmpeg -i test.h264 -vcodec copy -hls_time 5 -hls_list_size 0 foo.m3u8

    My understanding is that you do something like this (pseudo code for clarity) :

    avformat_open_input(&ctx_in, "test.h264", NULL, NULL);
    avformat_find_stream_info(ctx_in, NULL);

    avformat_alloc_output_context2(&ctx_out, NULL, "hls", "foo.m3u8");
    strm_out = avformat_new_stream(ctx_out, NULL);
    strm_out->time_base = (AVRational){1000000, FRAMERATE};

    strm_out->codecpar->codec_id = AV_CODEC_ID_H264;
    strm_out->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
    strm_out->codecpar->width = width;
    strm_out->codecpar->height = height;
    strm_out->codecpar->bit_rate = bitrate;
    strm_out->codecpar->codec_tag = 0;

    avcodec_parameters_copy(ctx_out->streams[0]->codecpar,
     ctx_in->streams[0]->codecpar);

    avformat_write_header(ctx_out, NULL);

    while(1) {
     AVPacket pkt;

     ret = av_read_frame(ctx_in, &pkt);
     if (ret < 0)
       break;

     pkt.pos = -1;
     pkt.stream_index = 0;
     pkt.dts = AV_NOPTS_VALUE;
     pkt.pts = AV_NOPTS_VALUE;
     pkt.pts = SOME_DURATION;

     av_write_frame(ctx_out, &pkt);
     av_packet_unref(&pkt);
    }
    avformat_close_input(&ctx_in);
    av_write_trailer(ctx_out);
    avformat_free_context(ctx_out);

    I crash on the avformat_find_stream_info() call. I think this is the case because an H264 elemental stream is not really a container (which avformat wants).

    What is the proper way to implement the FFMPEG ’copy’ command of an elemental stream ?

  • Use ffmpeg to extract audio track and subtiles to a m3u8 files which can work with video.js

    12 juillet 2020, par Maxou

    I download video with multiple audio track and subtiles but I don't know the exact number and I want to convert this video to m3u8. Someone know a command which can do what i want ? Thanks

    


  • ffmpeg -stream_loop doesnt work on hls file

    7 décembre 2022, par Enrique Corpus

    Can someone pls help me figure out my problem with ffmpeg. When I try to add -stream_loop option on the command, I got an error

    


    [AVIOContext @ 0x7f8c42705080] Statistics: 362088 bytes read, 0 seeks296.7kbits/s speed=1.01x Seek to start failed. playlist_main2.m3u8: Operation not permitted

    


    And here is my ffmpeg command
ffmpeg -stream_loop -1 -i playlist_main2.m3u8 -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 file.mp4

    


    Im thinking the problem might be on the .ts file, since I dont encounter this error when testing differet hls files, but I want to have a proof that the source is the proble. Pls help me. Attached is the m3u8 file and the .ts file.
HLS FILE

    


    Tried different hls file and the command works. Now im suspecting the problem is on the video (.ts) file itself but i cant prove it.