
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (111)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...)
Sur d’autres sites (7203)
-
Using sauronsoftware's Jave in phonegap Android project
4 septembre 2015, par Dread BoyI’m developing phonegap app and right now I’m trying to write a plugin to convert .amr files to .mp3 files. I’m using JAVE to do this conversion and while it’s working on desktop it fails on android with this exception :
java.io.IOException: Error running exec().
Command: [/data/data//cache/jave-1/ffmpeg, -i, /sdcard/.amr, -vn, -acodec, libmp3lame, -f, mp3, -y, /sdcard/.mp3]
Working Directory: null Enviroment: nullI’m trying to do conversion like this :
private void convert(String input_file, CallbackContext callbackContext){
File input = new File(input_file);
File output = new File(input_file.replace(".amr", ".mp3"));
Encoder encoder = new Encoder();
EncodingAttributes encodingAttributes = new EncodingAttributes();
AudioAttributes audioAttributes = new AudioAttributes();
audioAttributes.setCodec("libmp3lame");
encodingAttributes.setAudioAttributes(audioAttributes);
encodingAttributes.setFormat("mp3");
try{
encoder.encode(input, output, encodingAttributes);
input.delete();
callbackContext.success("finished");
}
catch(Exception e){
callbackContext.error(e.getMessage());
}
}I found this answer and I understand why error happens but the answer doesn’t provide any solution. Is there a way to get this working in Phonegap project ? Do I need to package ffmpeg library together with plugin and copy it to correct folder when app invokes the plugin ?
/data/data//cache/jave-1
-
How to concatenate videos using FFMPEG in android using guardian project
12 juin 2014, par Divya MotiwalaI am trying to combine two mp4 videos using guardian project as library project in my app. But it does not generate the output at specified location. I went through various solution for it but no success.
PFB the code :File fileTmp = this.getCacheDir();
File fileAppRoot = new File(this.getApplicationInfo().dataDir);
FfmpegController fc;
fc = new FfmpegController(fileTmp, fileAppRoot);
final Clip out = new Clip(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS)+"/Video/compiled.mp4");
ArrayList<clip> listVideos = new ArrayList<clip>();
File fileVideoRoot = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS)+"/Video");
String[] fileList = fileVideoRoot.list();
for (String fileVideo : fileList)
{
if (fileVideo.endsWith("mp4"))
{
Clip clip = new Clip();
clip.path = new File(fileVideoRoot,fileVideo).getCanonicalPath();
fc.getInfo(clip);
clip.duration = clip.duration-1;
listVideos.add(clip);
}
}
fc.concatAndTrimFilesMP4Stream(listVideos, out, false, false, new ShellUtils.ShellCallback() {
@Override
public void shellOut(String shellLine) {
System.out.println("fc>" + shellLine);
}
@Override
public void processComplete(int exitValue) {
if (exitValue < 0)
System.err.println("concat non-zero exit: " + exitValue);
}
});
</clip></clip>I am getting exception :
There was a problem rendering the video :
/mnt/sdcard/Download/Video/compiled.mp4Please guide me on how to concatenate videos in android.
-
executing batch file when called from java project
28 décembre 2013, par Mostafa WasatSo I'm working on a java project, that at some point I have to execute a batch file (from within the code).
The batch file runs fine if I run it by double clicking in windows explorer,
and/or even if I write the command in the command prompt it runs ok.However, when i call the file from the java code, the command prompt launches and says that its not a recognized command, program, or batch file.
the patch file looks something like this :
ffmpeg -re -i C:/001.mp3 -c:a mp3 -ar 12000 -f mulaw -f rtp rtp://127.0.0.1:1234
and here's how I call it within the java code :
Runtime.getRuntime().exec("cmd /c start c:\\encode.bat");
I might add that the command prompt when run by java it runs as administrator and I have included the ffmpeg path to be run by any user anyway.
Excuse me if I have missed any important details and would be happy to provide them if anyone needs further details to answer my dilemma.
why might this be ?
Edit :
i have tried the same code on another pc and it works fine, can someone please explain to me why the command doesnt get recognized when the command prompt gets run through java