tsy12321 / videoandroid Goto Github PK
View Code? Open in Web Editor NEWAndroid视频录制,自定义视频大小,支持触摸对焦、两指放大缩小、切换摄像头. 采用FFmpeg对进行视频帧剪裁旋转切割,包体积4M
License: Apache License 2.0
Android视频录制,自定义视频大小,支持触摸对焦、两指放大缩小、切换摄像头. 采用FFmpeg对进行视频帧剪裁旋转切割,包体积4M
License: Apache License 2.0
java.lang.NoClassDefFoundError: org.bytedeco.javacpp.avutil
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:453)
at org.bytedeco.javacpp.Loader.load(Loader.java:390)
at org.bytedeco.javacpp.Loader.load(Loader.java:358)
at org.bytedeco.javacpp.avcodec$AVPacket.(avcodec.java:1407)
at org.bytedeco.javacv.FFmpegFrameRecorder.(FFmpegFrameRecorder.java:251)
at com.tsy.sdk.video.Recorder.initRecorder(Recorder.java:98)
at com.tsy.sdk.video.Recorder.(Recorder.java:52)
at com.tsy.sdk.video.Recorder$Builder.build(Recorder.java:320)
at com.loopers.ui.videotest.RecorderActivity.initRecode
你好,录制完的视频,发现播放时顶部有一条白色的线,但录制过程中取景画面中并没有。
点击录制报错:
org.bytedeco.javacv.FrameFilter$Exception: avfilter_graph_config()
因为会影响帧率,我把mFFmpegFrameRecorder.record(frame2);的方法移到了子线程中。这样onPreviewFrame就恢复到30fps左右。但是在停止录制的时候,必崩溃。
2019-10-17 17:53:50.684 7553-7914/com.alleyes.app A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 7914 (RxNewThreadSche)
2019-10-17 17:53:50.943 7951-7951/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-10-17 17:53:50.943 7951-7951/? A/DEBUG: Build fingerprint: 'HONOR/LLD-AL00/HWLLD-H:8.0.0/HONORLLD-AL00/189(C00):user/release-keys'
2019-10-17 17:53:50.943 7951-7951/? A/DEBUG: Revision: '0'
2019-10-17 17:53:50.943 7951-7951/? A/DEBUG: ABI: 'arm'
2019-10-17 17:53:50.943 7951-7951/? A/DEBUG: pid: 7553, tid: 7914, name: RxNewThreadSche >>> com.alleyes.app <<<
2019-10-17 17:53:50.943 7951-7951/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
2019-10-17 17:53:50.943 7951-7951/? A/DEBUG: Cause: null pointer dereference
2019-10-17 17:53:50.943 7951-7951/? A/DEBUG: r0 d05d7440 r1 b6f65600 r2 00000000 r3 00000000
2019-10-17 17:53:50.943 7951-7951/? A/DEBUG: r4 d05d7440 r5 b558e0a4 r6 b82318c0 r7 80000000
2019-10-17 17:53:50.943 7951-7951/? A/DEBUG: r8 d05d7440 r9 bade3a00 sl b82318c0 fp b6c3a108
2019-10-17 17:53:50.943 7951-7951/? A/DEBUG: ip e7be0d60 sp b558e098 lr b6c12ccc pc b6c3a124 cpsr 600f0010
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: backtrace:
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #00 pc 0005d124 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #1 pc 00035cc8 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #2 pc 00036b60 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #3 pc 00088be8 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #4 pc 00035cc8 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #5 pc 00036b60 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #6 pc 00088be8 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #07 pc 00035cc8 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #08 pc 00036b60 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #09 pc 00088be8 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #10 pc 00035cc8 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #11 pc 00036b60 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #12 pc 00035cc8 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #13 pc 00036b60 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #14 pc 0003a7a4 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #15 pc 00035dec /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #16 pc 00035e7c /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #17 pc 00035e7c /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #18 pc 00035e7c /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #19 pc 00035e7c /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #20 pc 00035e7c /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so
2019-10-17 17:53:50.948 7951-7951/? A/DEBUG: #21 pc 00039f60 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libavfilter.so (av_buffersink_get_frame_flags+88)
2019-10-17 17:53:50.949 7951-7951/? A/DEBUG: #22 pc 00036ad0 /data/app/com.alleyes.app-ERSWgldDfK_GBUS69G0OVw==/lib/arm/libjniavfilter.so (Java_org_bytedeco_javacpp_avfilter_av_1buffersink_1get_1frame+172)
2019-10-17 17:53:50.949 7951-7951/? A/DEBUG: #23 pc 003e4679 /system/lib/libart.so (art_quick_generic_jni_trampoline+40)
2019-10-17 17:53:50.949 7951-7951/? A/DEBUG: #24 pc 000bec21 /dev/ashmem/dalvik-jit-code-cache (deleted) (offset 0x1000)
This error shows on new devices on main camera view
W/System.err: org.bytedeco.javacv.FrameFilter$Exception: avfilter_graph_config()
at org.bytedeco.javacv.FFmpegFrameFilter.startUnsafe(FFmpegFrameFilter.java:273)
at org.bytedeco.javacv.FFmpegFrameFilter.start(FFmpegFrameFilter.java:192)
at com.tsy.sdk.video.Recorder.start(Recorder.java:165)
at com.example.actoress.newDesign.videoDemo.RecorderActivity.startRecorder(RecorderActivity.java:199)
at com.example.actoress.newDesign.videoDemo.RecorderActivity.onTouch(RecorderActivity.java:178)
W/System.err: at android.view.View.dispatchTouchEvent(View.java:12509)
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.