Go to advanced search

by gagle
Fri Jan 30, 2015 11:12 pm
Forum: Camera board
Topic: omxcam - OpenMAX camera abstraction layer
Replies: 54
Views: 16805

Re: omxcam - OpenMAX camera abstraction layer

Very frozen, like the movie. Petrified. The development was VERY slow, I simply couldn't wait weeks to get answers. The development was by trial and error and it was a big effort for my part and with my limited knowledge about the topic to get the things working. Also, in July, there wasn't support ...
by gagle
Sat Aug 09, 2014 3:12 pm
Forum: Camera board
Topic: What features/issues to address?
Replies: 96
Views: 25484

Re: What features/issues to address?

Wow! thanks 6by9, those are too many changes. Thanks for mentioning the IL mapping.
by gagle
Wed Aug 06, 2014 8:41 am
Forum: Camera board
Topic: Achieving real time grayscale image data
Replies: 6
Views: 3559

Re: Achieving real time grayscale image data

You can try my lib omxcam: https://github.com/gagle/raspberrypi-om ... /yuv/yuv.c

PD: it's unstable, api changes can occur.
by gagle
Sat Aug 02, 2014 10:27 am
Forum: Camera board
Topic: What features/issues to address?
Replies: 96
Views: 25484

Re: What features/issues to address?

There are a lot of image filters that work with stills but don't work with videos. Is it possible to implement all of them (the ones that are already implemented for stills)?. I could do a list. AFAIK all the filters/effects via OMX_IMAGEFILTERTYPE work. There was a quirky one with negative that th...
by gagle
Fri Aug 01, 2014 6:19 pm
Forum: Camera board
Topic: What features/issues to address?
Replies: 96
Views: 25484

Re: What features/issues to address?

There are a lot of image filters that work with stills but don't work with videos. Is it possible to implement all of them (the ones that are already implemented for stills)?. I could do a list.
by gagle
Fri Aug 01, 2014 10:09 am
Forum: Camera board
Topic: What features/issues to address?
Replies: 96
Views: 25484

Re: What features/issues to address?

Turn on/off the camera LED at any time.
by gagle
Fri Aug 01, 2014 9:33 am
Forum: Camera board
Topic: [OpenMAX] H264 settings and DRC
Replies: 20
Views: 5424

Re: [OpenMAX] H264 settings and DRC

DRC only works in still mode.

OMX_IndexConfigDynamicRangeExpansion - OMX_CONFIG_DYNAMICRANGEEXPANSIONTYPE
by gagle
Thu Jul 31, 2014 5:42 pm
Forum: Camera board
Topic: omxcam - OpenMAX camera abstraction layer
Replies: 54
Views: 16805

Re: omxcam - OpenMAX camera abstraction layer

Ok, thanks Dave. :D

Tomorrow I'll take a look to the DRC parameter.

EDIT: ok, done, but DRC only works in still mode.
by gagle
Tue Jul 29, 2014 4:50 pm
Forum: Camera board
Topic: omxcam - OpenMAX camera abstraction layer
Replies: 54
Views: 16805

Re: omxcam - OpenMAX camera abstraction layer

Motion vectors now can be captured. The bad news are, I have no clue about motion vectors: http://picamera.readthedocs.org/en/release-1.6/recipes2.html?highlight=motion#recording-motion-vector-data The last thing I need to do is to expose the DRC parameter. Then, I "only" need to do a refactor of th...
by gagle
Tue Jul 29, 2014 2:41 pm
Forum: Camera board
Topic: omxcam - OpenMAX camera abstraction layer
Replies: 54
Views: 16805

Re: omxcam - OpenMAX camera abstraction layer

Very very good. Things are going well. I've fixed the websocket client/server and now it works but sometimes I receive a segmentation fault in the server when I try to write to the file in the client, very weird. Perhaps the SD card write speed is too low. https://github.com/gagle/node-omxcam/tree/m...
by gagle
Tue Jul 29, 2014 10:06 am
Forum: Camera board
Topic: [OpenMAX] H264 settings and DRC
Replies: 20
Views: 5424

Re: [OpenMAX] H264 settings and DRC

OMX_IndexParamBrcmVideoAVCInlineHeaderEnable Omg... how embarrassing... I need a second pair of glasses. :oops: Thanks to all of you, guys ;) . SPS/PPS exposed successfully... it makes it easy to split into multiple files at any I-frame if you take the header bytes too. So true. Without SPS/PPS for...
by gagle
Mon Jul 28, 2014 5:20 pm
Forum: Camera board
Topic: [OpenMAX] H264 settings and DRC
Replies: 20
Views: 5424

Re: [OpenMAX] H264 settings and DRC

Inline SPS/PPS Certainly the buffer flag OMX_BUFFERFLAG_CODECCONFIG indicates that the buffer is a SPS or PPS frame, but... it's just an informative flag. typedef struct OMX_PARAM_CODECCONFIGTYPE { OMX_U32 nSize; OMX_VERSIONTYPE nVersion; OMX_U32 nPortIndex; OMX_U32 bCodecConfigIsComplete; OMX_U8 nD...
by gagle
Mon Jul 28, 2014 11:40 am
Forum: Camera board
Topic: [OpenMAX] H264 settings and DRC
Replies: 20
Views: 5424

Re: [OpenMAX] H264 settings and DRC

Yes, I'm already setting the fps when using the mkv tools.

AVC profile exposed successfully. The struct was OMX_VIDEO_PARAM_AVCTYPE and OMX_VIDEO_AVCPROFILETYPE. A lot of parameters can be configured, but for now I'll simply expose the profile, like in raspivid.
by gagle
Mon Jul 28, 2014 9:18 am
Forum: Camera board
Topic: [OpenMAX] H264 settings and DRC
Replies: 20
Views: 5424

