Android camera not working

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Android camera not working

Daniel Kučera
Hi,

I've gone through the hassle of compiling ffmpeg binary for Android
https://github.com/tanersener/mobile-ffmpeg/issues/30

The problem is that it doesn't work - it pretends to be active but does nothing.

Is anybody here able to help?

Thanks.

shell log (logcat in attachment) :

130|markw:/storage/emulated/0 # /data/ffmpeg -loglevel trace -y -f
android_camera -camera_index 1 -framerate 30 -i 0 output.raw
ffmpeg version v4.2-dev-1156 Copyright (c) 2000-2019 the FFmpeg developers
  built with Android (5058415 based on r339409) clang version 8.0.2
(https://android.googlesource.com/toolchain/clang
40173bab62ec746213857d083c0e8b0abb568790)
(https://android.googlesource.com/toolchain/llvm
7a6618d69e7e8111e1d49dc9e7813767c5ca756a) (based on LLVM 8.0.2svn)
  configuration: --cross-prefix=aarch64-linux-android-
--sysroot=/home/yw674/Android/Sdk/ndk/19.2.5345600//toolchains/llvm/prebuilt/linux-x86_64/sysroot
--prefix=/home/yw674/private/mobile-ffmpeg/prebuilt/android-arm64/ffmpeg
--pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64
--cpu=armv8-a --cc=aarch64-linux-android24-clang
--cxx=aarch64-linux-android24-clang++ --target-os=android
--enable-neon --enable-asm --enable-inline-asm --enable-cross-compile
--enable-pic --enable-jni --enable-optimizations --enable-swscale
--disable-shared --disable-v4l2-m2m --disable-outdev=v4l2
--disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev
--enable-small --disable-openssl --disable-xmm-clobber-test
--disable-debug --enable-lto --disable-neon-clobber-test
--disable-postproc --disable-doc --disable-htmlpages
--disable-manpages --disable-podpages --disable-txtpages
--enable-static --disable-sndio --disable-schannel
--disable-securetransport --disable-xlib --disable-cuda
--disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau
--disable-videotoolbox --disable-audiotoolbox --disable-appkit
--disable-alsa --disable-cuda --disable-cuvid --disable-nvenc
--disable-vaapi --disable-vdpau --disable-sdl2 --disable-zlib
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 47.106 / 58. 47.106
  libavformat    58. 26.101 / 58. 26.101
  libavdevice    58.  7.100 / 58.  7.100
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set
logging level) with argument 'trace'.
Reading option '-y' ... matched as option 'y' (overwrite output files)
with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with
argument 'android_camera'.
Reading option '-camera_index' ... matched as AVOption 'camera_index'
with argument '1'.
Reading option '-framerate' ... matched as AVOption 'framerate' with
argument '30'.
Reading option '-i' ... matched as input url with argument '0'.
Reading option 'output.raw' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument trace.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url 0.
Applying option f (force format) with argument android_camera.
Successfully parsed a group of options.
Opening an input file: 0.
[android_camera @ 0x7af8ab9600] Requested video_size 0x0 not
available, falling back to 2592x1944
[android_camera @ 0x7af8ab9600] Android camera capture session is active.
^C^C^CReceived > 3 system signals, hard exiting


--

S pozdravom / Best regards
Daniel Kucera.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

adb-logcat.txt (28K) Download Attachment