Comments (4)
有其它的日志吗,logcat里
from screenrecorder.
from screenrecorder.
我用这个项目改造了一下 也遇到这个问题了,经过我的调试,发现是在MediaMuxer 调用writeSampleData的时候写入的音频数据的时间戳有问题,出现了新的时间戳比旧的时间戳还小的问题,主要问题出在resetAudioPts。不过也有可能是我进行了改造造成的,可以参考一下。 @yrom
from screenrecorder.
这个问题怎么解决?
java.lang.IllegalStateException: writeSampleData returned an error
at android.media.MediaMuxer.nativeWriteSampleData(Native Method)
at android.media.MediaMuxer.writeSampleData(MediaMuxer.java:714)
at com.hisense.screenrecord.recorder.ScreenRecorder.writeSampleData(ScreenRecorder.java:446)
at com.hisense.screenrecord.recorder.ScreenRecorder.muxVideo(ScreenRecorder.java:290)
at com.hisense.screenrecord.recorder.ScreenRecorder.access$500(ScreenRecorder.java:59)
at com.hisense.screenrecord.recorder.ScreenRecorder$2.onOutputBufferAvailable(ScreenRecorder.java:541)
at com.hisense.screenrecord.recorder.BaseEncoder$1.onOutputBufferAvailable(BaseEncoder.java:197)
at android.media.MediaCodec$EventHandler.handleCallback(MediaCodec.java:1706)
at android.media.MediaCodec$EventHandler.handleMessage(MediaCodec.java:1653)
at android.os.Handler.dispatchMessage(Handler.java:112)
at android.os.Looper.loop(Looper.java:216)
at android.os.HandlerThread.run(HandlerThread.java:65)
from screenrecorder.
Related Issues (20)
- 设置video OMX.google.h264.encoder 宽高为width=1440, height=2560,崩溃
- 点击START RECORDER报错,请问我该怎么处理
- 录屏直播延迟问题 HOT 1
- 开始录屏提示系统界面已停止运行
- how to crop screen capture >
- 刚好一分钟,声音就录制不了了
- How to pause screen recording?
- feature requests
- android.content.ActivityNotFoundException
- Copycat / Clone on Google Play
- 麻烦问下如何保证屏幕录制写入本地即使异常退出保存的文件也能播放 HOT 5
- [Feature Request]Have the "Default" Profile to automatically select the most appropriate profile+level for the chosen resolution
- [Feature Request]Use 4:4:4 chroma sampling whenever possible.
- failed to initialize c2.android.avc.encoder, error 0xfffff HOT 2
- system ui has stopped HOT 2
- [Feature Request]Save to SD HOT 1
- 把您的代码迁移到项目后,录屏的视频没有扬声器的声音?找了一天没找到原因。您知道是什么原因吗? HOT 1
- 录屏加水印
- 帧率问题
- 录屏变声
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from screenrecorder.