
Recherche avancée
Autres articles (90)
-
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 (11198)
-
Java Runtime Command with disrupt/additonal command
11 juin 2014, par oneofakindActually the example below is not what I want to do, its sort of related to what I really wanna do. Its basically having to execute a shell command or a cmd command and executing another command relating to the first command. Somehow it stops/proceeds/respond to the first command executed.
It’s actually ffmpeg execution what I wanna do, recording the screen. Problem is that I cannot execute a "q" key to stop the recording. Example above is sort of a simple, but I hope applicable, to my main problem.
Here is the simplified problem :
StringBuffer output = new StringBuffer();
String domainName = "google.com";
String command = "ping -t " + domainName;
Process p;
try {
p = Runtime.getRuntime().exec(command);
p.waitFor();
BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line = "";
while ((line = reader.readLine())!= null) {
output.append(line + "\n");
}
} catch (Exception ec) {
ec.printStackTrace();
}
System.out.println(output);What will happen here is that it will ping endlessly unless interrupted to end the ping, what will happen to the code is that it will get stuck in the line :
p.waitFor();
That is because, I believe, it is waiting for the command to finish before it releases it. What I want to do is to execute a "ctrl+C" or command that will stop this execution and then manipulate the result continuing through
BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
........
........I hope you guys got what I am trying to say. :D
Please help. Thanks.
-
Extract audio from video in mp3 format using android-ffmpeg-library
28 mai 2014, par user2870161I want extrat audio from any type of video file and save it in mp3 format using android-ffmpeg-library.
My most of work is done here i am create wav file using this code but problame is when i create mp3 file it make only 0kb file in sdcard.
I hope I’ve made myself clear, and thanks for taking the time to read this.
if (inputPath == null || outputPath == null) {
throw new IllegalStateException("Need an input and output filepath!");
}
final List<string> cmd = new LinkedList<string>();
String baseDir = Environment.getExternalStorageDirectory().getAbsolutePath();
String fileName = "3.mp4";
String fileName1 = "2.mp3";
String path = baseDir + "/" + fileName;
String path1 = baseDir + "/" + fileName1;
File f = new File(path);
if(f.exists()){
System.out.println("File existed");
}else{
System.out.println("File not found!");
}
cmd.add(mFfmpegPath);
cmd.add("-i");
cmd.add(path);
cmd.add("-vn");
cmd.add("-acodec");
cmd.add("copy");
cmd.add(path1);
final ProcessBuilder pb = new ProcessBuilder(cmd);
return new ProcessRunnable(pb);
</string></string> -
Why ffmpeg C - API Doxygen document using c++ style of namespace for structure
25 décembre 2018, par VencatI’m new to ffmpeg C-API and learning it from doxygen document in official site. I hope the document explains about ffmpeg C-API, but I have seen some c++ style of class and namespace in it, for example please refer the below document part, where they are using c++ style of namespace for c structure.
AVClass Struct Reference :
https://ffmpeg.org/doxygen/trunk/structAVClass.html#details
can anyone clear this to me.?