Go to advanced search

by lagurus
Fri Jan 03, 2014 10:55 am
Forum: Camera board
Topic: GPU based background subtraction
Replies: 0
Views: 1029

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: 1382

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.
by lagurus
Sat Dec 21, 2013 9:34 pm
Forum: Camera board
Topic: Independent frame rate settings?
Replies: 3
Views: 1382

Independent frame rate settings?

Is somehow possible to set different frame rate for video port and for preview port?

I would like to use preview port for motion detection at maximal frame rate (30fps) and at the same time save H264 from video port at e.g. 2-3 fps.
by lagurus
Thu Dec 19, 2013 4:20 pm
Forum: Camera board
Topic: [Q] Multiple Resolution Encoding Simultaneously
Replies: 7
Views: 2004

Re: [Q] Multiple Resolution Encoding Simultaneously

I think the limitation is the max bitrate, rather than the framerate, so you could choose appropriate numbers to stay within the maximum bitrate. But I'll check with the people who know to see if I am right. I think that bigger limitation in pbill solution can be using of resizer to get required re...
by lagurus
Thu Dec 19, 2013 11:32 am
Forum: Camera board
Topic: [Q] Multiple Resolution Encoding Simultaneously
Replies: 7
Views: 2004

Re: [Q] Multiple Resolution Encoding Simultaneously

Interesting. Are you aware of any examples of use of the MMAL splitter component? I think wibble82 use splitter in his C++ api http://www.raspberrypi.org/phpBB3/viewtopic.php?p=442790#p442790 Try also his blog http://robotblogging.blogspot.co.uk/2013/10/pi-eyes-stage-4.html But anyway I don't think...
by lagurus
Mon Dec 02, 2013 3:53 pm
Forum: Camera board
Topic: is there a way to get from mmal to opengl texture
Replies: 47
Views: 15371

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

Yes, I'm working on it at the moment and got first frames out this evening. Should be quite a lot faster than bouncing the buffers via the ARM especially if the only texture required for the shader is the Y texture. Probably another week or two though as the "correct" approach is not 100% clear jus...
by lagurus
Fri Nov 15, 2013 9:12 am
Forum: Camera board
Topic: PoC: Poor man's high framerate full HD motion detection
Replies: 25
Views: 14881

Re: PoC: Poor man's high framerate full HD motion detection

News on the stream splitting - have managed to split the stream to segmented files. Unfortunately everything after the first file fails to play...will get the streams analysed tomorrow to see what's up. I had the same issue. It was needed to add on each file start something like "header" which come...
by lagurus
Thu Nov 14, 2013 8:41 pm
Forum: Camera board
Topic: is there a way to get from mmal to opengl texture
Replies: 47
Views: 15371

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

Thanks for posting the update to RaspiVid.c it looks good. As Dom and James say this is quite a tough use-case because the texture convert and GL render requires a 720p read, 720p write + 1080 write for GL framebuffer. It might be possible to tweak the RaspiTex to skip conversions if there is > 1 M...
by lagurus
Thu Nov 14, 2013 4:33 pm
Forum: Camera board
Topic: is there a way to get from mmal to opengl texture
Replies: 47
Views: 15371

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

Its actually Tim Gover who did all the work on this - Dom just pushed the code to the repo. I enouraged him. That's the important bit. :-P Oh, I didn't know it, then thanks again to Tim Gover. @lagurus if you link to your code we might be able to tell if the code is right or wrong. I included my Ra...
by lagurus
Thu Nov 14, 2013 11:43 am
Forum: Camera board
Topic: is there a way to get from mmal to opengl texture
Replies: 47
Views: 15371

Impact on H264 framerate

Thanks Dom for great work, I just adapted GL texture feature into raspivid . Everything seems to work, but when I activate GL (--gl switch), it has impact on H264 performance. In normal state for 1920x1080 I can get h264 file with 30 fps, but with GL only 24 fps (RaspiTex report approx.: 41 FPS) I u...
by lagurus
Mon Nov 11, 2013 8:50 pm
Forum: Camera board
Topic: Encoding Video & Taking Stills
Replies: 35
Views: 9157

Re: Encoding Video & Taking Stills

Output format is MMAL_ENCODING_I420, can be simple change in resizer component. But it looks that not all encoding format defined in mmal_encodings.h are supported. E.g. for change to RGB try to define encoding format for resizer output as: format->encoding = MMAL_ENCODING_RGBA; or format->encoding ...
by lagurus
Fri Nov 08, 2013 4:01 pm
Forum: Camera board
Topic: Encoding Video & Taking Stills
Replies: 35
Views: 9157

Re: Encoding Video & Taking Stills

In attachment is simple modification of raspivid.c (RaspiVid_Resize.c) which create H264 video as usual and on preview port is connected resizer and callback. Callback on resizer do nothing - just show info about incoming frame, images are resized to 320x240, no preview is showed. Similar it should ...
by lagurus
Thu Oct 31, 2013 3:32 pm
Forum: Camera board
Topic: Video injecter
Replies: 1
Views: 537

