bravobit / FFmpeg-Android

FFMpeg/FFprobe compiled for Android
https://bravobit.nl/
MIT License
740 stars 176 forks source link

Error Android 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required) #85

Open pharrowandroid opened 5 years ago

pharrowandroid commented 5 years ago

What have I done wrong? Here is my command. Trying to capture stream on android. I can view stream in Mediaplayer no problem so stream is ok. Also any tips on how to view and record at same time?

String[] cmd = {"-i", RTSP_URL, "-r", "30", "-vcodec", "copy", "-an", "-t", "90", IPvideo_uri.toString()};

ffmpeg version n4.0-39-gda39990 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 4.9.x (GCC) 20150123 (prerelease) configuration: --target-os=linux --cross-prefix=/root/bravobit/ffmpeg-android/toolchain-android/bin/i686-linux-android- --arch=x86 --cpu=i686 --enable-runtime-cpudetect --sysroot=/root/bravobit/ffmpeg-android/toolchain-android/sysroot --disable-asm --enable-pic --enable-libx264 --enable-libfreetype --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --enable-pthreads --enable-libass --enable-libfribidi --enable-fontconfig --enable-libfdk-aac --disable-debug --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-linux-perf --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --enable-nonfree --enable-network --enable-avresample --enable-avformat --enable-avcodec --enable-indev=lavfi --enable-hwaccels --enable-ffmpeg --enable-zlib --enable-gpl --enable-small --enable-nonfree --disable-asm --pkg-config=pkg-config --pkg-config-flags=--static --prefix=/root/bravobit/ffmpeg-android/build/x86 --extra-cflags='-I/root/bravobit/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=i686' --extra-ldflags='-L/root/bravobit/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-cxxflags= libavutil 56. 14.100 / 56. 14.100 libavcodec 58. 18.100 / 58. 18.100 libavformat 58. 12.100 / 58. 12.100 libavdevice 58. 3.100 / 58. 3.100 libavfilter 7. 16.100 / 7. 16.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 1.100 / 5. 1.100 libswresample 3. 1.100 / 3. 1.100 libpostproc 55. 1.100 / 55. 1.100 [udp @ 0xec6cd000] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required) [udp @ 0xec6cd070] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required) [udp @ 0xec6cd0e0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required) [udp @ 0xec6cd150] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required) [rtsp @ 0xec6a5000] UDP timeout, retrying with TCP [rtsp @ 0xec6a5000] method PAUSE failed: 551 Option not supported [rtsp @ 0xec6a5000] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, rtsp, from 'rtsp://IP login port/video.h264': Metadata: title : Media Presentation Duration: N/A, bitrate: N/A Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 180k tbc Stream #0:1: Audio: aac, 16000 Hz, mono, fltp Output #0, mp4, to 'content://com.example.android.fileprovider/external_files/Android/data/com.example.pathways.testipcam/files/Movies/IPcam20190117_165724139079551686237028.mp4': Output file #0 does not contain any stream

Brianvdb commented 5 years ago

I think that warning can be ignored. Are you passing the correct stream? It logs UDP timeout.