Comments (2)
The
SubtitleView
is not an option cause off screen rendering is required in this case.
Reading slightly between the lines here, are you trying to render subtitles as part of a batch transformation of the video?
I think the Media3 Transformer library would be the right tool for that (maybe you're already using it) - but I don't think it currently has support for rendering Cue
objects.
If I've understood the request correctly we can use this issue to track it as a potential enhancement.
from media.
@icbaker
Thanks for reply
Yes. I need to draw the video and selected subtitles into separate SurfaceTexture
s, and then process them further in subsequent steps. After that, blend them and complete the screen rendering. I found SubtitlePainter
and part of CanvasSubtitleOutput
are very helpful. However they are private apis. Perhaps the best way for now is to just copy them into my project and make the necessary changes.
from media.
Related Issues (20)
- Support working bandwidth estimator in blocking media segment of LL-HLS
- How do I detect if media item transition has been triggered from next or previous seek? HOT 2
- IMA DAI SDK indicates AD_BREAK_ENDED before ad playback completes HOT 4
- Black screen displayed for DRM content HOT 2
- Allow changing SNTP client timeout HOT 2
- Player gets stuck in the "loading" state after seekToNext/Prev MediaItem HOT 7
- PlayerControlView will show as minimal mode when height is set to wrap_content HOT 2
- How to play downloaded content with a player in a MediaSession(Service)? HOT 2
- Is there support of sleep timer? HOT 2
- player.addMediaItems or player.setMediaItems takes too much time HOT 3
- "onSurfaceTextureSizeChanged" will not called with new size when use Video Effects.
- NetworkTypeObserver makes binding calls on mainthread by default HOT 2
- Getting the decoded from ExoPlayer in advance HOT 2
- Playing a song using MediaSessionService randomly turns on and off bluetooth for some reason on Android 11. HOT 2
- Current application thread check for player.createMessage
- Creating a perpetually loading MediaItem
- HttpMediaDrmCallback setKeyRequestProperty PSSH name for header request
- Media resumption results in DeadObjectException
- Libflac decoder crash: flac_jni.cc (NewStringUTF)
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 media.