
Recherche avancée
Autres articles (64)
-
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 (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (7110)
-
Finding duration/number of frames of WebM using FFMPEG/libavformat
12 septembre 2015, par gcgrantI’m trying to retrieve the duration and number of frames from a WebM file using FFMPEG and libavformat. I’m adapting some code that was initially written to work with MP4s, and when passing an MP4 it seems to work fine.
I have FFMPEG 2.1 compiled with the vp8 parser and decoder and the matroska demuxer.
I have an
AVStream
pointer to the video stream,*video_st
. The code looks for the number of frames invideo_st->nb_frames
, and for the duration invideo_st->duration
. These both appear to be 0.The API docs for for
video_st->duration
(https://ffmpeg.org/doxygen/trunk/structAVStream.html#a4e04af7a5a4d8298649850df798dd0b) say that "If a source file does not specify a duration, but does specify a bitrate, this value will be estimated from bitrate and file size." I can confirm that that this file does specify a duration and a bitrate (as I tested it on my desktop withffmpeg -i
). So it seems odd that this is returning 0. Perhaps my FFMPEG build configuration is incorrect ?As for
nb_frames
, the docs say "number of frames in this stream if known or 0". Is there anything I can do if this returns 0 ? Again,ffmpeg -i
does return an estimate for fps ; that would be good enough, as I could estimate the number of frames with that and the duration.Thanks !
-
mp4 video fragmented using ffmpeg takes long time to start playing
14 mai 2020, par daldoyWhen using ffmpeg, to stream the output file to S3, it is required to use "-movflags frag_keyframe", and the generated file will be a fragmented mp4.



When I try to play this files from S3 it takes a long time to start playing. I have tried the recommended movflags from MDN Docs and all the possible combinations.



ffmpeg -i https://notreal-bucket.s3-us-west-1.amazonaws.com/video/video.mp4 -f mp4 -movflags frag_keyframe+empty_moov pipe:1 | aws s3 cp - s3://notreal-bucket/video/output.mp4



Link of the file : https://happy-testing.s3-eu-west-1.amazonaws.com/stack-overflow/help.mp4


-
Evolution #4730 : Rendre le plug 100% traduisable
15 avril 2021Pour les format de date, plusieurs remarques :
1) on utilise les chaines de langues de d3js time-format : https://git.spip.net/spip/statistiques/src/branch/master/lib/d3/time-format/locale
2) ici ça se passe beaucoup en JS et JS sait maintenant traduire (la plupart des navigateurs) différents formats de date https://caniuse.com/mdn-javascript_builtins_intl_locale_script https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/script donc au pire on aurait pu utiliser ça (et d3 l’utilisera probablement un jour qui sait mais pas pour le moment https://github.com/d3/d3-time-format/issues/57)La traduction qui manque pour le moment est "Visites" j’ai aperçu, et faut que je vois pourquoi.