
Recherche avancée
Autres articles (49)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette 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. -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...) -
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 (...)
Sur d’autres sites (9199)
-
How do I know if an M3U8 link is from a live transmission or a complete file ?
17 août 2022, par karurosaguThis is my problem


I have a downloader app, and one of it's features is downloading M3U8 links using FFmpeg under the hood

It only supports a selection of sites and platforms, but i don't want to add support for unknown origin links, not just because it's obviously missing the right headers, cookies and user agent and the user would have to put all of that to work, the main reason is that I don't know how to determine if that link leads to a complete file or if it leads to a live transmission

This is what happened :


A user of my app gave me a link to test it manually, i ran the code and I noteiced it was taking a lot of time to finish having a decent speed, the file was getting too big, and when i ask him where did the link came from he said it was from a Live TV stream : I had to cancel the download


So, how do i know in FFmpeg if a given M3U8 link leads to a complete file rather than a live transmission ?


-
Revision 6906 : On répare le formulaire de pagination (on limite à 10 le nombre de ...
20 août 2012, par kent1 — LogOn répare le formulaire de pagination (on limite à 10 le nombre de sélections possibles)
-
ffmpeg how to save decoded audio data to pcm
21 avril 2015, par JasonI have succeed decode audio data from a mp4 using avcodec_decode_audio4, I want to save the decoded frames,so I tried below
if (got_frame) {
int size;
uint8_t *data;
int ref = 0;
ret = swr_convert(swr, &data, frame->nb_samples, (const uint8_t **)frame->extended_data, frame->nb_samples);
//fwrite(data, 1, frame->nb_samples, fp_audio);
ref++;
int szie = av_samples_get_buffer_size(NULL, 2, 1024, AV_SAMPLE_FMT_FLTP, 1);
for (int i = 0; i < frame->linesize[0]/4; i++)
{
fwrite(frame->data[0] + 4*i, 1, 4, fp_audio);
fwrite(frame->data[1] + 4*i, 1, 4, fp_audio);
ref++;
}
av_frame_unref(frame);
}but the pcm sounds strange, I also tried directed write as follows
fwrite(frame->data[0], 1, frame->linesize[0], fp_audio);
or :
fwrite(frame->data[0], 1, frame->linesize[0], fp_audio);
fwrite(frame->data[1], 1, frame->linesize[0], fp_audio);I know that the decoded pcm is AV_SAMPLE_FMT_FLTP
any help would be appreciated