
Recherche avancée
Autres articles (107)
-
Diogene : création de masques spécifiques de formulaires d’édition de contenus
26 octobre 2010, parDiogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
A quoi sert ce plugin
Création de masques de formulaires
Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...) -
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 (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
Sur d’autres sites (15935)
-
Working Directory : null Environment : null when trying to call compiled FFMPEG in android
10 janvier 2013, par TharakaNirmanaI have the compiled FFMPEG file. I try to combine an image and an audio clip to form a video clip. Function to combine those two are : ffmpeg -i /mnt/sdcard/KaraokeVideos/allmapeople.mp3 -i /mnt/sdcard/KaraokeVideos/Penguins.jpg /mnt/sdcard/KaraokeVideos/video_finale.mpg.
I have used that in the code :
public class MainActivity extends Activity {
private Process process;
String command, text;
// load the library - name matches jni/Android.mk-jj
//static {
//System.loadLibrary("ffmpeg");
//}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
try {
Execute();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
private void Execute() throws IOException {
// TODO Auto-generated method stub
Process p = Runtime.getRuntime().exec("ffmpeg -i /mnt/sdcard/KaraokeVideos/allmapeople.mp3 -i /mnt/sdcard/KaraokeVideos/Penguins.jpg /mnt/sdcard/KaraokeVideos/video_finale.mpg");
p.getInputStream();
}But I get this exception in logcat :
01-10 18:44:24.209: W/System.err(31790): java.io.IOException: Error running exec(). Command: [ffmpeg, -i, /mnt/sdcard/KaraokeVideos/allmapeople.mp3, -i, /mnt/sdcard/KaraokeVideos/Penguins.jpg, /mnt/sdcard/KaraokeVideos/video_finale.mpg] Working Directory: null Environment: null
01-10 18:44:24.239: W/System.err(31790): at java.lang.ProcessManager.exec(ProcessManager.java:211)
01-10 18:44:24.239: W/System.err(31790): at java.lang.Runtime.exec(Runtime.java:168)
01-10 18:44:24.239: W/System.err(31790): at java.lang.Runtime.exec(Runtime.java:241)
01-10 18:44:24.249: W/System.err(31790): at java.lang.Runtime.exec(Runtime.java:184)
01-10 18:44:24.249: W/System.err(31790): at com.mindtherobot.samples.ndkfoo.MainActivity.Execute(MainActivity.java:47)
01-10 18:44:24.259: W/System.err(31790): at com.mindtherobot.samples.ndkfoo.MainActivity.onCreate(MainActivity.java:35)
01-10 18:44:24.259: W/System.err(31790): at android.app.Activity.performCreate(Activity.java:4465)
01-10 18:44:24.269: W/System.err(31790): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
01-10 18:44:24.269: W/System.err(31790): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1919)
01-10 18:44:24.269: W/System.err(31790): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980)
01-10 18:44:24.289: W/System.err(31790): at android.app.ActivityThread.access$600(ActivityThread.java:122)
01-10 18:44:24.289: W/System.err(31790): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
01-10 18:44:24.299: W/System.err(31790): at android.os.Handler.dispatchMessage(Handler.java:99)
01-10 18:44:24.309: W/System.err(31790): at android.os.Looper.loop(Looper.java:137)
01-10 18:44:24.309: W/System.err(31790): at android.app.ActivityThread.main(ActivityThread.java:4340)
01-10 18:44:24.319: W/System.err(31790): at java.lang.reflect.Method.invokeNative(Native Method)
01-10 18:44:24.319: W/System.err(31790): at java.lang.reflect.Method.invoke(Method.java:511)
01-10 18:44:24.329: W/System.err(31790): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
01-10 18:44:24.339: W/System.err(31790): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
01-10 18:44:24.339: W/System.err(31790): at dalvik.system.NativeStart.main(Native Method)
01-10 18:44:24.359: W/System.err(31790): Caused by: java.io.IOException: Permission denied
01-10 18:44:24.359: W/System.err(31790): at java.lang.ProcessManager.exec(Native Method)
01-10 18:44:24.369: W/System.err(31790): at java.lang.ProcessManager.exec(ProcessManager.java:209)
01-10 18:44:24.379: W/System.err(31790): ... 19 more
01-10 18:44:24.699: D/gralloc_goldfish(31790): Emulator without GPU emulation detected.What is wrong here, any help would be great !
-
Android- Error during executing Runtime.getRuntime().exec() - Environment Null -ffmpeg
18 février 2015, par Chaitanya ChandurkarI have compiled ffmpeg library on ubuntu 11.10 and ported compiled files on android.
After compiling i got libffmpeg.so successfully. It gets loaded on android successfully.I am doing it on ubuntu 11.10 eclipse android emulator.
I have created a small test application which act as command prompt which accepts command from user and displays result. (testing ffmpeg commands)
When i run simple commands like "ls", "ls -l" it works perfectly. but when i simply type "cd mnt" or "ffmpeg" as command and try to run it. I got Warnings in Logcat saying that
08-26 16:44:52.553: W/System.err(5961): java.io.IOException: Error running exec(). Command: [ffmpeg] Working Directory: null Environment: null
08-26 16:44:52.573: W/System.err(5961): at java.lang.ProcessManager.exec(ProcessManager.java:211)
08-26 16:44:52.573: W/System.err(5961): at java.lang.Runtime.exec(Runtime.java:168)
08-26 16:44:52.573: W/System.err(5961): at java.lang.Runtime.exec(Runtime.java:241)
08-26 16:44:52.583: W/System.err(5961): at java.lang.Runtime.exec(Runtime.java:184)
08-26 16:44:52.593: W/System.err(5961): at ch.ffmpeg.reversit.MainActivity.Execute(MainActivity.java:61)
08-26 16:44:52.593: W/System.err(5961): at ch.ffmpeg.reversit.MainActivity$1.onClick(MainActivity.java:46)
08-26 16:44:52.593: W/System.err(5961): at android.view.View.performClick(View.java:3480)
08-26 16:44:52.593: W/System.err(5961): at android.view.View$PerformClick.run(View.java:13983)
08-26 16:44:52.603: W/System.err(5961): at android.os.Handler.handleCallback(Handler.java:605)
08-26 16:44:52.603: W/System.err(5961): at android.os.Handler.dispatchMessage(Handler.java:92)
08-26 16:44:52.603: W/System.err(5961): at android.os.Looper.loop(Looper.java:137)
08-26 16:44:52.614: W/System.err(5961): at android.app.ActivityThread.main(ActivityThread.java:4340)
08-26 16:44:52.624: W/System.err(5961): at java.lang.reflect.Method.invokeNative(Native Method)
08-26 16:44:52.624: W/System.err(5961): at java.lang.reflect.Method.invoke(Method.java:511)
08-26 16:44:52.634: W/System.err(5961): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
08-26 16:44:52.634: W/System.err(5961): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
08-26 16:44:52.644: W/System.err(5961): at dalvik.system.NativeStart.main(Native Method)
08-26 16:44:52.644: W/System.err(5961): Caused by: java.io.IOException: Permission denied
08-26 16:44:52.674: W/System.err(5961): at java.lang.ProcessManager.exec(Native Method)
08-26 16:44:52.674: W/System.err(5961): at java.lang.ProcessManager.exec(ProcessManager.java:209)
08-26 16:44:52.684: W/System.err(5961): ... 16 moreHere is my code :
imports;
public class MainActivity extends Activity {
String com;
Process process;
EditText command;
Button run;
RelativeLayout main_layout;
static {
System.loadLibrary("ffmpeg");
}
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//find view
command=(EditText)findViewById(R.id.command);
run=(Button)findViewById(R.id.run);
run.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
com=command.getText().toString();
try {
Execute();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
}
public void Execute() throws IOException, InterruptedException{
process=Runtime.getRuntime().exec(com);
// process = pb.command(com).redirectErrorStream(true).start();
if(process!=null)
ShowOutput();
else
Toast.makeText(getBaseContext(),"Null Process",Toast.LENGTH_LONG).show();
}
public void ShowOutput() throws IOException, InterruptedException{
String s,text="",errors="";
BufferedReader stdInput = new BufferedReader(new
InputStreamReader(process.getInputStream()));
BufferedReader stdError = new BufferedReader(new
InputStreamReader(process.getErrorStream()));
TextView output=(TextView)findViewById(R.id.output);
TextView error=(TextView)findViewById(R.id.error);
while ((s = stdInput.readLine()) != null) {
text+=s.toString()+"\n";
System.out.println("Error: "+s);
}
output.setText(text);
text="";
// read any errors from the attempted command
System.out.println("Here is the standard error of the command (if any):\n");
while ((s = stdError.readLine()) != null) {
text+=s.toString()+"\n";
System.out.println("Error: "+s);
}
error.setText(text);
error.setMovementMethod(new ScrollingMovementMethod());
output.setMovementMethod(new ScrollingMovementMethod());
stdInput.close();
stdError.close();
process.waitFor();
process.getOutputStream().close();
process.getInputStream().close();
process.getErrorStream().close();
process.destroy();
}
}I even tried
process = pb.command(com).redirectErrorStream(true).start();
for execution. It gives me same error but this time environment was [ANDROID_SOCKET_Zygot] bla bla bla..EDIT 1 :
I use Openjdk on ubuntuHelp me out !!
-
nomenclature #2520 (Nouveau) : extensions’ vs ’vérouillés
2 février 2012, par jluc -Le vocable jusque là employé pour désigner les extensions est ’extensions’. Soudainement SVP introduit le terme ’vérouillé’. Ce sont 2 termes très distants, alors qu’ils désignent la même chose. Ce n’est pas cohérent, et l’utilisateur est 2 fois au lieu d’une face à un terme qu’il ne connait pas. (...)