Comments (6)
You can check the example MultiTextureActivity or MergeVideoActivity in
https://github.com/ChillingVan/android-openGL-canvas
I have added feature last week.
from androidinstantvideo.
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.
@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.
I have added the example of Multi Texture. Check the TestMp4MuxerActivity
from androidinstantvideo.
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.
@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)
- 如何获取预览图像保存到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
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.