Recherche avancée

Médias (3)

Mot : - Tags -/plugin

Autres articles (105)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (7731)

  • Android player, FFMPEG, JNI

    14 septembre 2022, par Nikita Pavlenko

    Can I use std::async with jni or I should throughstd::thread or pthread_create ? Because i'm writing android player with my C++ lib that uses std::async for demuxing, video and audio. I saw that every call CallVoidMethod(of course with attach and detach thread) create new thread (thread id in Java methods is increased). And in some time a big error occurres

    


    A/e.androidplaye: java_vm_ext.cc:594] JNI DETECTED ERROR IN APPLICATION: thread Thread[2,tid=3420,Native,Thread*=0xb400007bd4470c00,peer=0x12cc1510,"Thread-8687"] using JNIEnv* from thread Thread[3,tid=3419,Native,Thread*=0xb400007aadc2e400,peer=0x12d00000,"Thread-8688"]&#xA;    java_vm_ext.cc:594]     in call to CallVoidMethodV&#xA;A/e.androidplaye: runtime.cc:675] Runtime aborting...&#xA;    runtime.cc:675] Dumping all threads without mutator lock held&#xA;    runtime.cc:675] All threads:&#xA;    runtime.cc:675] DALVIK THREADS (23):&#xA;    runtime.cc:675] "Thread-8687" prio=10 tid=2 Runnable&#xA;    runtime.cc:675]   | group="" sCount=0 ucsCount=0 flags=0 obj=0x12d80000 self=0xb400007bd4470c00&#xA;    runtime.cc:675]   | sysTid=3420 nice=-10 cgrp=default sched=0/0 handle=0x7aa4166cb0&#xA;    runtime.cc:675]   | state=R schedstat=( 6040359820 215025421 9416 ) utm=498 stm=105 core=1 HZ=100&#xA;    runtime.cc:675]   | stack=0x7aa406f000-0x7aa4071000 stackSize=991KB&#xA;    runtime.cc:675]   | held mutexes= "abort lock" "mutator lock"(shared held)&#xA;    runtime.cc:675]   native: #00 pc 00000000005376cc  /apex/com.android.art/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream >&amp;, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)&#x2B;128) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #01 pc 00000000006f0e24  /apex/com.android.art/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream >&amp;, bool, BacktraceMap*, bool) const&#x2B;236) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #02 pc 00000000006fe6b0  /apex/com.android.art/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)&#x2B;208) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #03 pc 0000000000364174  /apex/com.android.art/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)&#x2B;440) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #04 pc 00000000006fce50  /apex/com.android.art/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream >&amp;, bool)&#x2B;280) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #05 pc 00000000006d7ec4  /apex/com.android.art/lib64/libart.so (art::AbortState::Dump(std::__1::basic_ostream >&amp;) const&#x2B;212) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #06 pc 00000000006d2b24  /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)&#x2B;1016) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #07 pc 0000000000016ea8  /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void>&amp;&amp;)::$_3::__invoke(char const*)&#x2B;80) (BuildId: b77c57f68a484ed93d5a7eda59d83bf9)&#xA;    runtime.cc:675]   native: #08 pc 0000000000016450  /apex/com.android.art/lib64/libbase.so (android::base::LogMessage::~LogMessage()&#x2B;352) (BuildId: b77c57f68a484ed93d5a7eda59d83bf9)&#xA;    runtime.cc:675]   native: #09 pc 0000000000445224  /apex/com.android.art/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)&#x2B;1612) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #10 pc 0000000000329258  /apex/com.android.art/lib64/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)&#x2B;108) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #11 pc 000000000048d59c  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::AbortF(char const*, ...) (.__uniq.99033978352804627313491551960229047428)&#x2B;144) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #12 pc 0000000000453ad0  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::Check(art::ScopedObjectAccess&amp;, bool, char const*, art::(anonymous namespace)::JniValueType*) (.__uniq.99033978352804627313491551960229047428)&#x2B;4648) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #13 pc 0000000000475e2c  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CheckCallArgs(art::ScopedObjectAccess&amp;, art::(anonymous namespace)::ScopedCheck&amp;, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, art::InvokeType, art::(anonymous namespace)::VarArgs const*) (.__uniq.99033978352804627313491551960229047428)&#x2B;76) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;A/e.androidplaye: runtime.cc:675]   native: #14 pc 0000000000474d4c  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CallMethodV(char const*, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, std::__va_list, art::Primitive::Type, art::InvokeType) (.__uniq.99033978352804627313491551960229047428)&#x2B;268) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #15 pc 00000000005ca9ec  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list) (.__uniq.99033978352804627313491551960229047428.llvm.5591279935177935698)&#x2B;72) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #16 pc 0000000000024ad4  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 174000) (_JNIEnv::CallVoidMethod(_jobject*, _jmethodID*, ...)&#x2B;172) (BuildId: 2f8cba1fdcec13c03a15bf3de18a4ddd1c91325d)&#xA;    runtime.cc:675]   native: #17 pc 000000000002173c  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 174000) (ffmpeg::AndroidPlayer::handleAudioFrame(ffmpeg::Frame const&amp;)&#x2B;184) (BuildId: 2f8cba1fdcec13c03a15bf3de18a4ddd1c91325d)&#xA;    runtime.cc:675]   native: #18 pc 0000000000028488  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 174000) (???) (BuildId: 2f8cba1fdcec13c03a15bf3de18a4ddd1c91325d)&#xA;    runtime.cc:675]   native: #19 pc 00000000000283c0  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 174000) (???) (BuildId: 2f8cba1fdcec13c03a15bf3de18a4ddd1c91325d)&#xA;    runtime.cc:675]   native: #20 pc 000000000002835c  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 174000) (std::__ndk1::__bind_return<void> >, std::__ndk1::tuple, __is_valid_bind_return<void> >, std::__ndk1::tuple >::value>::type std::__ndk1::__bind<void> const&amp;>::operator()(ffmpeg::Frame const&amp;)&#x2B;76) (BuildId: 2f8cba1fdcec13c03a15bf3de18a4ddd1c91325d)&#xA;    runtime.cc:675]   native: #21 pc 00000000000282ec  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 174000) (???) (BuildId: 2f8cba1fdcec13c03a15bf3de18a4ddd1c91325d)&#xA;    runtime.cc:675]   native: #22 pc 0000000000028288  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 174000) (void std::__ndk1::__invoke_void_return_wrapper<void>::__call const&amp;>&amp;, ffmpeg::Frame const&amp;>(std::__ndk1::__bind<void> const&amp;>&amp;, ffmpeg::Frame const&amp;)&#x2B;48) (BuildId: 2f8cba1fdcec13c03a15bf3de18a4ddd1c91325d)&#xA;    runtime.cc:675]   native: #23 pc 0000000000028234  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 174000) (???) (BuildId: 2f8cba1fdcec13c03a15bf3de18a4ddd1c91325d)&#xA;A/e.androidplaye: runtime.cc:675]   native: #24 pc 000000000002725c  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 174000) (std::__ndk1::__function::__func const&amp;>, std::__ndk1::allocator const&amp;> >, void (ffmpeg::Frame const&amp;)>::operator()(ffmpeg::Frame const&amp;)&#x2B;48) (BuildId: 2f8cba1fdcec13c03a15bf3de18a4ddd1c91325d)&#xA;    runtime.cc:675]   native: #25 pc 000000000004039c  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 380000) (???) (BuildId: 9a9d303cb440eed7364800d0ead0962a65175480)&#xA;    runtime.cc:675]   native: #26 pc 000000000003b1f8  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 380000) (std::__ndk1::function<void>::operator()(ffmpeg::Frame const&amp;) const&#x2B;44) (BuildId: 9a9d303cb440eed7364800d0ead0962a65175480)&#xA;    runtime.cc:675]   native: #27 pc 0000000000039dd4  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 380000) (ffmpeg::Player::playAudio()&#x2B;164) (BuildId: 9a9d303cb440eed7364800d0ead0962a65175480)&#xA;    runtime.cc:675]   native: #28 pc 000000000003db90  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 380000) (???) (BuildId: 9a9d303cb440eed7364800d0ead0962a65175480)&#xA;    runtime.cc:675]   native: #29 pc 000000000003db1c  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 380000) (???) (BuildId: 9a9d303cb440eed7364800d0ead0962a65175480)&#xA;    runtime.cc:675]   native: #30 pc 000000000003dacc  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 380000) (???) (BuildId: 9a9d303cb440eed7364800d0ead0962a65175480)&#xA;    runtime.cc:675]   native: #31 pc 000000000003da10  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 380000) (???) (BuildId: 9a9d303cb440eed7364800d0ead0962a65175480)&#xA;    runtime.cc:675]   native: #32 pc 000000000003e6cc  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 380000) (???) (BuildId: 9a9d303cb440eed7364800d0ead0962a65175480)&#xA;    runtime.cc:675]   native: #33 pc 000000000003e5e0  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 380000) (???) (BuildId: 9a9d303cb440eed7364800d0ead0962a65175480)&#xA;    runtime.cc:675]   native: #34 pc 000000000003df50  /data/app/~~kWvaZj7JOt9YyFawweYvtw==/com.example.androidplayer-_Vqw2zfb57LpijMAPW6U4w==/base.apk (offset 380000) (???) (BuildId: 9a9d303cb440eed7364800d0ead0962a65175480)&#xA;    runtime.cc:675]   native: #35 pc 00000000000efb14  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)&#x2B;264) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   native: #36 pc 000000000008c35c  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread&#x2B;68) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   (no managed stack frames)&#xA;    runtime.cc:675] &#xA;    runtime.cc:675] "main" prio=10 tid=1 Native&#xA;    runtime.cc:675]   | group="" sCount=1 ucsCount=0 flags=1 obj=0x71915d18 self=0xb400007bd4472800&#xA;    runtime.cc:675]   | sysTid=3241 nice=-10 cgrp=default sched=0/0 handle=0x7bd5ac64f8&#xA;    runtime.cc:675]   | state=S schedstat=( 20358355629 2398850818 13099 ) utm=1560 stm=474 core=5 HZ=100&#xA;    runtime.cc:675]   | stack=0x7ff2616000-0x7ff2618000 stackSize=8188KB&#xA;    runtime.cc:675]   | held mutexes=&#xA;    runtime.cc:675]   native: #00 pc 0000000000086f90  /apex/com.android.runtime/lib64/bionic/libc.so (syscall&#x2B;32) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;A/e.androidplaye: runtime.cc:675]   native: #01 pc 000000000047cc80  /apex/com.android.art/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)&#x2B;140) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #02 pc 00000000005c8cac  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::FindClass(_JNIEnv*, char const*) (.__uniq.99033978352804627313491551960229047428.llvm.5591279935177935698)&#x2B;1096) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #03 pc 000000000011aae0  /system/lib64/libandroid_runtime.so (android::NativeDisplayEventReceiver::dispatchVsync(long, android::PhysicalDisplayId, unsigned int, android::VsyncEventData)&#x2B;80) (BuildId: f73b7e7fab15dc5b96680181e111fb8f)&#xA;    runtime.cc:675]   native: #04 pc 00000000000af3f0  /system/lib64/libgui.so (android::DisplayEventDispatcher::handleEvent(int, int, void*)&#x2B;204) (BuildId: 3f01a4a30b5fa3a4804b8361ddccc4a3)&#xA;    runtime.cc:675]   native: #05 pc 0000000000018184  /system/lib64/libutils.so (android::Looper::pollInner(int)&#x2B;916) (BuildId: 16796d84bdcf185b2112267dbd820c19)&#xA;    runtime.cc:675]   native: #06 pc 0000000000017d84  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)&#x2B;116) (BuildId: 16796d84bdcf185b2112267dbd820c19)&#xA;    runtime.cc:675]   native: #07 pc 0000000000154668  /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)&#x2B;48) (BuildId: f73b7e7fab15dc5b96680181e111fb8f)&#xA;    runtime.cc:675]   at android.os.MessageQueue.nativePollOnce(Native method)&#xA;    runtime.cc:675]   at android.os.MessageQueue.next(MessageQueue.java:337)&#xA;    runtime.cc:675]   at android.os.Looper.loopOnce(Looper.java:168)&#xA;    runtime.cc:675]   at android.os.Looper.loop(Looper.java:299)&#xA;    runtime.cc:675]   at android.app.ActivityThread.main(ActivityThread.java:8250)&#xA;    runtime.cc:675]   at java.lang.reflect.Method.invoke(Native method)&#xA;    runtime.cc:675]   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)&#xA;    runtime.cc:675]   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)&#xA;    runtime.cc:675] &#xA;    runtime.cc:675] "Signal Catcher" prio=10 tid=4 WaitingInMainSignalCatcherLoop&#xA;    runtime.cc:675]   | group="" sCount=1 ucsCount=0 flags=1 obj=0x13340270 self=0xb400007b1f611800&#xA;    runtime.cc:675]   | sysTid=3247 nice=-20 cgrp=default sched=0/0 handle=0x7b209aecb0&#xA;    runtime.cc:675]   | state=S schedstat=( 300521 0 2 ) utm=0 stm=0 core=6 HZ=100&#xA;    runtime.cc:675]   | stack=0x7b208b7000-0x7b208b9000 stackSize=991KB&#xA;    runtime.cc:675]   | held mutexes=&#xA;    runtime.cc:675]   native: #00 pc 00000000000db77c  /apex/com.android.runtime/lib64/bionic/libc.so (__rt_sigtimedwait&#x2B;12) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   native: #01 pc 000000000009a1b8  /apex/com.android.runtime/lib64/bionic/libc.so (sigwait64&#x2B;92) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   native: #02 pc 000000000057420c  /apex/com.android.art/lib64/libart.so (art::SignalCatcher::WaitForSignal(art::Thread*, art::SignalSet&amp;)&#x2B;108) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #03 pc 0000000000573e1c  /apex/com.android.art/lib64/libart.so (art::SignalCatcher::Run(void*)&#x2B;228) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #04 pc 00000000000efb14  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)&#x2B;264) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   native: #05 pc 000000000008c35c  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread&#x2B;68) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   (no managed stack frames)&#xA;    runtime.cc:675] &#xA;    runtime.cc:675] "perfetto_hprof_listener" prio=10 tid=7 Native (still starting up)&#xA;    runtime.cc:675]   | group="" sCount=1 ucsCount=0 flags=1 obj=0x0 self=0xb400007b138a8800&#xA;    runtime.cc:675]   | sysTid=3248 nice=-20 cgrp=default sched=0/0 handle=0x7b208b0cb0&#xA;    runtime.cc:675]   | state=S schedstat=( 175052 0 3 ) utm=0 stm=0 core=6 HZ=100&#xA;A/e.androidplaye: runtime.cc:675]   | stack=0x7b207b9000-0x7b207bb000 stackSize=991KB&#xA;    runtime.cc:675]   | held mutexes=&#xA;    runtime.cc:675]   native: #00 pc 00000000000daad8  /apex/com.android.runtime/lib64/bionic/libc.so (read&#x2B;8) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   native: #01 pc 000000000001d840  /apex/com.android.art/lib64/libperfetto_hprof.so (void* std::__1::__thread_proxy >, ArtPlugin_Initialize::$_34> >(void*)&#x2B;260) (BuildId: d60314cb99f035c98d20ab286d52fc6d)&#xA;    runtime.cc:675]   native: #02 pc 00000000000efb14  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)&#x2B;264) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   native: #03 pc 000000000008c35c  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread&#x2B;68) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   (no managed stack frames)&#xA;    runtime.cc:675] &#xA;    runtime.cc:675] "ADB-JDWP Connection Control Thread" prio=10 tid=8 WaitingInMainDebuggerLoop&#xA;    runtime.cc:675]   | group="" sCount=1 ucsCount=0 flags=1 obj=0x133402e8 self=0xb400007b1f64d800&#xA;    runtime.cc:675]   | sysTid=3249 nice=-20 cgrp=default sched=0/0 handle=0x7b207b2cb0&#xA;    runtime.cc:675]   | state=S schedstat=( 935055 0 13 ) utm=0 stm=0 core=4 HZ=100&#xA;    runtime.cc:675]   | stack=0x7b206bb000-0x7b206bd000 stackSize=991KB&#xA;    runtime.cc:675]   | held mutexes=&#xA;    runtime.cc:675]   native: #00 pc 00000000000dbe3c  /apex/com.android.runtime/lib64/bionic/libc.so (__ppoll&#x2B;12) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   native: #01 pc 00000000000973b4  /apex/com.android.runtime/lib64/bionic/libc.so (poll&#x2B;96) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   native: #02 pc 00000000000099e4  /apex/com.android.art/lib64/libadbconnection.so (adbconnection::AdbConnectionState::RunPollLoop(art::Thread*)&#x2B;724) (BuildId: c4c03b03ed50414e876ae23cd04eae7e)&#xA;    runtime.cc:675]   native: #03 pc 00000000000080ac  /apex/com.android.art/lib64/libadbconnection.so (adbconnection::CallbackFunction(void*)&#x2B;1320) (BuildId: c4c03b03ed50414e876ae23cd04eae7e)&#xA;    runtime.cc:675]   native: #04 pc 00000000000efb14  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)&#x2B;264) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   native: #05 pc 000000000008c35c  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread&#x2B;68) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   (no managed stack frames)&#xA;    runtime.cc:675] &#xA;    runtime.cc:675] "Jit thread pool worker thread 0" prio=5 tid=9 Native&#xA;    runtime.cc:675]   | group="" sCount=1 ucsCount=0 flags=1 obj=0x13340360 self=0xb400007b138c4000&#xA;    runtime.cc:675]   | sysTid=3250 nice=9 cgrp=default sched=0/0 handle=0x7b206b4cb0&#xA;    runtime.cc:675]   | state=S schedstat=( 1384418878 710723029 1368 ) utm=118 stm=20 core=1 HZ=100&#xA;    runtime.cc:675]   | stack=0x7b205b5000-0x7b205b7000 stackSize=1023KB&#xA;    runtime.cc:675]   | held mutexes=&#xA;    runtime.cc:675]   native: #00 pc 0000000000086f90  /apex/com.android.runtime/lib64/bionic/libc.so (syscall&#x2B;32) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   native: #01 pc 000000000047cc80  /apex/com.android.art/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)&#x2B;140) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #02 pc 000000000047cb18  /apex/com.android.art/lib64/libart.so (art::ThreadPool::GetTask(art::Thread*)&#x2B;120) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #03 pc 0000000000619810  /apex/com.android.art/lib64/libart.so (art::ThreadPoolWorker::Run()&#x2B;136) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #04 pc 00000000006196f0  /apex/com.android.art/lib64/libart.so (art::ThreadPoolWorker::Callback(void*)&#x2B;160) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;A/e.androidplaye: runtime.cc:675]   native: #05 pc 00000000000efb14  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)&#x2B;264) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   native: #06 pc 000000000008c35c  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread&#x2B;68) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   (no managed stack frames)&#xA;    runtime.cc:675] &#xA;    runtime.cc:675] "HeapTaskDaemon" prio=5 tid=10 Native&#xA;    runtime.cc:675]   | group="" sCount=1 ucsCount=0 flags=1 obj=0x13340d60 self=0xb400007b138d5800&#xA;    runtime.cc:675]   | sysTid=3256 nice=4 cgrp=default sched=0/0 handle=0x7b205aecb0&#xA;    runtime.cc:675]   | state=S schedstat=( 12936736517 2503386925 3722 ) utm=1074 stm=219 core=4 HZ=100&#xA;    runtime.cc:675]   | stack=0x7b204ab000-0x7b204ad000 stackSize=1039KB&#xA;    runtime.cc:675]   | held mutexes=&#xA;    runtime.cc:675]   native: #00 pc 0000000000086f90  /apex/com.android.runtime/lib64/bionic/libc.so (syscall&#x2B;32) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   native: #01 pc 000000000047cc80  /apex/com.android.art/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)&#x2B;140) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #02 pc 000000000056bbb8  /apex/com.android.art/lib64/libart.so (art::gc::Heap::TrimIndirectReferenceTables(art::Thread*)&#x2B;1364) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #03 pc 000000000056b468  /apex/com.android.art/lib64/libart.so (art::gc::Heap::Trim(art::Thread*)&#x2B;68) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #04 pc 000000000056b3cc  /apex/com.android.art/lib64/libart.so (art::gc::Heap::HeapTrimTask::Run(art::Thread*)&#x2B;32) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #05 pc 000000000046ce28  /apex/com.android.art/lib64/libart.so (art::gc::TaskProcessor::RunAllTasks(art::Thread*)&#x2B;56) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   at dalvik.system.VMRuntime.runHeapTasks(Native method)&#xA;    runtime.cc:675]   at java.lang.Daemons$HeapTaskDaemon.runInternal(Daemons.java:609)&#xA;    runtime.cc:675]   at java.lang.Daemons$Daemon.run(Daemons.java:140)&#xA;    runtime.cc:675]   at java.lang.Thread.run(Thread.java:1012)&#xA;    runtime.cc:675] &#xA;    runtime.cc:675] "ReferenceQueueDaemon" prio=5 tid=11 Waiting&#xA;    runtime.cc:675]   | group="" sCount=1 ucsCount=0 flags=1 obj=0x133403d8 self=0xb400007b138d7400&#xA;    runtime.cc:675]   | sysTid=3259 nice=4 cgrp=default sched=0/0 handle=0x7b204a4cb0&#xA;    runtime.cc:675]   | state=S schedstat=( 2230226662 207087138 1228 ) utm=26 stm=196 core=4 HZ=100&#xA;    runtime.cc:675]   | stack=0x7b203a1000-0x7b203a3000 stackSize=1039KB&#xA;    runtime.cc:675]   | held mutexes=&#xA;    runtime.cc:675]   native: #00 pc 0000000000086f90  /apex/com.android.runtime/lib64/bionic/libc.so (syscall&#x2B;32) (BuildId: 94065bf91428f6ae9fb310c478171302)&#xA;    runtime.cc:675]   native: #01 pc 000000000047cc80  /apex/com.android.art/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)&#x2B;140) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   native: #02 pc 0000000000486588  /apex/com.android.art/lib64/libart.so (art::Monitor::Wait(art::Thread*, art::ObjPtr, long, int, bool, art::ThreadState)&#x2B;2520) (BuildId: 56e704c544e6c624201be2ab4933e853)&#xA;    runtime.cc:675]   at java.lang.Object.wait(Native method)&#xA;    runtime.cc:675]   - waiting on &lt;0x0483c441> (a java.lang.Class)&#xA;    runtime.cc:675]   at java.lang.Object.wait(Object.java:442)&#xA;    runtime.cc:675]   at java.lang.Object.wait(Object.java:568)&#xA;    runtime.cc:675]   at java.lang.Daemons$ReferenceQueueDaemon.runInternal(Daemons.java:232)&#xA;    runtime.cc:675]   - locked &lt;0x0483c441> (a java.lang.Class)&#xA;    runtime.cc:675]   at java.lang.Daemons$Daemon.run(Daemons.java:140)&#xA;    runtime.cc:675]   at java.lang.Thread.run(Thread.java:1012)&#xA;    runtime.cc:675] &#xA;...(this part i missed because so big)&#xA;W/e.androidplaye: Suspending all threads took: 10.935ms&#xA;A/e.androidplaye: runtime.cc:683] JNI DETECTED ERROR IN APPLICATION: thread Thread[2,tid=3420,Native,Thread*=0xb400007bd4470c00,peer=0x12cc1510,"Thread-8687"] using JNIEnv* from thread Thread[3,tid=3419,Native,Thread*=0xb400007aadc2e400,peer=0x12d00000,"Thread-8688"]&#xA;    runtime.cc:683]     in call to CallVoidMethodV&#xA;A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 3420 (Thread-8687), pid 3241 (e.androidplayer)&#xA;</void></void></void></void></void></void></void>

    &#xA;

  • FFMPEG : Merge Image and Audio Convert into Video in android using FFMPEG library

    30 janvier 2014, par Nitish Singla

    i want to convert images into video in android using FFMPEG,still now i compiled the library successfully,and also get Libffmpeg.so.
    Using Platform : UBUNTU,Eclipse
    My problem is- when i use this library command too convert video into images through Java code i mean through my Activity i got Error-
    JAVA.IO.EXCEPTION.Enable to execute .Exec() command
    But if i exceute this command through CMD then my video file is created successfully.
    i want to know whats the problem behind it,i am searching from 2 days on it,but could not get the solution,i thing its problem of Execute Permission In android.Plzzz help me,,,or tell me is it possible to in android to make a video file using FFMPEG.

    Code :

    public class Mpeg extends Activity {

    String cmd;

    static {

       System.loadLibrary("ffmpeg");

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.activity_mpeg);
       File mf = Environment.getExternalStorageDirectory();




       String install="$adb push ./asl-native /sdcard/asl-native";

       String ins="$adb shell /system/bin/chmod 0777 /sdcard/asl-native";

       String start="$adb shell /system/bin/chmod 0777 /sdcard/asl-native";
       String str="$adb shell /system/bin/chmod 0777 /sdcard/asl-native";

       try{
           Process p = Runtime.getRuntime().exec(install);

           p = Runtime.getRuntime().exec(ins);

           p = Runtime.getRuntime().exec(start);

           p = Runtime.getRuntime().exec(str);


           Log.e("filee name", "goodddddd"+ install);
           Log.e("full command", "goodddddd"+ ins);

           }
           catch (Exception e) {
               Log.e("image", "exception");
           }



       String livestream = mf.getAbsoluteFile()+"/smile.png";
       Log.e("image", "imageeeeeeeee " + livestream);

       String folderpth = mf.getAbsoluteFile()+"/RABBA.MP3";




       Log.e("Test", "songggggggggg " + folderpth);


       String output=mf.getAbsoluteFile()+"/plztest.mp4";;

       //String output = new File(Environment.getExternalStorageDirectory(), "plzz.mp4").getAbsolutePath();
       Log.e("Test", "outputttttt " + output);

       cmd= "ffmpeg -i "+ livestream +" -i "+ folderpth +" -acodec copy "+ output;

        Log.e("chck plzzzzz", "after "+ cmd);

       //String jaiho="ffmpeg -i image8.jpg -i file.m4a -acodec copy test.mp4";

       // Boolean heloo=isDeviceRooted_BySu();

        //Log.e("check file", "after "+ heloo);


       Button   run=(Button)findViewById(R.id.btn);


           run.setOnClickListener(new View.OnClickListener() {
                public void onClick(View v) {
                    // Perform action on click

                    try {
                        Execute();
                       } catch (IOException e) {
                           // TODO Auto-generated catch block
                           e.printStackTrace();
                       } catch (InterruptedException e) {
                           // TODO Auto-generated catch block
                           e.printStackTrace();
                       }
                }
            });


       /*

        try{

       Process p = Runtime.getRuntime().exec(cmd);
       Log.e("check file", "main fileeee ");

       }
       catch (IOException e) {
           throw new RuntimeException(e);

       }
       */

    }


    public void Execute() throws IOException, InterruptedException{


          Process process=Runtime.getRuntime().exec(cmd);
           // process = pb.command(com).redirectErrorStream(true).start();


       }
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
       // Inflate the menu; this adds items to the action bar if it is present.
       getMenuInflater().inflate(R.menu.mpeg, menu);
       return true;
    }


    public static boolean isDeviceRooted_BySu() {
       try {
           Log.d("BySu", "BySu");
           Process p = Runtime.getRuntime().exec("su");
           return true;
       } catch (IOException e) {
           e.printStackTrace();
       }
       return false;
    }

    }

    Logcat output :

    06-05 17:58:10.686: D/dalvikvm(1189): Trying to load lib /data/data/com.example.myfmpeg /lib/libffmpeg.so 0x412a5cf0
    06-05 17:58:10.756: I/dalvikvm(1189): threadid=3: reacting to signal 3
    06-05 17:58:10.955: D/dalvikvm(1189): Added shared lib /data/data/com.example.myfmpeg/lib/libffmpeg.so 0x412a5cf0
    06-05 17:58:10.955: D/dalvikvm(1189): No JNI_OnLoad found in /data/data/com.example.myfmpeg/lib/libffmpeg.so 0x412a5cf0, skipping init
    06-05 17:58:11.024: I/dalvikvm(1189): Wrote stack traces to &#39;/data/anr/traces.txt&#39;
    06-05 17:58:11.215: I/dalvikvm(1189): threadid=3: reacting to signal 3
    06-05 17:58:11.326: I/dalvikvm(1189): Wrote stack traces to &#39;/data/anr/traces.txt&#39;
    06-05 17:58:11.466: E/image(1189): imageeeeeeeee /mnt/sdcard/smile.png
    06-05 17:58:11.466: E/Test(1189): songggggggggg /mnt/sdcard/RABBA.MP3
    06-05 17:58:11.476: E/Test(1189): outputttttt /mnt/sdcard/video.mp4
    06-05 17:58:11.476: E/chck plzzzzz(1189): after ffmpeg -i /mnt/sdcard/smile.png -i /mnt/sdcard/RABBA.MP3 -acodec copy /mnt/sdcard/video.mp4
    06-05 17:58:11.896: E/AndroidRuntime(1189): FATAL EXCEPTION: main
    06-05 17:58:11.896: E/AndroidRuntime(1189): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myfmpeg/com.example.myfmpeg.Mpeg}: java.lang.RuntimeException: java.io.IOException: Error running exec(). Command: [ffmpeg, -i, /mnt/sdcard/smile.png, -i, /mnt/sdcard/RABBA.MP3, -acodec, copy, /mnt/sdcard/video.mp4] Working Directory: null Environment: null
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at android.app.ActivityThread.access$600(ActivityThread.java:123)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at android.os.Handler.dispatchMessage(Handler.java:99)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at android.os.Looper.loop(Looper.java:137)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at android.app.ActivityThread.main(ActivityThread.java:4424)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at java.lang.reflect.Method.invokeNative(Native Method)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at java.lang.reflect.Method.invoke(Method.java:511)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    06-05 17:58:11.896: E/AndroidRuntime(1189):     at dalvik.system.NativeStart.main(Native Method)
    06-05 17:58:11.896: E/AndroidRuntime(1189): Caused by: java.lang.RuntimeException: java.io.IOException: Error running exec(). Command: [ffmpeg, -i, /mnt/sdcard/smile.png, -i, /mnt/sdcard/RABBA.MP3, -acodec, copy, /mnt/sdcard/video.mp4] Working Directory: null Environment: null
  • FFmpeg matlab error : At least one output file must be specified ? [closed]

    3 mars, par as moh

    I'm trying to get I frames from a video using Matlab using this command system(sprintf(&#x27;ffmpeg -i testVid.mp4 -vf "select=eq(pict_type\,I)" -vsync vfr output_%03d.png&#x27;)); ,but i get this message

    &#xA;

     ffmpeg version 7.1-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers &#xA;  built with gcc 14.2.0 (Rev1, Built by MSYS2 project) &#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libopenjpeg --enable-libquirc --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-libqrencode --enable-librav1e --enable-libsvtav1 --enable-libvvenc --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-liblc3 --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint &#xA;  libavutil      59. 39.100 / 59. 39.100 &#xA;  libavcodec     61. 19.100 / 61. 19.100 &#xA;  libavformat    61.  7.100 / 61.  7.100 &#xA;  libavdevice    61.  3.100 / 61.  3.100 &#xA;  libavfilter    10.  4.100 / 10.  4.100 &#xA;  libswscale      8.  3.100 /  8.  3.100 &#xA;  libswresample   5.  3.100 /  5.  3.100 &#xA;  libpostproc    58.  3.100 / 58.  3.100 &#xA;Trailing option(s) found in the command: may be ignored. &#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;testVid.mp4&#x27;: &#xA;  Metadata: &#xA;    major_brand     : isom &#xA;    minor_version   : 512 &#xA;    compatible_brands: isomiso2avc1mp41 &#xA;    encoder         : Lavf57.83.100 &#xA;  Duration: 00:00:02.02, start: 0.000000, bitrate: 12798 kb/s &#xA;  Stream #0:0[0x1](eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuvj420p(pc, progressive), 1280x720 [SAR 1:1 DAR 16:9], 12662 kb/s, 29.74 fps, 30 tbr, 90k tbn (default) &#xA;      Metadata: &#xA;        handler_name    : VideoHandler &#xA;        vendor_id       : [0][0][0][0] &#xA;  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 121 kb/s (default) &#xA;      Metadata: &#xA;        handler_name    : SoundHandler &#xA;        vendor_id       : [0][0][0][0] &#xA;At least one output file must be specified &#xA;

    &#xA;

    i searched and tried many cases but i don't know where is the problem, any help please ?

    &#xA;