javernaut / whatthecodec Goto Github PK
View Code? Open in Web Editor NEWA sample app that uses FFmpeg's shared libraries
License: MIT License
A sample app that uses FFmpeg's shared libraries
License: MIT License
Trying to run ./ffmpeg-android-maker.sh -dav1d
and on step Building the component: libdav1d
I'm getting the following error
rm: crossfile-x86.meson: No such file or directory
/Users/alex/proj/temp/WhatTheCodec/ffmpeg-android-maker/scripts/libdav1d/build.sh: line 33: build/x86: No such file or directory
/Users/alex/proj/temp/WhatTheCodec/ffmpeg-android-maker/scripts/libdav1d/build.sh: line 42: cd: build/x86: No such file or directory
/Users/alex/proj/temp/WhatTheCodec/ffmpeg-android-maker/scripts/libdav1d/build.sh: line 44: -j: command not found
This happens both on Windows and Mac.
On an emulated Pixel2 API 29, WhatTheCodec fails to open mp4s in Downloads.
Seems like the uri looks like "content://com.android.providers.downloads.documents/document/msf:24"
and the "msf:" is not needed.
So PathUtil.java needs something like:
38 } else if (id.startsWith("msf:")) {
39 final String[] split = id.split(":");
40 uri = ContentUris.withAppendedId(
41 Uri.parse("content://downloads/public_downloads"), Long.valueOf(split[1]));
The logcat follows:
com.javernaut.whatthecodec E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.javernaut.whatthecodec, PID: 13131
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=42, result=-1, data=Intent { dat=content://com.android.providers.downloads.documents/document/msf:24 flg=0x1 }} to activity {com.javernaut.whatthecodec/com.javernaut.whatthecodec.MainActivity}: java.lang.NumberFormatException: For input string: "msf:24"
at android.app.ActivityThread.deliverResults(ActivityThread.java:4845)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4886)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Caused by: java.lang.NumberFormatException: For input string: "msf:24"
at java.lang.Long.parseLong(Long.java:594)
at java.lang.Long.valueOf(Long.java:808)
at com.javernaut.whatthecodec.PathUtil.getPath(PathUtil.java:40)
at com.javernaut.whatthecodec.MainActivity.tryGetVideoConfig(MainActivity.kt:108)
at com.javernaut.whatthecodec.MainActivity.onActivityResult(MainActivity.kt:39)
at android.app.Activity.dispatchActivityResult(Activity.java:8110)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4838)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4886)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
On Pixel2, I have taken a few short videos. 5-10 seconds each.
Within PathUtil.getPath(), the URI is:
content://com.android.externalstorage.documents/document/primary%3ADCIM%2FCamera%2FVID_20200124_154910.mp4
the check for isExternalStorageDocument(uri) is True and the variable "String[] split" (line ~35) contains:
getPath() then returns: /storage/emulated/0/DCIM/Camera/VID_20200124_154910.mp4
Finally, the C++ code fails within media_file_build():
media_file_builder.cpp:149 invokes onError(jMediaFileBuilder).
So, effectively, every video file I attempt to open uses the pipe interface. I am missing something or is this an issue with the newer (well, new-ish) phones running Android 10?
Thank you for the otherwise awesome repo and the ffmpeg builder.
Hi.
I get the following error x 7 times.
Do I have to put the user login and password for github.com? If so, how please?
K-MIn
Execution failed for task ':app:checkAmazonDebugAarMetadata'.
Could not resolve all files for configuration ':app:amazonDebugRuntimeClasspath'.
Could not resolve com.javernaut.mediafile:mediafile:1.0.0.
Required by:
project :app
> Could not resolve com.javernaut.mediafile:mediafile:1.0.0.
> Could not get resource 'https://maven.pkg.github.com/Javernaut/MediaFile/com/javernaut/mediafile/mediafile/1.0.0/mediafile-1.0.0.pom'.
> Could not GET 'https://maven.pkg.github.com/Javernaut/MediaFile/com/javernaut/mediafile/mediafile/1.0.0/mediafile-1.0.0.pom'. Received status code 400 from server: Bad Request
Can this be used to play video and decoding video like mkv which is not natively supported by android i mean ffmpeg android maker sorry?
java.lang.UnsatisfiedLinkError: dlopen failed: library "libswresample.so" not found
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.