Go to advanced search

by TESKAn
Thu Feb 13, 2014 10:39 am
Forum: Camera board
Topic: How to add text-overlay with raspivid?
Replies: 31
Views: 30276

Re: How to add text-overlay with raspivid?

Only display text over video preview. To be able to save video with overlay, you should convert video to OGL texture and use it on some surface and then save that as video. I got that working too with a ugly hack by combining video - to - texture demo and raspivid, but it did not work in real - time...
by TESKAn
Thu Feb 13, 2014 10:38 am
Forum: Camera board
Topic: How to add text-overlay with raspivid?
Replies: 31
Views: 30276

Re: How to add text-overlay with raspivid?

Double post...
by TESKAn
Wed Feb 12, 2014 2:27 pm
Forum: Camera board
Topic: How to add text-overlay with raspivid?
Replies: 31
Views: 30276

Re: How to add text-overlay with raspivid?

I managed to get it working by displaying video from camera on one layer and drawing text with OGL on another layer.
by TESKAn
Thu Aug 15, 2013 8:13 am
Forum: Camera board
Topic: How to add text-overlay with raspivid?
Replies: 31
Views: 30276

Re: How to add text-overlay with raspivid?

I have similar thoughts - save flight data and overlay it later if required. After all, we have 16 GB SD card that shouldn't have a problem storing all the flight information :) .
by TESKAn
Tue Aug 13, 2013 4:01 pm
Forum: Camera board
Topic: How to add text-overlay with raspivid?
Replies: 31
Views: 30276

Re: How to add text-overlay with raspivid?

You asked for it ;) . You can check it here: https://github.com/TESKAn/hello_camera_teapot The code is hacked together, terribly (or not at all) commented, but should work if you compile and run it. Or just run the binary ;) . Currently program shows 3D navball and couple of info panels, in my case ...
by TESKAn
Tue Aug 13, 2013 2:01 pm
Forum: Camera board
Topic: How to add text-overlay with raspivid?
Replies: 31
Views: 30276

Re: How to add text-overlay with raspivid?

Text can be generated and displayed with open GL, so GPU is doing all the work. 1. Camera -> GPU (set up overlay) -> SD 2. Camera -> GPU -> SD -> any soft + open GL -> GPU (set up text-overlay) -> SD I am talking about optimization by first way The way I am doing it now the overlay is only on the p...
by TESKAn
Tue Aug 13, 2013 12:41 pm
Forum: Camera board
Topic: How to add text-overlay with raspivid?
Replies: 31
Views: 30276

Re: How to add text-overlay with raspivid?

Text can be generated and displayed with open GL, so GPU is doing all the work.
by TESKAn
Sun Jul 21, 2013 6:46 pm
Forum: Camera board
Topic: Frame as OpenGL texture
Replies: 6
Views: 1808

Re: Frame as OpenGL texture

I played with this a while back. First attempt was to hack together raspivid and hello_videocube by passing encoded data from raspivid to hello_videocube. It worked, but was slow, only able to handle low-res and had a terribile lag. Second attempt was trying to get camera working with OMX components...
by TESKAn
Wed Jul 17, 2013 6:46 am
Forum: Camera board
Topic: Video Overlay
Replies: 15
Views: 4020

Re: Video Overlay

I've been playing with this idea for some time now and currently am using code from raspivid to activate camera and put live image on screen, then i use OGL ES with clear color alpha set to 0 to draw 3D objects over the screen. It works quite well, you only have to make shure that video preview laye...
by TESKAn
Wed Jun 19, 2013 6:47 am
Forum: Camera board
Topic: Video Overlay
Replies: 15
Views: 4020

Re: Video Overlay

One possibility is to use camera as source for EGL render component. Then you have live video as texture and can build HUD in 3D with OGL ES. Other possibility is to use raspivid code to display video and then you paint over 3D HUD with OGL ES. If we have 3D processing power, why not use it to make ...
by TESKAn
Tue May 21, 2013 8:19 pm
Forum: Camera board
Topic: How to add text-overlay with raspivid?
Replies: 31
Views: 30276

Re: How to add text-overlay with raspivid?

There is a demo code that plays a video file on a OGL ES teapot. Currently it works like: File -> OMX decode -> texture, and PiCam is CamModule -> Encoder -> File. If it is possibile to skip "File" stage or even "Encoder" and "Decoder" stages, then you have a texture that displays live video from ca...

Go to advanced search