-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathTroubleShoot
More file actions
48 lines (45 loc) · 2.69 KB
/
TroubleShoot
File metadata and controls
48 lines (45 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
坑点记录:
1.如何快速抽帧?
2.如果设置GOP?
3.如何设置帧率?
4.如何标记解码器终结?
5.如何音视频同步?
6.各种时间单位
MediaCodec时间单位us Surface时间单位ns MediaMetadataRetriever ms
1s = 1000ms = 1000000us = 1000000000 ns
System.currentMillis() ms
System.nanoTime() ns
7.pts为负数,最后一帧填入不正常的值
8.currentMillis时间和日历可以相互转换,可以被修改,nanoTime就不可以,更精确
9.丢帧,可以不经过解码,编码步骤,不过只能丢掉特定的帧。
10.bytebuffer.put复制解码内容的时候,要注意把position复位。。
11.AudioTrack minBufferSize
12.getSupportActionBar https://www.jianshu.com/p/81d0bcb282cb
13.共享安卓图标资源 https://fonts.google.com/icons?selected=Material+Icons:done:
14.避免不断获取Buffer MediaCodec
15.解码时候传递COLOR_FORMAT...
16.可以selectTrack多个。。
17.csd adts https://www.jianshu.com/p/aeadf260258a
18.encode decode cts / https://cs.android.com/android/platform/superproject/+/master:cts/tests/tests/media/codec/src/android/media/codec/cts/EncodeDecodeTest.java
19.编码器貌似需要一个新的MediaFormat,直接用解码器的MediaFormat,有点问题.
20.编码速度https://segmentfault.com/a/1190000021223837?utm_source=tag-newest
21.采用surface输入,signalEndOfInputStream标记结束
22.多线程绑定同一个context,必须要其他线程先解绑,然后才能绑定。
23.多线程共享纹理,可以在创建context的时候传入sharecontext,这样子就能使用纹理。
24.SurfaceTexture和context一对一绑定。
25.glPixelStorei影响glReadPixels glTexImage2D and glTexSubImage2D.
26.snapfile预览纹理貌似上下翻转,只有屏幕预览才正常.
27.uniform sampler2D inputImageTexture;
uniform samplerExternalOES inputImageOesTexture;
Oh,两个都要有值...
28.lut 黑色变红色。。。?白色变蓝色。。?只有oes读出的纹理颜色才有这个问题
29.Android处理半透明居然乘上一个alpha值。Android opengl es 使用半透明png图片作为texture的一些要点
30.EGL 坑http://geekfaner.com/shineengine/blog3_OpenGLESv2_2.html
31.Opengl fence https://jishuin.proginn.com/p/763bfbd6c6f4
32.android mat Matrix互换
33.快速查找github.com cdn https://ipaddress.com/website/github.com
34.brew 改源https://www.jianshu.com/p/bea984d27cd2 https://zhuanlan.zhihu.com/p/354427909
35.MediaMuxer合成视频时长不对,由于PKT时间戳不连续
36.getmeausewidth,layout.width
37.mp4结构 https://www.codenong.com/cs110499149/ http://www.360doc.com/content/20/0902/20/49586_933661079.shtml
38.微软 opengl api注释 https://docs.microsoft.com/zh-cn/windows/win32/opengl/glcopyteximage2d