I've been deveoping an android app (using ChatGPT - I have no real android development knowledge!) which animates a dog's mouth through the camera feed. I had the app working okay but with some latency between the camera feed and the overlay (using CameraX and a PreviewView), so I tried to update it to an offscreen rendering approach, using an EGL context and MediaCodec surface to render the camera feed plus overlays into a single composited output.
However, the I have not implemented this correclty and the camera feed is just showing a black screen.
Here's ChatGPT's summary of what we had originally (working) and what we changed it to. Both of these approaches are saved on different github branches which you will have access to. You can see the previously working version on the master branch, and the newly updated (not working) version on a test branch.
What We Had Originally - An Android app (Kotlin) using CameraX and a PreviewView to display the live camera feed. - A BoundingBoxOverlay custom View drawn on top for YOLO pose detection (dog’s mouth, eyes, etc.). - We wanted to animate the dog’s mouth in sync with audio but were limited by the traditional overlay.
What We Changed It To Offscreen Rendering Approach: - Created an EGL context and MediaCodec surface (via OffscreenRenderer.kt) to render the camera feed plus overlays into a single composited output. - The camera feed is now provided by a SurfaceTexture created from an external OES texture (rather than using PreviewView). - CameraX is configured to output frames to that SurfaceTexture. - A custom pipeline composites the camera and any overlays (animated mouth, etc.) in OpenGL, then encodes to a video file with MediaCodec.
What We’re Trying to Achieve A Snapchat-like pipeline: - Grab the camera feed directly via a SurfaceTexture (external OES texture). - Apply real-time overlays/filters (like mouth animation, hats, glasses) in OpenGL. - Composite everything offscreen and encode it into a video file (for recording). - Avoid the performance constraints of standard Android Views by relying on OpenGL compositing (similar to Snapchat filters).
Despite these changes, the feed currently displays a black screen. We suspect an issue with the GL pipeline, resolution mismatch, or camera frames not drawing as intended.
Goal: Fix the offscreen renderer so that camera frames plus overlays appear in real time, and video recording also works as expected.
Azure Infrastructure Architect Needed Category: Amazon Web Services, Azure, Cloud Computing, DevOps, Infrastructure Architecture, Terraform, Windows Server Budget: min $50 USD
07 Nov 2025 17:04 GMT
Mobile App Build Category: API Development, Backend Development, Flutter, IPhone, Mobile App Development, PHP, React Native Budget: $250 - $750 USD
07 Nov 2025 17:03 GMT
Web Developer for Trading Analytics Dashboard Category: API Integration, Data Visualization, JavaScript, Software Architecture, Solana, Web Development, Web3.js Budget: $250 - $750 USD
07 Nov 2025 17:03 GMT
WordPress & SEO Expert (Website Optimization & Ranking) Category: Analytics, Content Strategy, Conversion Rate Optimization, Internet Marketing, Link Building, SEO, Web Development, Website Audit, Website Optimization, WordPress Budget: ₹600 - ₹1500 INR
07 Nov 2025 17:03 GMT
help me to Get and guide me to get amazon giftcards Category: Account Management, Affiliate Marketing, Amazon, Customer Experience, Customer Service, Digital Marketing, Market Research, Payment Gateway Integration, Payment Processing, Sales Budget: $30 - $250 USD
07 Nov 2025 17:03 GMT
Lead-Focused Google & Social Ads Category: Digital Marketing, Facebook Ads, Google Ads, Google Adwords, Google Analytics, Instagram Ads, Internet Marketing, Search Engine Marketing (SEM) Budget: £250 - £750 GBP
Russian Tutor Blog Design Category: CMS, HTML, PHP, Web Design, Web Development, Webflow, WordPress Budget: $250 - $750 USD
07 Nov 2025 17:00 GMT
Broker OI Webhook Integration Category: API Development, JavaScript, JSON, Node.js, PHP, Pine Script, Python, Software Architecture Budget: ₹600 - ₹1500 INR
07 Nov 2025 17:00 GMT
Clean Startup Plan Formatting Category: Business Plan Writing, Business Writing, Editing, Financial Modeling, Microsoft Word, Print Design, Proofreading, Typography Budget: $30 - $250 USD
Postare Anunțuri Job Instagram/TikTok Category: Canva, CapCut, Content Creation, Content Strategy, Graphic Design, Instagram Marketing, Social Media Management, Video Editing Budget: $15 - $25 USD
07 Nov 2025 16:59 GMT
Google Ads PPC Call Training Category: Digital Marketing, Google Ads, Google Adwords, Google Analytics, Internet Marketing, PPC Marketing, Sales, Training Budget: ₹12500 - ₹37500 INR
SacAnime 3-Day Livestream Operator Category: Content Creation, English Grammar, Event Management, Social Media Management, Twitch, Video Broadcasting, Video Editing, Video Production, Video Streaming, Videography Budget: $250 - $750 USD