Go to advanced search

by lagurus
Thu Dec 06, 2018 1:59 pm
Forum: Camera board
Topic: Callback on video port
Replies: 1
Views: 490

Callback on video port

Hello all, I've been trying to use callback on video port and then put data directly to encoder (without mmal port connections) and with use of encoding MMAL_ENCODING_OPAQUE. For MMAL_ENCODING_H264 and MMAL_ENCODING_MJPEG it works. But if is used MMAL_ENCODING_JPEG (and MMAL_COMPONENT_DEFAULT_IMAGE_...
by lagurus
Sun Dec 02, 2018 10:22 pm
Forum: Camera board
Topic: improve quality of jpeg captured from mjpeg stream
Replies: 50
Views: 7607

Re: improve quality of jpeg captured from mjpeg stream

I think I've found the bug in the MJPEG encoder that is causing it to lock up. I'm sort of surprised it worked as well seeing as it is quite such a shocker! I'll see what I can do about fixing it up. Just note: I just debug strange behaviour with MJPEG codec which lock camera module and only restar...
by lagurus
Tue Nov 28, 2017 10:14 pm
Forum: Camera board
Topic: VCSM limitation
Replies: 3
Views: 954

Re: VCSM limitation

I think that simplest for test will be modify fb_width or fb_height (default set to 1024x1024) in vcsm_square.c https://github.com/raspberrypi/userland/blob/bb15afe33b313fe045d52277a78653d288e04f67/host_applications/linux/apps/raspicam/gl_scenes/vcsm_square.c#L123 than run raspistill -t 9999999 --pr...
by lagurus
Tue Nov 28, 2017 10:17 am
Forum: Camera board
Topic: VCSM limitation
Replies: 3
Views: 954

VCSM limitation

Hi all, I am trying to re-implement vcsm_square example from RaspiStill to my project. Everthing seems to work, I am able to work with GPU memory "directly" and don't use "slow" glReadPixels. But I have found quite limiting condition : VCSM buffer dimensions must be a power of two. See: https://gith...
by lagurus
Wed Sep 17, 2014 1:22 pm
Forum: Camera board
Topic: Can't change frame rate
Replies: 7
Views: 3588

Re: Can't change frame rate

If you use last firmware, try to use older, e.g. firmware from Aug 12, 2014

Code: Select all

rpi-update  3d99bfb69460105c91e688a6031971e641bff354
and check again the results.
by lagurus
Mon Sep 08, 2014 9:38 am
Forum: Camera board
Topic: Developer please come in - Rpi-update slow down capturing
Replies: 15
Views: 2717

Re: Developer please come in - Rpi-update slow down capturin

I have noticed, also some odd behavior which begins from firmware from 21/8/2014 (last working version was also firmware from 12/8/2014). But my problems are different, they are connected with max.fps at 1920x1080, see more in http://www.raspberrypi.org/forums/viewtopic.php?p=604104&sid=4dac45b08269...
by lagurus
Thu Aug 28, 2014 10:38 am
Forum: Camera board
Topic: Performance problem
Replies: 5
Views: 1271

Re: Performance problem

Thank you for suggestions. Maybe two of your Pis have slow SD cards which can't keep up with the write-rate? :? I made tests with same SD card with same data,each PI separately. Same results if is used raspivid ... -o /dev/null Are all your Pis similar ages? The same Models (A/B/B+), same revisions?...
by lagurus
Wed Aug 27, 2014 9:23 pm
Forum: Camera board
Topic: Performance problem
Replies: 5
Views: 1271

Re: Performance problem

Now I have made next tests. I have used official Raspbian (from 2014-06-20). Then was made: apt-get update apt-get upgrade rpi-update Personally I have 3 RaspiPi + 3 cameras (2 normal and 1 noir). 2 RaspPI have problems with last firmware, doesn't matter which camera was used. 1 RaspPI works fine wi...
by lagurus
Wed Aug 27, 2014 10:01 am
Forum: Camera board
Topic: Performance problem
Replies: 5
Views: 1271

Performance problem

From firmware from Aug 21, 2014 (995a4c011dd57031bb9290a40286439c9a05c2ed) is no more possible to achieve 1920x1080 with 30fps. Tested with raspivid command: raspivid -v -w 1920 -h 1080 -fps 30 -t 60000 -b 1000000 -o /tmp/aa.h264 and also saved video file has aprox. 20fps. /opt/vc/bin/mmal_vc_diag m...
by lagurus
Thu Jul 31, 2014 10:52 am
Forum: Camera board
Topic: Questions about Picam
Replies: 3
Views: 1327

Re: Questions about Picam

silviodelgado70 wrote:I have answered some of my own questions but i need help.
Can someone give me a link to an example of rendering with multiple shader passes using opengles in rpi?
Try to look at https://github.com/lagurus/userland_bgs.
by lagurus
Thu Jul 31, 2014 10:47 am
Forum: Camera board
Topic: Draw a white line in the center of video?
Replies: 10
Views: 3455

Re: Draw a white line in the center of video?

6by9 wrote: On my list of "nice things to do" is a GPU-side video_overlay component to add an overlay to the images as they pass through the pipe. That will be altering to the main images ...
Any progress in GPU-side overlay?
by lagurus
Fri May 23, 2014 9:01 am
Forum: OpenGLES
Topic: OpenGLES problem with GL_OES_EGL_image_external extension
Replies: 3
Views: 4089

Re: OpenGLES problem with GL_OES_EGL_image_external extensio

I have modified your code (see attachment). It's only one file (pong.c) which
causes the problems (I hope).

