
Recherche avancée
Autres articles (104)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
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 (16114)
-
Data Privacy Day 2021 : Five ways to embrace privacy into your business
-
Permission Denied while executing a command to FFMPEG
21 juillet 2014, par jawad bin zafarI am working with ffmpeg to transcode some video programaticaly using ffmpeg. I have been using compile ffmpeg binary and install it on application startup which work fine. When I send some command I got error permision denied.
java.io.IOException: Error running exec(). Command: [ffmpeg, -codecs]
Working Directory: /data/data/com.ffmpeg.test/app_bin Environment:
[ANDROID_SOCKET_zygote=10, ANDROID_BOOTLOGO=1, EXTERNAL_STORAGE=/mnt/sdcard,
ANDROID_CACHE=/cache, 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, SD_EXT_DIRECTORY=/sd-ext, DOWNLOAD_CACHE=/cache/download,
ANDROID_DATA=/data, LD_LIBRARY_PATH=/vendor/lib:/system/lib, ANDROID_ROOT=/system,
ANDROID_PROPERTY_WORKSPACE=9,32768]
at java.lang.ProcessManager.exec(ProcessManager.java:224)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:202)
at org.ffmpeg.android.FfmpegController.execProcess(FfmpegController.java:140)
at org.ffmpeg.android.FfmpegController.execFFMPEG(FfmpegController.java:98)
at org.ffmpeg.android.FfmpegController.execFFMPEGTest(FfmpegController.java:114)
at com.ffmpeg.test.CLITestActivity.onClick(CLITestActivity.java:45)
at android.view.View.performClick(View.java:2506)
at android.view.View$PerformClick.run(View.java:9112)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3835)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.io.IOException: Permission denied
at java.lang.ProcessManager.exec(Native Method)
at java.lang.ProcessManager.exec(ProcessManager.java:222)
... 16 morewhen I check it through adb shell and run some command it give me error
Syntex error: ')' expected
Any help. -
ProcessBuilder Can't Find a File for Conversion ?
19 avril 2018, par Sarah SzaboI’m running a simple script (On a Kubuntu 17.10 OS) to convert from a .mp4 file to .opus, not that this really matters though. I’ve verified that the command works as intended by making the program print out the command, then navigating to the directory and executing it there. It works and converts the file to .opus.
The problem is that when it is run via process builder, it no longer works. I can’t understand why, as the process should be localized by calling the
.directory(temporary-folder-path)
method. Yet, in the output of ffmpeg when it runs via the program, seems to indicate that it can’t find the file, which is in the the temp folder.private void processOP(String... commands) throws InterruptedException, IOException {
System.out.println("About to Initiate (Temp Folder Path): " + this.diskManager.getTempDirectory());
//Print out FFMPEG Command
String s = "";
for (String st : new ProcessBuilder(commands)
.directory(this.diskManager.getTempDirectory().toFile()).inheritIO().command()) {
s += " " + st;
}
System.out.println("COMMAND: " + s);
//Actually do it
Process proc = new ProcessBuilder(commands)
.directory(this.diskManager.getTempDirectory().toFile()).inheritIO().start();
proc.waitFor();
}The output yields the temporary folder directory and the command :
About to Initiate (Temp Folder Path): /tmp/OPUS Converter Temporary Directory5521626892860463135
COMMAND: ffmpeg -i "Sarah Szabo -- The Fourtyth Divide.mp4" -y -b:a 320k -metadata title="The Fourtyth Divide" -metadata artist="Sarah Szabo" "Sarah Szabo -- The Fourtyth Divide.opus"And Execution Reveals that the conversion attempt fails due to not being able to find the file :
ffmpeg version 3.3.4-2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7 (Ubuntu 7.2.0-8ubuntu2)(Lots of FFMPEG Stuff)
Then :
"Sarah Szabo -- The Fourtyth Divide.mp4": No such file or directory
This is mysterious because I’ve executed the very same code in a localized terminal at the temporary directory. It converts successfully. This leads me to believe that somehow this is a localization issue. I should add that I’ve checked the file path to the temp directory as well, this is the folder that I’ve intended and isn’t some other one. It contains the file as well. There are no spelling mistakes that I can detect in the filenames, and i have checked them, as well as copy-pasting them to ensure that there are no misspellings.