Comments (7)
要添加文本的话,只能先用普通的Canvas把文本写到一个bitmap里面,再用canvas.drawBitmap。在
https://github.com/ChillingVan/android-openGL-canvas、
这里的 CompareCanvas 里有画文字的例子。
如果你的添加文字的数量不用很多的话,没有性能影响,可以用这种方法,否则会影响性能。
另外如果你是追求弹幕那种效果的话,建议你用一个普通的View覆盖到TextureView上,你可以参考一下
DanmakuView
https://github.com/Bilibili/DanmakuFlameMaster
from androidinstantvideo.
我是想添加个时间信息,每隔一秒更新一下。还有问一下,把录制视频保存到本地.mp4的话在哪里处理。你现在保存的是.flv格式。
from androidinstantvideo.
哦哦,那你可以先把每个数字变成bitmap,一个9个,所以还好不会耗性能。
MP4我没做啊...你可以自己做,用Android自己的MediaMuxer就可以了。
from androidinstantvideo.
大神,问一下,GLsurfaceView 支持添加图片之类的吗?我看你用的是TexttureView
from androidinstantvideo.
@xulingchung2016 GLSurfaceView 作为 View 的话有类似 GLTextureView 的功能。不过在视频这一块,因为要共享SurfaceTexture给Camera,所以只能支持TextureView,不支持GLSurfaceView。
from androidinstantvideo.
大神,问下 我继承了IMuxer 把 video 和 audio 单独保存 用potplayer 播放 H264 能播放 , acc 不能 播放 , 请问下什么原因 ,而且 点击停止 报错了 ![default](https://user-images.githubusercontent.com/32259392/30798479-6c3fd438-a20c-11e7-9440-fd2356e14f75.png) 我刚接触这一块,请大神帮忙指点一二
from androidinstantvideo.
@baiyangyan 能另外开个issue吗?另外我的例子能跑通吗?
from androidinstantvideo.
Related Issues (20)
- 如何获取预览图像保存到bitmap HOT 3
- 如何实现预览的分辨率和录像的分辨率不同 HOT 2
- test_mp4_encode.mp4 doesn't contain White text label HOT 3
- TestCameraAndVideoActivity - does it record in video file? HOT 1
- 请问是否可以加入预录的功能 HOT 1
- TestCameraAndVideoActivity录制的h264格式视频没有声音 HOT 2
- Camera records video quite bad (drops frames), video isn't smooth HOT 7
- streamPublisher 为null的问题 HOT 1
- 第二次录制mp4muxer出现黑屏问题。 HOT 2
- Stream RTMP Problem HOT 2
- 有考慮將相機API升級至 camera2嗎 HOT 1
- Need help: Using surface created in SurfaceTextureCreatedListener to display screen using MediaProjection HOT 7
- 请教一下怎么加Text 文字水印? HOT 1
- 请问No buffer available 无可用缓冲区怎么解决?
- 图片转视频 HOT 1
- 请问硬编码的性能 HOT 1
- 视频添加图层 HOT 15
- 视频预览方向不对 HOT 5
- 添加时间水印? HOT 2
- How to draw list of videos over camera preview and record simultaneously? HOT 6
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 androidinstantvideo.