Git Product home page Git Product logo

Comments (6)

ChillingVan avatar ChillingVan commented on May 25, 2024

You can check the example MultiTextureActivity or MergeVideoActivity in
https://github.com/ChillingVan/android-openGL-canvas
I have added feature last week.

from androidinstantvideo.

sumitatcs avatar sumitatcs commented on May 25, 2024

I checked those examples but I have not been able to figure out how to simultaneously record using the encoder. How do i proceed to integrate the encoder with multitexture?

from androidinstantvideo.

ChillingVan avatar ChillingVan commented on May 25, 2024

@sumitatcs Your encoder can provide a Surface right? Then you can pass the surface to MultiTexOffScreenCanvas. And when MultiTexOffScreenCanvas draws, what it draws will output to encoder then the encoder can produce video frames.

Unfortunally, this AndroidInstantVideo lib has not integrated the MultiTexOffScreenCanvas. You can wait or DIY. Maybe tomorrow I will integrate it.

from androidinstantvideo.

ChillingVan avatar ChillingVan commented on May 25, 2024

I have added the example of Multi Texture. Check the TestMp4MuxerActivity

from androidinstantvideo.

inventionsbyhamid avatar inventionsbyhamid commented on May 25, 2024

I am trying to do something similar but with a list of videos. I am encountering android.media.MediaCodec$CodecException: Error 0xffffffde. What I did was
set InitialTextureCount for CameraPreviewTextureView to videoList size + 1, similarly for streampublisher, creating list of mediaplayerhelpers and surfaces for videos and putting the corresponding play/stop events for all of the mediaplayerhelpers in activity callbacks like in example. What I am not sure is when to call addProducedGLTexture to add textures for multiple videos.

from androidinstantvideo.

ChillingVan avatar ChillingVan commented on May 25, 2024

@inventionsbyhamid I think you need not to call addProducedGLTexture since you have set initial count and your media list size is fixed.
You should be able to get the producedTexture through surfaceCreatedListener.
Does the MultiTex sample work? If it works, you can add more media player and add initialCount. If it works, you may be able to find why yours does not work.

Or you can upload your demo code here.

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.