Git Product home page Git Product logo

Comments (7)

ChillingVan avatar ChillingVan commented on May 25, 2024

要添加文本的话,只能先用普通的Canvas把文本写到一个bitmap里面,再用canvas.drawBitmap。在
https://github.com/ChillingVan/android-openGL-canvas、
这里的 CompareCanvas 里有画文字的例子。
如果你的添加文字的数量不用很多的话,没有性能影响,可以用这种方法,否则会影响性能。

另外如果你是追求弹幕那种效果的话,建议你用一个普通的View覆盖到TextureView上,你可以参考一下
DanmakuView
https://github.com/Bilibili/DanmakuFlameMaster

from androidinstantvideo.

xulingchung2016 avatar xulingchung2016 commented on May 25, 2024

我是想添加个时间信息,每隔一秒更新一下。还有问一下,把录制视频保存到本地.mp4的话在哪里处理。你现在保存的是.flv格式。

from androidinstantvideo.

ChillingVan avatar ChillingVan commented on May 25, 2024

哦哦,那你可以先把每个数字变成bitmap,一个9个,所以还好不会耗性能。
MP4我没做啊...你可以自己做,用Android自己的MediaMuxer就可以了。

from androidinstantvideo.

xulingchung2016 avatar xulingchung2016 commented on May 25, 2024

大神,问一下,GLsurfaceView 支持添加图片之类的吗?我看你用的是TexttureView

from androidinstantvideo.

ChillingVan avatar ChillingVan commented on May 25, 2024

@xulingchung2016 GLSurfaceView 作为 View 的话有类似 GLTextureView 的功能。不过在视频这一块,因为要共享SurfaceTexture给Camera,所以只能支持TextureView,不支持GLSurfaceView。

from androidinstantvideo.

baiyangyan avatar baiyangyan commented on May 25, 2024

大神,问下 我继承了IMuxer 把 video 和 audio 单独保存 用potplayer 播放 H264 能播放 , acc 不能 播放 , 请问下什么原因 ,而且 点击停止 报错了 ![default](https://user-images.githubusercontent.com/32259392/30798479-6c3fd438-a20c-11e7-9440-fd2356e14f75.png) 我刚接触这一块,请大神帮忙指点一二

from androidinstantvideo.

ChillingVan avatar ChillingVan commented on May 25, 2024

@baiyangyan 能另外开个issue吗?另外我的例子能跑通吗?

from androidinstantvideo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.