
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (48)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
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" (...)
Sur d’autres sites (4795)
-
Anomalie #4468 : CSS colonne gauche du privé
4 avril 2020, par jluc -Merci Rasta pour les explications. Désolé je suis pas expert mais ouf j’ai échappé à tes majuscules.
En regardant sur un autre SPIP je vois qu’il n’y a pas autant de différences donc certains pb viennent de mes propres css. Les boutons sont à droite sauf ceux de Duplicator et celui pour supprimer le logo (centré).
Les boutons de Duplicator sont auto-forms, alors ça justifie peut être un traitement particulier, mais plutôt qu’alignés à gauche, je les préférerais texte-centrés à width-100% de la colonne comme ceux présentés par Tcharlss ou nicod_.
Et le bouton pour supprimer le logo est tellement associé à l’image qu’il gagnerait à être remplacé par une simple croix dans un coin du logo, non ? Comme ça il n’y aurait plus ce centrage exceptionnel.Les changements proposés sont chouettes aussi.
Et une simple croix en X rouge pour "Del" ? Ça serait plus léger non ?
Et pourquoi pas aussi un simple plus + vert pour "Add" plutôt qu’un + blanc sur fond rond vert ? -
Using ffmpeg with an audio input from System.IO.Stream
17 juillet 2020, par kevingoosSo I am creating a project where I need to convert audio comming from azure text to speech.

I wanted to use ffmpeg for this, but I am not an expert with all these parameters.
So far I alread got it working where I read from a $.wav file and convert it to an outputSystem.IO.Stream
comming from ffmpeg.

But I want to change it that I don't always save a wav file to disk. Instead now I get a
System.IO.Stream
from azure text to speech, but I have no clue for the params and the documentation is not really clear for me...

var azureAudio = await new AzureSpeechService().Speak(text);

var psi = new ProcessStartInfo
{
 FileName = @"C:\ffmpeg-20200715-a54b367-win64-static\bin\ffmpeg.exe",
 Arguments = "-i pipe:0 -ac 2 -f s16le -ar 48000 pipe:1",
 RedirectStandardOutput = true,
 UseShellExecute = false
};
var ffmpeg = Process.Start(psi);

var inputStream = ffmpeg.StandardInput.BaseStream;

azureAudio.CopyTo(inputStream);

inputStream.Flush();
inputStream.Close();

var outputStream = ffmpeg.StandardOutput.BaseStream;
await SendAudioAsync(client, outputStream);



-
IOException when trying to run ffmpeg command on Android
20 avril 2020, par Rashid FaheemI am using this library through gradle with Android Studio 3.6.



implementation 'com.github.hiteshsondhi88.libffmpeg:FFmpegAndroid:0.2.5'




This is path of input and output file.



String VideoIn = Environment.getExternalStorageDirectory().getAbsolutePath() + "/Download/Ab.mp4";
String VideoOut = Environment.getExternalStorageDirectory().getAbsolutePath() + "/Download/Ab1.avi";




This is code where I load ffmpeg and try to execute command to convert an mp4 into avi. (Same command i use on windows to do this task). But it say IOException (No such file or directory) although input file is present in Download folder.



private void convert(String VideoIn, String VideoOut) {
 ffmpeg = FFmpeg.getInstance(this);
 try {
 ffmpeg.loadBinary(new LoadBinaryResponseHandler() {
 @Override
 public void onFailure() {
 super.onFailure();
 }

 @Override
 public void onSuccess() {
 super.onSuccess();
 }

 @Override
 public void onStart() {
 super.onStart();
 }

 @Override
 public void onFinish() {
 super.onFinish();
 }
 });
 } catch (FFmpegNotSupportedException e) {
 Log.e(TAG, e.getMessage());
 }

 try {
 ffmpeg.execute("-i " + VideoIn + " " + VideoOut, new ExecuteBinaryResponseHandler() {
 @Override
 public void onSuccess(String message) {
 Log.e(TAG, message);
 }

 @Override
 public void onProgress(String message) {
 Log.e(TAG, message);
 }

 @Override
 public void onFailure(String message) {
 Log.e(TAG, message);
 }

 @Override
 public void onStart() {
 Log.e(TAG, "onStart called");
 }

 @Override
 public void onFinish() {
 Log.e(TAG, "onFinish called");
 }
 });
 } catch (FFmpegCommandAlreadyRunningException ex) {
 Log.e(TAG, ex.getMessage());
 }
}




Here is log data for your to understand. I am not that expert in that so I couldn't figure out what is wrong with my code. Path is correct and file is there. Maybe I am calling this command wrong or what ?



I searched google and stack overflow much but nothing helped me solve it. Any help would be appreciated.



04-20 12:08:26.050 12696-12696/com.example.myapplication E/Video to Mp3: Input File Path: 
/storage/emulated/0/Download/Ab.mp4
04-20 12:08:26.050 12696-12696/com.example.myapplication E/Video to Mp3: Output File Path: 
/storage/emulated/0/Download/Ab1.avi
04-20 12:08:26.050 12696-12696/com.example.myapplication E/Video to Mp3: Device not supported
04-20 12:08:26.050 12696-12696/com.example.myapplication E/Video to Mp3: onStart called
04-20 12:08:26.084 12696-13027/com.example.myapplication E/FFmpeg: Exception while trying to run: 
/data/user/0/com.example.myapplication/files/ffmpeg -i /storage/emulated/0/Download/Ab.mp4 
/storage/emulated/0/Download/Ab1.avi
java.io.IOException: Error running exec(). Command: [/data/user/0/com.example.myapplication/files/ffmpeg, -i, /storage/emulated/0/Download/Ab.mp4, /storage/emulated/0/Download/Ab1.avi] Working Directory: null Environment: null
 at java.lang.ProcessManager.exec(ProcessManager.java:211)
 at java.lang.Runtime.exec(Runtime.java:186)
 at java.lang.Runtime.exec(Runtime.java:259)
 at java.lang.Runtime.exec(Runtime.java:202)
 at com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10)
 at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38)
 at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10)
 at android.os.AsyncTask$2.call(AsyncTask.java:307)
 at java.util.concurrent.FutureTask.run(FutureTask.java:237)
 at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:246)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
 at java.lang.Thread.run(Thread.java:833)
 Caused by: java.io.IOException: No such file or directory
 at java.lang.ProcessManager.exec(Native Method)
 at java.lang.ProcessManager.exec(ProcessManager.java:209)
 at java.lang.Runtime.exec(Runtime.java:186) 
 at java.lang.Runtime.exec(Runtime.java:259) 
 at java.lang.Runtime.exec(Runtime.java:202) 
 at com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10) 
 at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38) 
 at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10) 
 at android.os.AsyncTask$2.call(AsyncTask.java:307) 
 at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
 at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:246) 
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 
 at java.lang.Thread.run(Thread.java:833) 
04-20 12:08:26.084 12696-12696/com.example.myapplication E/Video to Mp3: onFinish called