Re: [OpenMAX] H264 settings and DRC

Thanks, ethanol100! :D QP successfully exposed, but I've noticed one issue that is both in raspivid and in openmax . /opt/vc/bin/raspivid -t 2000 -o video.h264 -b 0 -qp 10 This records a 2s video, 1920x1080 @30fps, but when I wrap the file in a mkv file the file duration is less than a second. This ...
by gagle
Sun Jul 27, 2014 5:29 pm
Forum: Camera board
Topic: [OpenMAX] H264 settings and DRC
Replies: 20
Views: 5424

Re: [OpenMAX] H264 settings and DRC

I've been doing some tests with the quantization parameter and I have some questions: 1. The field nQpB doesn't allow any modification, it returns an error. Why? Just curious. 2. What are the maximum values of nQpI and nQpP? From my tests, when nQpP is higher than 50, the video freezes. I'm not sure...
by gagle
Sat Jul 26, 2014 3:10 pm
Forum: Camera board
Topic: omxcam - OpenMAX camera abstraction layer
Replies: 54
Views: 16805

Re: omxcam - OpenMAX camera abstraction layer

C vs Nodejs, bench width: 640 height: 480 frames: 30 C set up h264: 323 ms tear down h264: 58 ms video rgb: 28.17 fps (1065 ms) video yuv (npt): 27.86 fps (1077 ms) Nodejs set up h264: 326 ms tear down h264: 46 ms video rgb: 17.28 fps (1736 ms) -63% video yuv: 20.59 fps (1457 ms) -35% The setup and ...
by gagle
Mon Jul 21, 2014 8:15 am
Forum: Camera board
Topic: [OpenMAX] H264 settings and DRC
Replies: 20
Views: 5424

Re: [OpenMAX] H264 settings and DRC

Just guessing, never looked at openmax before ;) quantisationParameter: OMX_VIDEO_PARAM_QUANTIZATIONTYPE which has the quantization properties for I and P frames: nQpI and nQpP profile: OMX_VIDEO_MPEG4PROFILETYPE inline: OMX_BUFFERFLAG_CODECCONFIG And one question to SEI, what additional data do yo...
by gagle
Sun Jul 20, 2014 5:40 pm
Forum: Camera board
Topic: [OpenMAX] H264 settings and DRC
Replies: 20
Views: 5424

[OpenMAX] H264 settings and DRC

I'm trying to expose all the h264 settings found in raspivid but I don't find the openmax struct or the field of some of them. These are the h264 settings that I've managed to expose: IDR frame period (intra): OMX_VIDEO_CONFIG_AVCINTRAPERIOD - OMX_IndexConfigVideoAVCIntraPeriod SEI frames (not in ra...
by gagle
Sun Jul 20, 2014 7:14 am
Forum: Camera board
Topic: long exposure not working on B+
Replies: 123
Views: 28336

Re: long exposure not working on B+

In fact, for example settings like: -awb off does give a picture with green tint -mm matrix does set it to average (exif verified) -awb off does give a picture with green tint This is correct. When awb is set to off it enables the manual setting of the red and blue gains. If you don't touch them (t...
by gagle
Fri Jul 18, 2014 9:43 pm
Forum: Camera board
Topic: omxcam - OpenMAX camera abstraction layer
Replies: 54
Views: 16805

Re: omxcam - OpenMAX camera abstraction layer

Video capture examples The websocket server is not working correctly. Still being developed. Recording 2s VGA video: var fs = require ("fs"); var omxcam = require ("omxcam"); var ws = fs.createWriteStream ("video.h264") .on ("error", function (error){ console.error (error); vs.stop (); }); var vs =...
by gagle
Tue Jul 15, 2014 1:54 pm
Forum: Camera board
Topic: Options for Fast Booting A Fast Boot to Camera Running
Replies: 5
Views: 1541

Re: Options for Fast Booting A Fast Boot to Camera Running

Just for a future reference, with omxcam the delay between the program start and record is ~300ms.
by gagle
Mon Jul 14, 2014 9:33 am
Forum: Camera board
Topic: omxcam - OpenMAX camera abstraction layer
Replies: 54
Views: 16805

Re: omxcam - OpenMAX camera abstraction layer

Today I come with exciting news. This weekend I've managed to implement a very simple but functional nodejs binding, both in async and sync ways. This week I'm gonna focus in the nodejs lib and hopefully, by the end of the week I'll have a simplistic prototype of a websocket server serving h264 vide...
by gagle
Wed Jul 09, 2014 7:38 pm
Forum: Camera board
Topic: omxcam - OpenMAX camera abstraction layer
Replies: 54
Views: 16805

Re: omxcam - OpenMAX camera abstraction layer

oops, my rpi has died. It doesn't turn on. :lol:

:(

The rpi needs some kind of switch to turn it on. Current pics are bad.

EDIT:

False alarm, it seems that the SD card adapter is not working properly. Yes, the shitty SD card adapter with the raspberry logo...
by gagle
Tue Jul 08, 2014 6:05 pm
Forum: Camera board
Topic: omxcam - OpenMAX camera abstraction layer
Replies: 54
Views: 16805

Re: omxcam - OpenMAX camera abstraction layer

I'm going to add 3 more functions in order to allow asynchronous code. Right now you have: omxcam_video_start(). The thread is blocked for the specified amount of time or unblocked manually. As soon as the data comes, a buffer callback is executed. This internally is implemented with an infinite loo...
by gagle
Sun Jul 06, 2014 10:28 am
Forum: Camera board
Topic: [OpenMAX] jpeg thumbnail
Replies: 3
Views: 1116

Re: [OpenMAX] jpeg thumbnail

up...

Go to advanced search