Comments (4)
Hello,
You have a filter that allow you to crop the video as you want but this affect to stream, record and preview:
https://github.com/pedroSG94/RootEncoder/blob/master/app/src/main/java/com/pedro/streamer/utils/FilterMenu.kt#L158
from rootencoder.
Hello,
You have a filter that allow you to crop the video as you want but this affect to stream, record and preview: https://github.com/pedroSG94/RootEncoder/blob/master/app/src/main/java/com/pedro/streamer/utils/FilterMenu.kt#L158
Thank you very mush, I mean when I preview normal frame, and recording a normal video, at the same time record a new video with crop. Do you have any idea to resolve it?
from rootencoder.
Hello,
By default the library no allow record 2 videos at the same time. You can modify the library to do it but this could be difficult.
I think this could work:
- Create a new GlStreamInterface and a new VideoEncoder (of course you need to handle with lifecycle of both classes)
- Link VideoEncoder with GlStreamInterface (You can check StreamBase class)
- Add a SurfaceManager to OpenGlView and link that SurfaceManager to the GlStreamInterface created (similar to https://github.com/pedroSG94/RootEncoder/blob/master/library/src/main/java/com/pedro/library/view/OpenGlView.java#L277)
- Render the new SurfaceManager in draw method like others SurfaceManager
- Create a new AndroidMediaMuxer class
- Record the video using video data from the new VideoEncoder and reuse current audio data (duplicate the ByteBuffer is a good idea to avoid problems)
- Add the filter to GlStreamInterface
- You also need to do all code related with release all when you don't need it anymore
This feels difficult, so maybe the best idea is find a library that allow you modify the video as you want and create a new video modified when you call stopRecord.
from rootencoder.
Hello,
By default the library no allow record 2 videos at the same time. You can modify the library to do it but this could be difficult.
I think this could work:
- Create a new GlStreamInterface and a new VideoEncoder (of course you need to handle with lifecycle of both classes)
- Link VideoEncoder with GlStreamInterface (You can check StreamBase class)
- Add a SurfaceManager to OpenGlView and link that SurfaceManager to the GlStreamInterface created (similar to https://github.com/pedroSG94/RootEncoder/blob/master/library/src/main/java/com/pedro/library/view/OpenGlView.java#L277)
- Render the new SurfaceManager in draw method like others SurfaceManager
- Create a new AndroidMediaMuxer class
- Record the video using video data from the new VideoEncoder and reuse current audio data (duplicate the ByteBuffer is a good idea to avoid problems)
- Add the filter to GlStreamInterface
- You also need to do all code related with release all when you don't need it anymore
This feels difficult, so maybe the best idea is find a library that allow you modify the video as you want and create a new video modified when you call stopRecord.
Sorry for reply late, I use OpenCV clip and record frame at the same time. For now it seems working : D
from rootencoder.
Related Issues (20)
- Recorded Video Changing the video quality bitrate HOT 3
- Is there any code sample to use it with android audio recording and broadcast to RTSP server HOT 1
- RuntimeException when stopStream HOT 7
- standalone local android (rtsp server) HOT 2
- 非常给力! Any thoughts on adding support for H.265 software encoding?Like X265. HOT 3
- how to record mp4 files in audio format g711a HOT 2
- java.lang.IllegalArgumentException: Unknown message type byte: 1D HOT 2
- retry server1 HOT 9
- Retry Error configure stream, setup video 451 HOT 1
- Repeatedly Creating RtspServerStream and Encountering 'Create VideoEncoder failed' Issue HOT 1
- screen destory HOT 1
- Hello I'm using OpenGlView and want to set the Hue of the camera how to write. HOT 1
- App crashing while migrating to Android 14 from Android 13 HOT 10
- Recording video with multiple part, screen stuck HOT 7
- How to keep streaming when rotating device HOT 6
- RTMP Authentication not working HOT 3
- Switching between Rtmp stream audio and video HOT 7
- How to play multiple files with RtspServerFromFile HOT 6
- Echo Problem 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 rootencoder.