
Recherche avancée
Autres articles (80)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
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 (6046)
-
using ffmpeg in C : system() or C api ?
5 décembre 2018, par toastedDeliI want to use ffmpeg’s transcoding features multiple times in my program. This can be achieved by doing
ffmpeg -i input output
in a terminal. I believe I can use some shell or C code to execute these commands programmatically.
I could also directly use ffmpeg’s c libraries to do this. My question is, will there be a noticeable performance difference between the 2 approaches ? Obviously the first will be simpler to implement, but will I pay a big performance cost ?
-
How to start webcam capturing with javacv
11 septembre 2017, par suny99I am new to JavaCV, i started to learn it but there is lack of documentation. so i need help. My goal in simple. Just take a capture with camera and open it in window, so i dont want to record or anything. Just open camera in window. this is my code :
public static void main(String[] args) throws FrameGrabber.Exception {
FrameGrabber grabber = FrameGrabber.createDefault(0);
grabber.start();
IplImage grabbedImage = converter.convert(grabber.grab());
CanvasFrame frame = new CanvasFrame("Some Title", CanvasFrame.getDefaultGamma()/grabber.getGamma());
while(grabber.grab()!=null){
frame.showImage(grabbedImage);
}
frame.dispose();
grabber.stop();
}So what is bothering me is this : frame.showImage(grabbedImage) ;
What i need to do to get that image from camera -
Output to pipe and file at the same time even if pipe isn't accepting inputs
5 juillet 2018, par Eduardo PerezSo, I made a script for Cygwin that uses Windows’s ImageMagick and FFmpeg, but I am not sure if the results here will also apply for bash on Linux. So, what the script does is I have some cartoon video files and I’m using Waifu2x to enhance and upscale the images to 4K, and then using ImageMagick to pipe it to FFmpeg, which is also used to resize it to 3840x2160 in case the resolution is slightly different. Here’s a small script I wrote for this example to simplify how it outputs to FFmpeg, as the real script is extremely lengthy and complex.
#!/bin/bash
fun(){
convert out.png JPG:-|tee "$outfile"
}
fun|ffmpeg -f image2pipe -r 60 -i - -c:v libx265 -movflags +faststart "$outputfile"Now, what I noticed is that if FFmpeg fails to encode, the function continues but fails to output to
$outfile
. What I want to do is have it able to output to that file in case the encoding fails since I also write all the images to a cache folder for FFmpeg to run through in case the encoding fails, but I also want to write to both the pipe for FFmpeg and the file at the same time. What seems to be happening is that the commandtee
appears to be refusing to write to the file if it can’t write to the pipe. I’m not sure if this behavior is intended, and/or if it also does this on Linux bash. How can I get around this and have it write to the file even if it can’t write to the pipe, but write to both at the same time rather than writing to the file and attempting to read it back to the pipe ?