Open charmeleon2 opened 7 years ago
I use demo to exec commd "-i rtsp://192.168.1.102/222 rtmp://push.archerycn.cn/hw/test",but it don't work. here is the log: 04-25 11:22:38.031 6261-6261/? W/linker: /data/data/com.github.hiteshsondhi88.sampleffmpeg/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix. 04-25 11:22:38.072 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: WARNING: linker: /data/data/com.github.hiteshsondhi88.sampleffmpeg/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix. 04-25 11:22:38.082 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers 04-25 11:22:38.084 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: built with gcc 4.8 (GCC) 04-25 11:22:38.085 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/i686-linux-android- --arch=x86 --cpu=i686 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/x86 --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=i686' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags= 04-25 11:22:38.098 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libavutil 55. 17.103 / 55. 17.103 04-25 11:22:38.101 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libavcodec 57. 24.102 / 57. 24.102 04-25 11:22:38.103 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libavformat 57. 25.100 / 57. 25.100 04-25 11:22:38.104 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libavdevice 57. 0.101 / 57. 0.101 04-25 11:22:38.105 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libavfilter 6. 31.100 / 6. 31.100 04-25 11:22:38.105 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libswscale 4. 0.100 / 4. 0.100 04-25 11:22:38.107 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libswresample 2. 0.101 / 2. 0.101 04-25 11:22:38.112 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libpostproc 54. 0.100 / 54. 0.100 04-25 11:22:38.116 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: rtsp://192.168.1.102/222: Permission denied 04-25 11:22:38.117 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onFailure: WARNING: linker: /data/data/com.github.hiteshsondhi88.sampleffmpeg/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix. ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8 (GCC) configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/i686-linux-android- --arch=x86 --cpu=i686 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/x86 --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=i686' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags= libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 rtsp://192.168.1.102/222: Permission denied
Did you forget to add internet permission to your application manifest?
<uses-permission android:name="android.permission.INTERNET" />
thanks
I use demo to exec commd "-i rtsp://192.168.1.102/222 rtmp://push.archerycn.cn/hw/test",but it don't work. here is the log: 04-25 11:22:38.031 6261-6261/? W/linker: /data/data/com.github.hiteshsondhi88.sampleffmpeg/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix. 04-25 11:22:38.072 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: WARNING: linker: /data/data/com.github.hiteshsondhi88.sampleffmpeg/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix. 04-25 11:22:38.082 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers 04-25 11:22:38.084 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: built with gcc 4.8 (GCC) 04-25 11:22:38.085 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/i686-linux-android- --arch=x86 --cpu=i686 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/x86 --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=i686' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags= 04-25 11:22:38.098 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libavutil 55. 17.103 / 55. 17.103 04-25 11:22:38.101 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libavcodec 57. 24.102 / 57. 24.102 04-25 11:22:38.103 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libavformat 57. 25.100 / 57. 25.100 04-25 11:22:38.104 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libavdevice 57. 0.101 / 57. 0.101 04-25 11:22:38.105 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libavfilter 6. 31.100 / 6. 31.100 04-25 11:22:38.105 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libswscale 4. 0.100 / 4. 0.100 04-25 11:22:38.107 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libswresample 2. 0.101 / 2. 0.101 04-25 11:22:38.112 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: libpostproc 54. 0.100 / 54. 0.100 04-25 11:22:38.116 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onProgress: rtsp://192.168.1.102/222: Permission denied 04-25 11:22:38.117 6216-6216/com.github.hiteshsondhi88.sampleffmpeg I/Home: onFailure: WARNING: linker: /data/data/com.github.hiteshsondhi88.sampleffmpeg/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix. ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8 (GCC) configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/i686-linux-android- --arch=x86 --cpu=i686 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/x86 --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=i686' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags= libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 rtsp://192.168.1.102/222: Permission denied