
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (106)
-
Le profil des utilisateurs
12 avril 2011, parChaque 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, parAccé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 (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)
Sur d’autres sites (10008)
-
ffmpeg -stream_loop doesnt work on hls file
7 décembre 2022, par Enrique CorpusCan 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 MaxouI 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 BrooksHow 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 ?