
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (46)
-
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Configuration spécifique d’Apache
4 février 2011, parModules spécifiques
Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
Création d’un (...)
Sur d’autres sites (6783)
-
Revision 88566 : Le fichier vides.txt peut etre tres gros et est un peu lourd a manipuler. ...
11 avril 2015, par cedric@… — LogLe fichier vides.txt peut etre tres gros et est un peu lourd a manipuler. On le remplace par un fichier unitaire .vide sur chaque gravatar concerne, ce qui permet un touch unitaire avant une recuperation pour eviter une double recuperation concurrente (idem sur le cache, on touch avant de recuperer pour eviter une double recuperation)
-
Android UnsatisfiedLinkError using ffmpeg library
5 avril 2012, par BombasticI'm trying to use
FFMPEG
library in my Android application like this example here : AFPlayer . I have a builded and running version of this application and everything works fine, but when I tried to implement the same logic in my application it crashes everytime I start my media player. So the thing that I did was to copy and paste all files from afplayer's folders to my app (not sure if I have to do something else or if it's the right way,but it's my first touch with Android NDK and I'm not really sure how to do the things). Here is how I'm trying to start my DRadioMediaPlayer :player = new DRadioMediaPlayer();
//player.setOnPreparedListener(this);
//player.setOnCompletionListener(this);
//player.setOnErrorListener(this);
//player.setOnBufferingUpdateListener(this);
//player.setAudioStreamType(AudioManager.STREAM_MUSIC);
try
{
Uri source = Uri.parse(playlist.getCurrentSource().toString());
player.setDataSource(source);
//player.setDataSource(playlist.getCurrentSource().toString());
player.prepare();
playbackState = DRadioPlayerService.PLAYBACK_STATE_BUFFERING;
}This is how I load the library :
static {
System.loadLibrary("player");}
and here is the exception which I'm getting :
04-05 17:04:37.478: W/dalvikvm(686): No implementation found for native Lcom/nimasystems/android/radio2/DRadioMediaPlayer;.n_createEngine ()V
04-05 17:04:37.478: D/AndroidRuntime(686): Shutting down VM
04-05 17:04:37.478: W/dalvikvm(686): threadid=1: thread exiting with uncaught exception (group=0x400259f8)
04-05 17:04:37.478: E/AndroidRuntime(686): FATAL EXCEPTION: main
04-05 17:04:37.478: E/AndroidRuntime(686): java.lang.UnsatisfiedLinkError: n_createEngine
04-05 17:04:37.478: E/AndroidRuntime(686): at com.nimasystems.android.radio2.DRadioMediaPlayer.n_createEngine(Native Method)
04-05 17:04:37.478: E/AndroidRuntime(686): at com.nimasystems.android.radio2.DRadioMediaPlayer.<init>(DRadioMediaPlayer.java:68)
04-05 17:04:37.478: E/AndroidRuntime(686): at com.nimasystems.android.player.service.DRadioPlayerService.initPlayer(DRadioPlayerService.java:577)
04-05 17:04:37.478: E/AndroidRuntime(686): at com.nimasystems.android.player.service.DRadioPlayerService.onStart(DRadioPlayerService.java:568)
04-05 17:04:37.478: E/AndroidRuntime(686): at android.app.Service.onStartCommand(Service.java:420)
04-05 17:04:37.478: E/AndroidRuntime(686): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3267)
04-05 17:04:37.478: E/AndroidRuntime(686): at android.app.ActivityThread.access$3600(ActivityThread.java:135)
04-05 17:04:37.478: E/AndroidRuntime(686): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2211)
04-05 17:04:37.478: E/AndroidRuntime(686): at android.os.Handler.dispatchMessage(Handler.java:99)
04-05 17:04:37.478: E/AndroidRuntime(686): at android.os.Looper.loop(Looper.java:144)
04-05 17:04:37.478: E/AndroidRuntime(686): at android.app.ActivityThread.main(ActivityThread.java:4937)
04-05 17:04:37.478: E/AndroidRuntime(686): at java.lang.reflect.Method.invokeNative(Native Method)
04-05 17:04:37.478: E/AndroidRuntime(686): at java.lang.reflect.Method.invoke(Method.java:521)
04-05 17:04:37.478: E/AndroidRuntime(686): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
04-05 17:04:37.478: E/AndroidRuntime(686): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
04-05 17:04:37.478: E/AndroidRuntime(686): at dalvik.system.NativeStart.main(Native Method)
</init>and here is the line where actually the exception it thrown :
public DRadioMediaPlayer() {
Log.d(TAG, "Create new MediaPlayer");
n_createEngine(); // here
}
public native void n_createEngine();Any suggestions what actually can I do to fix this problem ? I've read all questions with similar issue here,but none of them worked for me.
Thanks in advance !
-
Executing process on cmd, does not process
2 août 2012, par Z JackobovskiI am running ffmpeg from Java. Using it to convert flv files to mp3.
When I run the code below, ffmpeg starts, creates a new file (the .mp3 one) but runs at 0% of CPU. When I stop the JAVA app (from netbeans) ffmpeg remains open and goes from 0% to 99% per Windows task manager (CTRL-ALT-DEL). Another weird thing is going on. The output from ffmpeg is not being printed.
The thread is starting but for some reason java is not giving it any time to do its processing.
Any suggestions on how to fix this ? Thanks.
public class ConverterThread extends Thread {
String fileToConvert;
String fileToCreate;
GetSong getSong;
public ConverterThread(String downloadLocationOnDisk, GetSong getSong) {
this.fileToConvert = downloadLocationOnDisk;
this.getSong = getSong;
}
public void run(){
try {
Thread cur=Thread.currentThread();
cur.setPriority(Thread.MAX_PRIORITY);
String downloadLocationOnDisk = fileToConvert;
if(downloadLocationOnDisk.contains(".flv"))
fileToCreate = downloadLocationOnDisk.replace(".flv", ".mp3");
if(downloadLocationOnDisk.contains(".m4a"))
fileToCreate = downloadLocationOnDisk.replace(".m4a", ".mp3");
String cmdLine = "ffmpeg/bin/ffmpeg -i \"" + fileToConvert + "\" \"" + fileToCreate +"\"";
System.err.println(cmdLine);
// run the Unix "ps -ef" command
// using the Runtime exec method:
Process p = Runtime.getRuntime().exec(cmdLine);
BufferedReader stdInput = new BufferedReader(new
InputStreamReader(p.getInputStream()));
BufferedReader stdError = new BufferedReader(new
InputStreamReader(p.getErrorStream()));
String s;
// read the output from the command
while ((s = stdInput.readLine()) != null) {
System.out.println(s);
}
// 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) {
System.out.println(s);
}
} catch (IOException ex) {
Logger.getLogger(ConverterThread.class.getName()).log(Level.SEVERE, null, ex);
}