Video injecter

Does anybody know the function of MMAL_COMPONENT_DEFAULT_VIDEO_INJECTER component?

Thanks
by lagurus
Thu Oct 24, 2013 8:30 pm
Forum: Camera board
Topic: A c++ camera api
Replies: 35
Views: 25206

Re: A c++ camera api

Excellent writeup, thanks for doing this! The MMAL stuff seemed very opaque up til now but your page looks very clear on first read through. Given that the ARMv6 is rather limited in speed compared with the GPU, I'm curious about the possibility of doing some simple processing on low-res video, may...
by lagurus
Thu Oct 17, 2013 4:04 pm
Forum: Camera board
Topic: mmal face detection
Replies: 9
Views: 2384

Re: mmal face detection

I've never tried them on the Raspi. Might be worht someone having a go. If I have time I might try to incorporate it in to raspistill - no promises! I modified RaspiCamControl.c and added following code int raspicamcontrol_set_facedetection( MMAL_COMPONENT_T *camera ) { int nReturn = 0; MMAL_PARAME...
by lagurus
Wed Oct 09, 2013 12:23 pm
Forum: Camera board
Topic: mmal face detection
Replies: 9
Views: 2384

mmal face detection

In mmal_parameters_camera.h are several definitions like

Code: Select all

MMAL_PARAMETER_FACE_TRACK
MMAL_PARAMETER_FACE_TRACK_RESULTS
...
It looks like some sort of face detection functions.

Has any sense to play with these functions and check if works?
Have someone any experience with them?
by lagurus
Mon Oct 07, 2013 12:15 pm
Forum: Camera board
Topic: Encoding Video & Taking Stills
Replies: 35
Views: 9157

Re: Encoding Video & Taking Stills

I still don't have any progress with writing video and taking stills (on still/capture port) at the same time. But I bypass it when I misuse preview port from which directly take uncompressed data (using callback on preview port) copy them and use another thread to write data to disk/analyze image. ...
by lagurus
Mon Oct 07, 2013 12:04 pm
Forum: Camera board
Topic: LIVE555 - RTSP server
Replies: 20
Views: 44302

Re: LIVE555 - RTSP server

sorry for heading slightly off topic, but how hard would it be to modify the script to accept HTTP streams from a different source? More specifically I'd like to re-stream an audio stream (mp3 or aac) through my Rpi using your script + live555 rtsp server. Personally I don't have any experience wit...
by lagurus
Tue Sep 10, 2013 1:32 pm
Forum: Camera board
Topic: LIVE555 - RTSP server
Replies: 20
Views: 44302

Re: LIVE555 - RTSP server

To increase OutPacketBuffer::maxSize try to modify testRaspi.cpp and add

Code: Select all

OutPacketBuffer::maxSize = 106000;
before is created RTSP server, then use make
by lagurus
Mon Aug 26, 2013 1:34 pm
Forum: Camera board
Topic: Encoding Video & Taking Stills
Replies: 35
Views: 9157

Re: Encoding Video & Taking Stills

I have tried to modify RaspiVid.c to take stills,in modification is video and still encoders created and ports connected without any erros. Video is taken but when is for first time called function to take stills: mmal_port_parameter_set_boolean(camera_still_port, MMAL_PARAMETER_CAPTURE, 1) is video...
by lagurus
Tue Aug 13, 2013 3:21 pm
Forum: Camera board
Topic: LIVE555 - RTSP server
Replies: 20
Views: 44302

Re: LIVE555 - RTSP server

yeme wrote:This works in VLC for me.

Is it possible to view this output in a webpage (via http)? I do not understand the tunneling piece.
It is not possible to show RTSP stream directly in webpage ( I don't know about any simple solution).
by lagurus
Thu Aug 08, 2013 10:20 am
Forum: Camera board
Topic: LIVE555 - RTSP server
Replies: 20
Views: 44302

Re: LIVE555 - RTSP server

I have used vlc version 2.04 and 2.07. Please go in VLC to Tools/Messages (Ctrl+M) and set verbosity level to 2 (debug) and send logs. Also you can try HTTP tunneled RTSP, in your case rtsp://192.168.0.2:8000/h264 If no luck try to use: mplayer -v rtsp://192.168.0.2:8000/h264 -rtsp-stream-over-http ...
by lagurus
Wed Aug 07, 2013 8:38 am
Forum: Camera board
Topic: LIVE555 - RTSP server
Replies: 20
Views: 44302

LIVE555 - RTSP server

Hi, I've implemented simple RTSP server which use LIVE555 libraries. If you are interested you can try it. First you need to install LIVE555: 1. On PI download latest LIVE555 version, e.g. wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz and extract it -> it should create live dire...

Go to advanced search