
Recherche avancée
Autres articles (42)
-
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 -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)
Sur d’autres sites (6962)
-
Anomalie #4717 : Erreurs nombre d’argument des filtres
9 avril 2021, par jluc -Une alternative à catcher les exceptions serait d’associer à chaque filtre SPIP sa déclaration d’arité minimale et maximale, et tester la conformité avant d’appeler.
(Mais faudra t il alors aussi une déclaration sur les types des arguments ? et ainsi de suite pour toutes les circonstances où PHP devient intolérant ?)
-
How to copy and transform a video device using v4l2loopback and ffmpeg (or avconv)
22 décembre 2017, par Nico ToubI am using the following commands to create 2 virtual video devices :
# add 2 virtual video devices
modprobe v4l2loopback devices=2 exclusive_caps=1,1Then I duplicate my webcam video into those virtual devices, so I can use one in firefox, and one in chrome (in order to debug webrtc communication) :
# duplicate webcam to virtual devices
ffmpeg -f v4l2 -i /dev/video0 -f v4l2 /dev/video1 -f v4l2 /dev/video2This work good, but it would be even better if I could have some difference between video1 and video2.
Is there a way to transform one of the video output (flip, rotate, greyscale...) with ffmpeg or avconv ?
-
Is it possible to generate a keyframe to start a spliced H.264 video segment ?
3 janvier 2015, par Ethan TWhen segmenting files with
ffmpeg
, I am currently only able to splice on keyframe boundaries if I don’t want to reencode. This presents issues if I want to control timing down to a specific frame. To my knowledge, you can only start on a keyframe if you’re performing a stream copy. If you want to start on an arbitrary frame, you must reencode.However, for codecs that
ffmpeg
understands (like H.264), it seems like it would be technically possible to replace the desired first frame with a newly created keyframe without reencoding the rest of the video. This would represent a "smart copy" sort of behavior. For example, say my video consists of these frames and types :Frame number: 0 1 2 3
0123456789012345678901234567890123
Frame type: IppbppbppbppbIppbppbppbppbIppbppbp
Keyframes: ^ ^ ^(
I
frames are keyframes whilep
andb
frames are not)Currently, if I want to remove the first few frames and start on exactly frame 20, I must reencode the entire stream beginning with that input frame. This would cause an undesired degradation in quality. Instead, if I perform a copy,
ffmpeg
would begin at the most recent keyframe :Frame number: 0 1 2 3
0123456789012345678901234567890123
Frame type: IppbppbppbppbIppbppbppbppbIppbppbp
Desired start: ^
Actual start: ^Why can’t
ffmpeg
seek to frame 13 (the last complete keyframe prior to the cut point), fully calculate frame 20, and recreate frame 20 as an I frame ? It would then copy the remaining frames as before. Like this :Frame number: 0 1 2 3
0123456789012345678901234567890123
Input type: IppbppbppbppbIppbppbppbppbIppbppbp
Output type: IpbppbIppbppbpIt seems like this would be a very useful feature for splicing videos without losing quality. Is there any technical barrier (e.g. the H.264 spec or any other common codec) that prevents this approach ?