You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dependencies {
classpath "com.android.tools.build:gradle:4.1.0"
classpath "com.chaquo.python:gradle:9.1.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Devices or emulators where the issue happens
Device: Pixel 3
Emulator: Pixel_3A_API_30_x86
The issue happens in both emulator and device
2021-03-03 20:01:20.585 3897-3897/com.example.myapplication W/e.myapplication: type=1400 audit(0.0:33272): avc: granted { execute } for path="/data/data/com.example.myapplication/files/chaquopy/AssetFinder/stdlib-arm64-v8a/audioop.so" dev="dm-8" ino=603152 scontext=u:r:untrusted_app:s0:c59,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c59,c257,c512,c768 tclass=file app=com.example.myapplication
2021-03-03 20:01:20.605 3897-3897/com.example.myapplication W/python.stderr: /data/user/0/com.example.myapplication/files/chaquopy/AssetFinder/requirements/pydub/utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
2021-03-03 20:01:20.630 3897-3897/com.example.myapplication W/python.stderr: /data/user/0/com.example.myapplication/files/chaquopy/AssetFinder/requirements/pydub/utils.py:198: RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
2021-03-03 20:01:20.673 3897-3897/com.example.myapplication W/System.err: com.chaquo.python.PyException: FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe'
2021-03-03 20:01:20.673 3897-3897/com.example.myapplication W/System.err: at .subprocess._execute_child(subprocess.py:1702)
2021-03-03 20:01:20.673 3897-3897/com.example.myapplication W/System.err: at .subprocess.init(subprocess.py:854)
2021-03-03 20:01:20.673 3897-3897/com.example.myapplication W/System.err: at .pydub.utils.mediainfo_json(utils.py:274)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at .pydub.audio_segment.from_file(audio_segment.py:685)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at .wavConversion.convert(wavConversion.py:33)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at .chaquopy_java.call(chaquopy_java.pyx:380)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at .chaquopy_java.Java_com_chaquo_python_PyObject_callAttrThrowsNative(chaquopy_java.pyx:352)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at com.chaquo.python.PyObject.callAttrThrowsNative(Native Method)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at com.chaquo.python.PyObject.callAttrThrows(PyObject.java:232)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at com.chaquo.python.PyObject.callAttr(PyObject.java:221)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at com.example.myapplication.AudioRecorder.stopRecording(AudioRecorder.java:182)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at com.example.myapplication.AudioRecordService.onDestroy(AudioRecordService.java:75)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at android.app.ActivityThread.handleStopService(ActivityThread.java:4349)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at android.app.ActivityThread.access$1900(ActivityThread.java:237)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1956)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at android.os.Handler.dispatchMessage(Handler.java:106)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at android.os.Looper.loop(Looper.java:223)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7660)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
2021-03-03 20:01:20.674 3897-3897/com.example.myapplication W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Describe your issue
I'm trying to use Chaquopy in Android to convert a 3gpp audio file into a WAV format. The 3gpp files are recorded using "android.media.MediaRecorder" and stored in the external location (Download folder and permission are granted for read+write operation). I'm using Ubuntu 18.04 and I've already installed "ffmpeg, PyDub" library. The code snippet works fine in Jupyter Notebook but troubles when integrated into the Android environment. There are a few similar questions but not properly explained/ the solutions are not working. Any help/solution? Thank you.
The text was updated successfully, but these errors were encountered:
mhsmith
changed the title
RuntimeWarning: Couldn't find ffmpeg or avconv
pydub: Couldn't find ffmpeg or avconv
Mar 4, 2021
Chaquopy version
In the application gradle file -
Devices or emulators where the issue happens
Device: Pixel 3
Emulator: Pixel_3A_API_30_x86
The issue happens in both emulator and device
Relevant parts of your code
From JAVA file
Python code snippet for conversion -
The stack trace -
Describe your issue
I'm trying to use Chaquopy in Android to convert a 3gpp audio file into a WAV format. The 3gpp files are recorded using "android.media.MediaRecorder" and stored in the external location (Download folder and permission are granted for read+write operation). I'm using Ubuntu 18.04 and I've already installed "ffmpeg, PyDub" library. The code snippet works fine in Jupyter Notebook but troubles when integrated into the Android environment. There are a few similar questions but not properly explained/ the solutions are not working. Any help/solution? Thank you.
The text was updated successfully, but these errors were encountered: