
Recherche avancée
Autres articles (79)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (12836)
-
Anomalie #4128 (En cours) : Bug de génération de boucle avec les modèles Spip
11 avril 2018, par Julien PORIAUDans les modèles personnalisés Spip, les images (boucle documents ou logos) sont mal générées et provoque un bug d’encodage visible dans le front-end lors du passage dans une autre langue (balises multi).
Nous n’avons pas trouvé où était le souci dans Spip, mais les caractères qui remontent dans le code source, ressemblent aux octets qui composent le fichier binaire d’une image.
Voir en live ici : http://spip-dev.nidecker.com/probleme-de-langue.html?lang=ca.Pour essayer d’isoler cette anomalie, nous avons procédé de la sorte avec l’aide de mon développeur :
1. Nous sommes reparti d’un SPIP 3.1.7 entièrement neuf (minimal), avec deux modèles Spip, rien d’autre.
Le bug se reproduit, ce qui exclus un problème lié aux squelettes ou autres plugins.Nous n’avons pas réussi a déterminer précisément ce qui génère ce bug, à part que c’est dans un contexte où on appelle une langue pas définie dans le multi.
En fonction du contenu de l’article, du nombre de modèles dans l’article, en fonction des boucles dans les inclure, le bug n’arrive pas au même endroit...Le problème vient de la génération des logos ou documents : si on supprime les balises
#LOGO_*
ou si on renommeIMG
enIMG_
, plus d’erreur.
Même sans traitements, avec juste[(#LOGO_*)]
, rien à faire.2. Nous avons pensé que c’était peut être une image au mauvais format : On a alors tenté de passer
ImageOptim
sur tout le répertoire/IMG
, redimensionné tous les logos en vignettes png de 320x240, rien à faire...3. On a fini par passer ce site de test en 3.2, pas mieux.
4. Nous avons épluché les caches générés dans
/tmp/cache
et/tmp/cache/skel
, tout paraît normal de ce côté là..5. On a ensuite un peu avancé en enlevant dans
mes_options.php
la variable$GLOBALS['forcer_lang'] = true
".
Sur la version minimal, plus de bug. Mais sur le site de production, le problème réside toujours.
Mais en faisant des tests avec et sans (et en supprimant bien/tmp/cache/
à chaque fois), ça se confirme pour la version minimal.6. A partir d’une copie de la version production, nous avons désactivé tout les plugins, passer
ImageOptim
sur/IMG
et rien a faire.. Impossible de déterminé d’où vient le problème :(7. Nous avons essayé d’écrire comme ceci :
[<img src="http://core.spip.org/projects/spip/(#LOGO_MOT|image_reduire{50,*}|extraire_attribut{src})" alt="" style='max-width: 300px; max-height: 300px' />]
Cela fonctionne sur la version minimal mais pas sur la version production.8. Dans la version minimal, j’ai encore récemment testé une dernière chose. J’ai supprimé les documents non sollicités sur ma page de teste (spip.php ?article1441&lang=ca).
Avec la requête SQL suivante :DELETE FROM jones_documents WHERE id_document NOT IN (1948,1949,2534,2535,630,631,1783,1784,1785,1786,1787,1788,1781,1782)
Le bug n’apparait plus..Je sèche..
Vous trouverez ici en téléchargement une archive de la version minimal (Spip 3.1.7) : https://www.dropbox.com/s/dek0zg7jafl8uxe/jones.zip?dl=0] ( 20mo)
Pour reproduire le bug, il suffit de passer la variable "&lang=ca" dans l’article 1441 (localhost/spip.php ?article1441&lang=ca).Je donne volontiers un accès à la version production si besoin.
-
Can I know which byte range to read from a remote mp4 file for FFMpeg to decode a keyframe ?
12 octobre 2023, par db9117I need to decode a of keyframe of a video file (mp4, h264 encoded). I know the timestamp of the keyframe I want to extract/decode. I want to minimize amount of data being read in memory. For this, I need to know beforehand exactly the minimal byte range I would require that encompasses this keyframe. How do I know what is the minimal byte range in the whole mp4 byte stream I need to read in order to be able to decode the keyframe ?


I currently find the appropriate keyframe in the
index_entries
contained in the header. I get its byte position (pos
attribute) and timestamp (timestamp
attribute). I calculate the range as follows :

startBytes
: minimum of :

- 

- the
pos
of the keyframe - the
pos
of the nearest index entry in the audio stream happening at or before the keyframe's timestamp.






This way when it's decoding the frame, if it also needs the audio content for demuxing, it would have it.


endBytes
: maximum of :

- 

- the
pos
of the next frame in the video stream's index, after the keyframe - the
pos
of the next frame in the audio stream's index after the timestamp of the wished keyframe.






This way I know that I have everything up until the next frame in the index, which theoretically should be enough to decode the keyframe only.


I then read the appropriate byte range.


When I try to decode the frame, I run in a loop until I succeed :


- 

avcodec_read_frame
avcodec_send_packet
avcodec_receive_frame








I ignore
AVERROR(EAGAIN)
errors.

avcodec_receive_frame
fails multiple times with errorAVERROR(EAGAIN)
which I ignore, until it fails saying that the memory it wants to read isn't available (wants to read afterendBytes
). I explicitly tell it to fail if it wants to read more than it has already read.

Note : for other keyframes at other positions in other videos, it sometimes succeeds (probably because the range is big enough by chance), but it fails more often than not.


My question is : Why is the end of the range not enough to be able to decode only the one keyframe ? Is there any way to more precisely calculate the exact range in bytes I would need in order to decode a particular keyframe ?


- the
-
How do I download a list mpd with ffmpeg
13 mai 2016, par Don DonlleiI did download the video from a site that used M3U8 but he moved to mpd and do not know how do I download it.
<mpd type="static" minbuffertime="PT1S" mediapresentationduration="PT0H1M56.320S" profiles="urn:mpeg:dash:profile:full:2011"><programinformation moreinformationurl="http://gpac.sourceforge.net"></programinformation><period start="PT0S" duration="PT0H1M56.320S"><adaptationset segmentalignment="true" maxwidth="1920" maxheight="1080" maxframerate="25" par="16:9"><contentcomponent contenttype="video"></contentcomponent><contentcomponent contenttype="audio"></contentcomponent><segmenttemplate timescale="1000" duration="9693" media="$RepresentationID$/Y7aRjDxbh_$Number$.m4s" startnumber="1" initialization="$RepresentationID$/Y7aRjDxbh_init.mp4"></segmenttemplate><representation mimetype="video/mp4" codecs="avc3.64000d,mp4a.40.2" width="320" height="240" framerate="25" sar="4:3" audiosamplingrate="44100" startwithsap="1" bandwidth="400000">
</representation><representation mimetype="video/mp4" codecs="avc3.64001e,mp4a.40.2" width="720" height="480" framerate="25" sar="32:27" audiosamplingrate="44100" startwithsap="1" bandwidth="900000">
</representation><representation mimetype="video/mp4" codecs="avc3.64001f,mp4a.40.2" width="960" height="720" framerate="25" sar="4:3" audiosamplingrate="44100" startwithsap="1" bandwidth="1500000">
</representation><representation mimetype="video/mp4" codecs="avc3.640028,mp4a.40.2" width="1920" height="1080" framerate="25" sar="1:1" audiosamplingrate="44100" startwithsap="1" bandwidth="3500000">
</representation><representation mimetype="video/mp4" codecs="avc3.640028,mp4a.40.2" width="2730" height="1440" framerate="25" sar="1:1" audiosamplingrate="44100" startwithsap="1" bandwidth="10000000">
</representation><representation mimetype="video/mp4" codecs="avc3.640028,mp4a.40.2" width="4096" height="2160" framerate="25" sar="1:1" audiosamplingrate="44100" startwithsap="1" bandwidth="20000000">
</representation></adaptationset></period></mpd>