Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (112)

  • 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 ;

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (9587)

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

    


  • 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

    


  • 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 ?