You can also look at https://github.com/lagurus/userland_bgs where I have used some shaders together.
by lagurus
Fri Apr 25, 2014 9:28 pm
Forum: Camera board
Topic: camera with opencv motion detection and recording
Replies: 8
Views: 7324

Re: camera with opencv motion detection and recording

Sorry, I'm slightly confused by your comment. You're setting both camera output[1] and video_encode input[0] to encoding MMAL_ENCODING_OPAQUE but not using a connection, and that is causing a crash? Before or after the first buffer is actually passed across? I'm assuming if you use a mmal_connectio...
by lagurus
Fri Apr 25, 2014 1:46 pm
Forum: Camera board
Topic: camera with opencv motion detection and recording
Replies: 8
Views: 7324

Re: camera with opencv motion detection and recording

Nice work, you have inspired me. Just some note - I wasn't able to achieve 1920x1080x30fps for video, maximum were only 22fps without any opencv processing (with opencv processing only 17fps). You can check test version: https://github.com/lagurus/rpi-mmal-opencv-modetect-test I was able to achieve ...
by lagurus
Thu Feb 20, 2014 4:29 pm
Forum: Camera board
Topic: Conversion from RGB to I420 using shaders
Replies: 1
Views: 1520

Conversion from RGB to I420 using shaders

Can anyone point me, how to convert RGB data into I420/YUV420 format using OpenGL ES shaders? First I need to take YUV data from RGB - it's simple - but then I am lost. I have seen many examples how to convert YUV420 -> RGB, but still none to make RGB -> YUV420 conversion. Is possible to do it all i...
by lagurus
Thu Feb 13, 2014 9:56 am
Forum: Camera board
Topic: How to add text-overlay with raspivid?
Replies: 31
Views: 30289

Re: How to add text-overlay with raspivid?

TESKAn wrote:I managed to get it working by displaying video from camera on one layer and drawing text with OGL on another layer.
Are you able to save H264 video with text-overlay (1920x1080 with 30fps)? Or you are talking "only" about displaying preview with
text-overlay?
by lagurus
Sat Feb 01, 2014 9:20 pm
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5139
Views: 1448758

Re: RPi Cam Web Interface

Could someone help me to change the source code so as to permanently change video fps to 25 from 30 as it is causing moving bands on recorded video. I'm also having banding problems (in the UK) so it would be interesting if this solves the problem. No time to test it, but is seems that 30fps is har...
by lagurus
Fri Jan 17, 2014 10:24 pm
Forum: Camera board
Topic: LIVE555 - RTSP server
Replies: 20
Views: 43213

Re: LIVE555 - RTSP server

Hi all, i have been trying to get this installed. the image im using is minibain as im trying to run it on a raspberry pi model A. When i follow the instructions and try to make i get this notice and it stops. cd liveMedia ; make make[1]: Entering directory `/home/live/liveMedia' c++ -c -Iinclude -...
by lagurus
Fri Jan 17, 2014 10:13 pm
Forum: Camera board
Topic: is there a way to get from mmal to opengl texture
Replies: 47
Views: 15032

Re: is there a way to get from mmal to opengl texture

I want to use data directly from "RGBX" texture (EGL_IMAGE_BRCM_MULTIMEDIA) and simultaneosly save H264 video. I have found that change of MMAL_PARAMETER_CAPTURE on camera_video_port also change orientation of RGBX texture - result is vertically flipped and it depends if is MMAL_PARAMETER_CAPTURE se...
by lagurus
Fri Jan 10, 2014 3:50 pm
Forum: Camera board
Topic: is there a way to get from mmal to opengl texture
Replies: 47
Views: 15032

Re: is there a way to get from mmal to opengl texture

No problem, glad to see this is giving a useful performance boost. I think the next thing I plan to look at is providing an alternative to glReadPixels by providing an API to create framebuffer-objects from memory mapped GPU memory. If there's other more useful improvements that could be made then ...
by lagurus
Tue Jan 07, 2014 9:12 pm
Forum: Camera board
Topic: Stereoscopic Raspberry Pi Camera ISSUE!
Replies: 49
Views: 21344

Re: Stereoscopic Raspberry Pi Camera ISSUE!

Sorry, what I meant is to duplicate just the camera output twice. I am not concerned for it to be 3d, I just need a single output from the CSi camera preview doubled side by side. But its been 2 weeks and I still haven't found a way to do it. If someone knows a way or can point me in a direction th...
by lagurus
Tue Jan 07, 2014 9:56 am
Forum: Camera board
Topic: camera -> egl texture path question
Replies: 13
Views: 7181

Re: camera -> egl texture path question

will it be available for raspivid any time soon? Some time ago I have made raspivid modification, which is able to save h264 video and apply some shader effect on live preview. But if you want to save h264 video WITH applied shader effect then it won't be possible (at least not for FullHD and 30fps).
by lagurus
Fri Jan 03, 2014 10:55 am
Forum: Camera board
Topic: GPU based background subtraction
Replies: 0
Views: 1014

GPU based background subtraction

If anyone is interested in you can try experimental background subtraction which can be used for
motion detection.

https://github.com/lagurus/userland

Please be aware that it is demo code only and can contain a lot of bugs.
by lagurus
Sun Dec 22, 2013 9:50 pm
Forum: Camera board
Topic: Independent frame rate settings?
Replies: 3
Views: 1367

Re: Independent frame rate settings?

jamesh wrote:I don't believe so. Note that the camera is going to be running at the max speed required and I'm not sure we can bin frames, but I'll check tomorrow.
Not necessary max speed, enough will be also something like 20-25fps.

Go to advanced search