Recherche avancée

Médias (91)

Autres articles (104)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP 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" (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (10916)

  • Unable find an ffmpeg binary for your Android system

    22 juillet 2024, par Ayush Thakur

    Working on a project where I need to use FFmpeg library in Kotlin to work on some audio files. However I'm unable to initialize the ffmpeg library itself.

    


    this is the error I'm getting

    


    Could not find an ffmpeg binary for your Android system. Did you forget calling: 'new AndroidFFMPEGLocator(this);' ?
2024-07-22 18:48:33.910 11800-11800 PipeDecoder             com.example.sangeet                  E  Tried to unpack a statically compiled ffmpeg binary for your architecture to: /data/user/0/com.example.sangeet/cache/ffmpeg
2024-07-22 18:48:33.923 11800-11800 AndroidRuntime          com.example.sangeet                  E  FATAL EXCEPTION: main (Ask Gemini)
                                                                                                    Process: com.example.sangeet, PID: 11800
                                                                                                    java.lang.Error: Decoding via a pipe will not work: Could not find an ffmpeg binary for your system


    


    @HiltAndroidApp
class Sangeet: Application(){
    override fun onCreate() {
        super.onCreate()
        provideFirebaseApp(this)
        FFmpegKitConfig.setLogLevel(Level.AV_LOG_INFO)
        FFmpegKitConfig.enableLogCallback { Log.d("ffmpeg",it.message) }
        initializeFFmpegKit()
    }
    private fun initializeFFmpegKit() {
        // This method should be sufficient to ensure FFmpegKit is ready to use
        val ffmpegSession = FFmpegKit.execute("ffmpeg -version")
        if (ReturnCode.isSuccess(ffmpegSession.returnCode)) {
            Log.d("FFmpeg", "FFmpeg is ready to use.")
        } else {
            Log.e("FFmpeg", "Failed to initialize FFmpeg: ${ffmpegSession.failStackTrace}")
            initializeFFmpegBinary()
        }
    }
    private fun initializeFFmpegBinary() {
        val ffmpegBinaryPath = filesDir.absolutePath + "/ffmpeg"
        val binaryFile = File(ffmpegBinaryPath)
        if (!binaryFile.exists()) {
            Log.e("FFmpeg", "FFmpeg binary not found at $ffmpegBinaryPath")
            // Copy or download the FFmpeg binary to this path
        } else {
            Log.d("FFmpeg", "FFmpeg binary found at $ffmpegBinaryPath")
        }
    }
}


    


    Tried using AndroidFFMPEGLocator(this) ; as suggested by the compiler in my code but unknown reference error is coming for the above line of code.

    


    Also tried using FFmpegKit.init(this) function but init is also not being recognised by the compiler

    


  • 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;

  • Redis corrupted my Qthread, cv2 and ffmpeg system. Assertion fctx->async_lock failed at src/libavcodec/pthread_frame.c:167 [closed]

    8 novembre 2024, par Alperen Ölçer

    I used to have a websocket communication in my system but I wanted to change to redis. Afterwards it started to crash when cap.set function calls with error 'Assertion fctx->async_lock failed at src/libavcodec/pthread_frame.c:167' I normally run this function inside of a QThread. Any idea why its happening. Only redis changes affected it and the changes are so innocent. I am using ubuntu 22.04 and opencv 4.8.1 builded with cuda 11.5 cudnn 8.6,ffmpeg 769c36b, gcc 10, pyQt 5.15, python3.10.

    &#xA;