Recherche avancée

Médias (91)

Autres articles (73)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque 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 (...)

  • Installation en mode ferme

    4 février 2011, par

    Le 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 (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accé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 (...)

Sur d’autres sites (8342)

  • W/System.err : java.lang.Exception : FFmpeg not loaded

    1er juillet 2021, par numa

    I ran an android machine learning code that uses AndroidAudioConverter from https://github.com/adrielcafe/AndroidAudioConverter, but I got the different errors as following.

    


    When I ran it with AVD emulator, it said (the error is in red font) :

    


    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:744)
    at android.content.res.AssetManager.open(AssetManager.java:721)
    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$2.call(AsyncTask.java:333)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
    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:764)


    


    But if I ran it on my android smartphone, I am getting the following error :

    


     W/System.err: java.lang.Exception: FFmpeg not loaded&#xA;    W/System.err:     at cafe.adriel.androidaudioconverter.AndroidAudioConverter.convert(AndroidAudioConverter.java:85)&#xA;    W/System.err:     at com.example.coughc19.DetectCoughActivity.convertToWAV(DetectCoughActivity.kt:144)&#xA;        at com.example.coughc19.DetectCoughActivity$onClick$timer$1.onFinish(DetectCoughActivity.kt:103)&#xA;        at android.os.CountDownTimer$1.handleMessage(CountDownTimer.java:127)&#xA;        at android.os.Handler.dispatchMessage(Handler.java:107)&#xA;    W/System.err:     at android.os.Looper.loop(Looper.java:230)&#xA;        at android.app.ActivityThread.main(ActivityThread.java:7815)&#xA;        at java.lang.reflect.Method.invoke(Native Method)&#xA;    W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:526)&#xA;        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)&#xA;    D/FFmpeg: Build.CPU_ABI : arm64-v8a&#xA;    I/FFmpeg: Loading FFmpeg for armv7 CPU&#xA;    D/Surface: Surface::connect(this=0x7476ddc000,api=2)&#xA;    D/FFmpeg: FFmpeg is not executable, trying to make it executable ...&#xA;    D/Surface: Surface::disconnect(this=0x7476ddc000,api=2)&#xA;    W/System.err: java.io.FileNotFoundException: /storage/emulated/0/myrec.wav: open failed: ENOENT (No such file or directory)&#xA;    W/System.err:     at libcore.io.IoBridge.open(IoBridge.java:496)&#xA;        at java.io.FileInputStream.<init>(FileInputStream.java:159)&#xA;        at com.example.coughc19.audioHelper.WavFile.openWavFile(WavFile.java:87)&#xA;        at com.example.coughc19.DetectCoughActivity.classifyNoise(DetectCoughActivity.kt:169)&#xA;        at com.example.coughc19.DetectCoughActivity$onClick$timer$1$onFinish$timer2$1.onFinish(DetectCoughActivity.kt:110)&#xA;        at android.os.CountDownTimer$1.handleMessage(CountDownTimer.java:127)&#xA;        at android.os.Handler.dispatchMessage(Handler.java:107)&#xA;    W/System.err:     at android.os.Looper.loop(Looper.java:230)&#xA;        at android.app.ActivityThread.main(ActivityThread.java:7815)&#xA;        at java.lang.reflect.Method.invoke(Native Method)&#xA;        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:526)&#xA;        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)&#xA;    W/System.err: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)&#xA;        at libcore.io.Linux.open(Native Method)&#xA;        at libcore.io.ForwardingOs.open(ForwardingOs.java:167)&#xA;        at libcore.io.BlockGuardOs.open(BlockGuardOs.java:252)&#xA;    W/System.err:     at libcore.io.ForwardingOs.open(ForwardingOs.java:167)&#xA;        at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7714)&#xA;        at libcore.io.IoBridge.open(IoBridge.java:482)&#xA;        ... 11 more&#xA;</init>

    &#xA;

    Also, when ran on an android smartphone and emulator simultaneously, I got the following error :

    &#xA;

    E/AndroidRuntime: FATAL EXCEPTION: main&#xA;Process: com.example.coughc19, PID: 9041&#xA;java.lang.IllegalArgumentException: The size of the array to be loaded does not match the specified shape.&#xA;    at org.tensorflow.lite.support.common.SupportPreconditions.checkArgument(SupportPreconditions.java:104)&#xA;    at org.tensorflow.lite.support.tensorbuffer.TensorBufferFloat.loadArray(TensorBufferFloat.java:87)&#xA;    at com.example.coughc19.DetectCoughActivity.loadModelAndMakePredictions(DetectCoughActivity.kt:258)&#xA;    at com.example.coughc19.DetectCoughActivity.classifyNoise(DetectCoughActivity.kt:230)&#xA;    at com.example.coughc19.DetectCoughActivity$onClick$timer$1$onFinish$timer2$1.onFinish(DetectCoughActivity.kt:110)&#xA;    at android.os.CountDownTimer$1.handleMessage(CountDownTimer.java:127)&#xA;    at android.os.Handler.dispatchMessage(Handler.java:106)&#xA;    at android.os.Looper.loop(Looper.java:193)&#xA;    at android.app.ActivityThread.main(ActivityThread.java:6669)&#xA;    at java.lang.reflect.Method.invoke(Native Method)&#xA;    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)&#xA;    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)&#xA;

    &#xA;

    I used the Android 10 smartphone and Android 9 for AVD. This is a team project, which my friend build. It can run on his smartphone (Android 9). I need to connect the program to the cloud storage but I don't know why it ain't running on my device or emulator.
    &#xA;If anyone knows how to resolve this issue please help.
    &#xA;Thanks.

    &#xA;

  • How to compile and use FFMPEG library in Android Studio ?

    9 avril 2016, par destroyer25t

    i’m newbie in Android Developing. I need use some video library to decompose my video. I have chose FFMPEG, and faced with a question - how integrate ffmpeg to my application and how to use it ? I have Android Studio on Windows.

  • Building with Visual Studio 2010, MFC, and FFmpeg

    11 janvier 2013, par spurgeon

    I'm working on building a Windows MFC application in Visual Studio 2010 using FFmpeg and SDL. However, I can't get the project to build after creating an MFC project from scratch and including the FFmpeg development libraries (avcodec.lib, avdevice.lib, avformat.lib, etc.). I'm using the development build from Zeranoe FFmpeg. I have configured the following in the Project Properties :

    1. Set VC++ Directories -> Include Directories (added the FFmpeg "include" directories)
    2. Set VC++ Directories -> Library Directories (to the FFmpeg "lib" directory)
    3. Set Linker -> Input -> Additional Dependencies (to include avcodec.lib, etc.)

    For what it's worth, the build succeeds when I omit FFmpeg's "include\libavutil" include from the VC++ Directories -> Include Directories.

    Below are some of the first build errors I'm receiving (I won't post all, since it's long). Any help would be appreciated.

    ClCompile:
    stdafx.cpp

    c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\atltime.h(371): error C3861: &#39;_mktime64&#39;: identifier not found

    c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\atltime.h(386): error C3861: &#39;_localtime64_s&#39;: identifier not found

    c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\atltime.h(409): error C3861: &#39;_gmtime64_s&#39;: identifier not found

    c:\program files\microsoft sdks\windows\v7.0a\include\intsafe.h(144): warning C4005: &#39;INT8_MIN&#39; : macro redefinition

    c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxtaskspane.h(279): error C2146: syntax error : missing &#39;;&#39; before identifier &#39;m_nLastAnimTime&#39;

    c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxribboncategory.h(282): error C2146: syntax error : missing &#39;;&#39; before identifier &#39;m_ActiveTime&#39;

    c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxdockingmanager.h(353): error C2146: syntax error : missing &#39;;&#39; before identifier &#39;m_clkLastTime&#39;

    Build FAILED.

    I've referenced both of these articles, which were of help :