
Recherche avancée
Autres articles (72)
-
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 (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (6258)
-
Anomalie #3685 : Régression : balises code
9 février 2016, par b bÀ ce que je vois le problème ne vient pas du raccourci code par défaut, mais plutôt de :
code class=’spip’>#CACHE0
Du coup, le bug doit venir du plugin coloration code.
-
Implementing '-async 1' in C code to correct out of sync audio
25 septembre 2013, par Christian P.I have built a segmenter that takes as input a h264 / AAC video and segments according to the HLS specification. The source code for it can be seen here : https://gist.github.com/cpnielsen/f36729c371aac0fe535d
It is implemented as a python extension, but the interesting parts are in the
process_video()
function. It makes use of thelibav
library (alternativelyffmpeg
) to do the heavy lifting.It works 95% of the time, but we have come upon some videos where it produces segments with audio out of sync. If I was using the command-line tool, I could simply add
-async 1
to fix it, but how do I implement the same functionality in my C code ?I found a snippet of code in
avconv_filter.c
(forlibav
, not sure what theffmpeg
equivalent is) where they initiate the filter, but without any documentation it is hard to figure out how to do this outside the whole modular setup.I just need to :
- Initiate the correct filter
- Apply it to the input (or output ? not sure)
- Know of any pitfalls when using the filter.
Any help is welcome ; sample code, explanation of the filter, etc.
-
Ffmpeg returning error code 1 in AWS Lamda function
14 avril 2018, par TometoyouI’m running a lambda function which takes an
mp4
video, and adds a watermark of apng
image over the top of it in the bottom right hand corner (with a10px
margin). It then outputs that image to a temporary location. It keeps failing withError code 1
, but that isn’t very helpful. I’m using a binary version offfmpeg
that is specified in the main directory of the code. I know thatffmpeg
is set up correctly due to using it in another lambda function in this way, which works. But adding an overlay fails. Here is the relevant part of my code :function addWatermark(next) {
var ffmpeg = child_process.spawn("ffmpeg", [
"-i", target, // url to stream from
"-i", watermarkPath,
"-filter_complex" ,"overlay=x=W-w-10:y=H-h-10:format=rgb,format=yuv420p",
"-c:a", "copy",
"pipe:1"
]);
ffmpeg.on("error", function(err) {
console.log(err);
})
ffmpeg.on("close", function(code) {
if (code != 0 ) {
console.log("child process exited with code " + code); // Always exits here.
} else {
console.log("Processing finished !");
}
tmpFile.end();
next(code);
});
tmpFile.on("error", function(err) {
console.log("stream err: ", err);
});
ffmpeg.on("end", function() {
tmpFile.end();
})
ffmpeg.stdout.pipe(tmpFile)
.on("error", function(err){
console.log("error while writing: ",err);
});
}Can anyone spot what may be wrong ?
UPDATE
I’ve managed to print out some more logs, I’m getting the error :
[NULL @ 0x42923e0] Unable to find a suitable output format for 'pipe:1'