
Recherche avancée
Autres articles (75)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)
Sur d’autres sites (9795)
-
installing ffmpeg on Mac fail
23 juillet 2022, par wei wangI tried to install ffmpeg on Mac(macOS 10.13) with : brew install ffmpeg


but I got below ....


Updating Homebrew...
Warning: You are using macOS 10.13.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.

Error: ffmpeg: no bottle available!
You can try to install from source with:
 brew install --build-from-source ffmpeg
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.



-
Encode PCM to MPEG-2 AAC with FFmpeg APIs
13 août 2019, par Tank2006My environment is "ffmpeg version 3.4.6-0ubuntu0.18.04.1"
I wrote a program to encode audio data into MPEG-2 AAC with reference to an official example.
First, I simply changed the encoder value(and the full source code I wrote is here).
if (!(output_codec = avcodec_find_encoder(AV_CODEC_ID_AAC))) {
But FFmpeg S/PDIF encoder(spdifenc.c) returns an error “Wrong AAC file format”.
I use
avctx->profile = FF_PROFILE_MPEG2_AAC_LOW(FF_PROFILE_MPEG2_AAC_HE);
but it takes no effects.Considering the possibility that the official binary was not compiled with the "CONFIG_ADTS_HEADER" C flag, I ran the following code directly as this :
buf = output_packet.data;
int err = init_get_bits8(&gb, buf, 7);
if (get_bits(gbc, 12) != 0xfff) return AAC_AC3_PARSE_ERROR_SYNC;This didn’t find ADTS header "0xFFF", therefore, an encoder doesn’t seem to work as expected.
How do I encode ffmpeg-2 aac audio with ffmpeg apis ?
-
FFmpeg in Java Android
14 juin 2021, par JomyI am currently trying to get a library to work so that I can convert a wav file to mp3.


The library I'm using is AndroidAudioConverter.


I tried adding this to my Application class :


public class App extends application {
 @Override
 public void onCreate() {
 AndroidAudioConverter.load(this, new ILoadCallback() {
 @Override
 public void onSuccess() {
 android.util.Log.d(TAG, "FFmpeg is supported by the device. Succesfully loaded AndroidAudioConverter library.");
 }
 @Override
 public void onFailure(Exception error) {
 // FFmpeg is not supported by device
 Log.w(TAG, "FFmpeg is not supported by this device.", error);
 }
 });
 }
}



Which gave me the following error :


W/Application: FFmpeg is not supported by this device.
 java.lang.Exception: Failed to loaded FFmpeg lib
 at cafe.adriel.androidaudioconverter.AndroidAudioConverter$1.onFailure(AndroidAudioConverter.java:50)
 at com.github.hiteshsondhi88.libffmpeg.FFmpegLoadLibraryAsyncTask.onPostExecute(FFmpegLoadLibraryAsyncTask.java:54)
 at com.github.hiteshsondhi88.libffmpeg.FFmpegLoadLibraryAsyncTask.onPostExecute(FFmpegLoadLibraryAsyncTask.java:8)
 at android.os.AsyncTask.finish(AsyncTask.java:771)
 at android.os.AsyncTask.access$900(AsyncTask.java:199)
 at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
 at android.os.Handler.dispatchMessage(Handler.java:106)
 at android.os.Looper.loop(Looper.java:223)
 at android.app.ActivityThread.main(ActivityThread.java:7656)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)



I looked into the AndroidAudioConverter.java file of the library and found how the load method works. The AndroidAudioConverter library uses ffmpeg-android-java as a dependency. It uses the ffmpeg-android-java library inside the load method like so :


try {
 FFmpeg.getInstance(context).loadBinary(new FFmpegLoadBinaryResponseHandler() {
 @Override
 public void onStart() {

 }

 @Override
 public void onSuccess() {
 loaded = true;
 callback.onSuccess();
 }

 @Override
 public void onFailure() {
 loaded = false;
 callback.onFailure(new Exception("Failed to loaded FFmpeg lib"));
 }

 @Override
 public void onFinish() {

 }
 });
 } catch (Exception e){
 loaded = false;
 callback.onFailure(e);
 }
 }



So I tried copying this in my code to see what it would give. I replaced
catch (exception e) {...}
withcatch(exception e) {e.printStackTrace();


After running I got this error :


E/FFmpeg: issue in coping binary from assets to data. 
 java.io.FileNotFoundException: x86/ffmpeg
 at android.content.res.AssetManager.nativeOpenAsset(Native Method)
 at android.content.res.AssetManager.open(AssetManager.java:874)
 at android.content.res.AssetManager.open(AssetManager.java:851)
 at com.github.hiteshsondhi88.libffmpeg.FileUtils.copyBinaryFromAssetsToData(FileUtils.java:29)
 at com.github.hiteshsondhi88.libffmpeg.FFmpegLoadLibraryAsyncTask.doInBackground(FFmpegLoadLibraryAsyncTask.java:27)
 at com.github.hiteshsondhi88.libffmpeg.FFmpegLoadLibraryAsyncTask.doInBackground(FFmpegLoadLibraryAsyncTask.java:8)
 at android.os.AsyncTask$3.call(AsyncTask.java:394)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
 at java.lang.Thread.run(Thread.java:923)




So what I'm guessing here is that the FFmpeg library is not installed since the file cannot be found ?


I dug some deeper and looked into the FFmpeg.java file inside the ffmpeg-android-java library and found the loadBinary method inside the FFmpeg class. It uses that FFmpegLoadLibraryAsyncTask and there I found that the FFmpeg file is defined like this :
File ffmpegFile = new File(FileUtils.getFFmpeg(context));
and inside FileUtils.java :

static final String ffmpegFileName = "ffmpeg";

 static File getFilesDirectory(Context context) {
 // creates files directory under data/data/package name
 return context.getFilesDir();
 }

 static String getFFmpeg(Context context) {
 return getFilesDirectory(context).getAbsolutePath() + File.separator + FileUtils.ffmpegFileName;
 }



So I ran :
System.out.println(this.getFilesDir() + File.separator + "ffmpeg");
.
And got as output :I/System.out: /data/user/0/be.ksa.voetje/files/ffmpeg
.
A simpleSystem.out.println(new File(this.getFilesDir() + File.separator + "ffmpeg").exists());
tells me that this file indeed does not exist.

And this is where I'm at. I have no experience with FFmpeg, so forgive me if I'm looking over something obvious.


How can I fix this problem ?