
Recherche avancée
Médias (91)
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (104)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation"
Sur d’autres sites (11175)
-
Why can’t I run the ffmpeg executable stored in /mnt/sdcard ?
18 novembre 2024, par user2193172I managed to compile the ffmpeg Static build. But when I am trying to call the ffmpeg command line I get a Java IOException : No such file or Directory.



My code is as follows :



public void merge_video(View view){

 if(ffmpeg_file.exists()){
 Log.d(null, "ffmpeg exists");
 }else{
 Log.d(null, "Could not locate ffmpeg in the folder");
 }

 File file1 = new File("/mnt/sdcard/com.ffmpeg_test/VID_3_25_2013_12_22.mp4");
 if(file1.exists()){
 Log.d(null,"File 1 exists");
 }
 File file2 = new File("/mnt/sdcard/com.ffmpeg_test/VID_3_25_2013_12_28.mp4");
 if(file2.exists()){
 Log.d(null,"File 2 exists");
 }

 String[] ffmpegCommand = new String[5];
 ffmpegCommand[0] = "/mnt/sdcard/com.ffmpeg_test/ffmpeg";
 ffmpegCommand[1] = "-i";
 ffmpegCommand[2] = "concat:/mnt/sdcard/com.ffmpeg_test/VID_3_25_2013_12_22.mp4|/mnt/sdcard/com.ffmpeg_test/VID_3_25_2013_12_28.mp4";
 ffmpegCommand[3] = "copy";
 ffmpegCommand[4] = "/mnt/sdcard/com.ffmpeg_test/output.mp4"; 

 try {
 Process ffmpegProcess = new ProcessBuilder(ffmpegCommand).redirectErrorStream(true).start();

 String line;
 BufferedReader reader = new BufferedReader(new InputStreamReader(ffmpegProcess.getInputStream()));
 Log.d(null, "*******Starting FFMPEG");

 while((line = reader.readLine())!=null){

 Log.d(null, "***"+line+"***"); 
 }
 Log.d(null,"****ending FFMPEG****");

 } catch (IOException e) {
 e.printStackTrace();
 }
 }




The LogCat print is as follows :



03-27 20:41:10.522: W/System.err(24709): java.io.IOException: Error running exec(). Command: [/mnt/sdcard/com.ffmpeg_test/ffmpeg, -i, concat:/mnt/sdcard/com.ffmpeg_test/VID_3_25_2013_12_22.mp4|/mnt/sdcard/com.ffmpeg_test/VID_3_25_2013_12_28.mp4, copy, /mnt/sdcard/com.ffmpeg_test/output.mp4] Working Directory: null Environment: [ANDROID_SOCKET_zygote=13, TMPDIR=/data/local/tmp, ANDROID_BOOTLOGO=1, EXTERNAL_STORAGE=/mnt/sdcard, ANDROID_ASSETS=/system/app, PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin, ASEC_MOUNTPOINT=/mnt/asec, LOOP_MOUNTPOINT=/mnt/obb, BOOTCLASSPATH=/system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar, USBHOST_STORAGE=/mnt/sdcard/usbStorage, ANDROID_DATA=/data, LD_LIBRARY_PATH=/vendor/lib:/system/lib, ANDROID_ROOT=/system, ANDROID_PROPERTY_WORKSPACE=12,32768, EXTERNAL_STORAGE2=/mnt/sdcard/external_sd]
03-27 20:41:10.522: W/System.err(24709): at java.lang.ProcessManager.exec(ProcessManager.java:224)
03-27 20:41:10.522: W/System.err(24709): at java.lang.ProcessBuilder.start(ProcessBuilder.java:202)
03-27 20:41:10.522: W/System.err(24709): at com.example.ffmpeg_test.MainActivity.merge_video(MainActivity.java:106)
03-27 20:41:10.522: W/System.err(24709): at java.lang.reflect.Method.invokeNative(Native Method)
03-27 20:41:10.522: W/System.err(24709): at java.lang.reflect.Method.invoke(Method.java:507)
03-27 20:41:10.527: W/System.err(24709): at android.view.View$1.onClick(View.java:2149)
03-27 20:41:10.527: W/System.err(24709): at android.view.View.performClick(View.java:2538)
03-27 20:41:10.527: W/System.err(24709): at android.view.View$PerformClick.run(View.java:9152)
03-27 20:41:10.527: W/System.err(24709): at android.os.Handler.handleCallback(Handler.java:587)
03-27 20:41:10.527: W/System.err(24709): at android.os.Handler.dispatchMessage(Handler.java:92)
03-27 20:41:10.527: W/System.err(24709): at android.os.Looper.loop(Looper.java:123)
03-27 20:41:10.527: W/System.err(24709): at android.app.ActivityThread.main(ActivityThread.java:3691)
03-27 20:41:10.527: W/System.err(24709): at java.lang.reflect.Method.invokeNative(Native Method)
03-27 20:41:10.527: W/System.err(24709): at java.lang.reflect.Method.invoke(Method.java:507)
03-27 20:41:10.532: W/System.err(24709): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
03-27 20:41:10.532: W/System.err(24709): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
03-27 20:41:10.537: W/System.err(24709): at dalvik.system.NativeStart.main(Native Method)
03-27 20:41:10.537: W/System.err(24709): Caused by: java.io.IOException: No such file or directory
03-27 20:41:10.537: W/System.err(24709): at java.lang.ProcessManager.exec(Native Method)
03-27 20:41:10.537: W/System.err(24709): at java.lang.ProcessManager.exec(ProcessManager.java:222)
03-27 20:41:10.537: W/System.err(24709): ... 16 more
03-27 20:41:36.057: W/KeyCharacterMap(24709): No keyboard for id 0
03-27 20:41:36.057: W/KeyCharacterMap(24709): Using default keymap: /system/usr/keychars/qwerty.kcm.bin



-
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 !
-
Process not completing ?
6 mai 2014, par Abe MiesslerI am using FFMPEG to convert some audio files. To do this I am using the code below :
using (Process process = new Process())
{
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
process.StartInfo.FileName = Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName) +
@"\bin\ffmpeg.exe";
process.StartInfo.Arguments = String.Format(@"-i {0} -f mp3 {1}", OrigFilePath, OrigFileFolder + "\\" + NewFileName);
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = true;
process.Start();
System.Diagnostics.EventLog.WriteEntry("ASP.NET 2.0.50727.0", "test... ");
string output = process.StandardOutput.ReadToEnd() + System.Environment.NewLine + process.StandardError.ReadToEnd();
System.Diagnostics.EventLog.WriteEntry("ASP.NET 2.0.50727.0", "Output from process: " + output);
process.WaitForExit();
System.Diagnostics.EventLog.WriteEntry("ASP.NET 2.0.50727.0", "After end... ");
return true;
}In my event log I see the
test...
log, but I never get to theOutput from process:
in the logs. It appears that the process is not completing. Has anyone else run into this problem ? Any idea of what is going on and how I can fix it ?