Go to advanced search

by 6by9
Mon Oct 15, 2018 8:13 pm
Forum: Camera board
Topic: MMAL RGB to JPEG encoder width issues
Replies: 4
Views: 131

Re: MMAL RGB to JPEG encoder width issues

It looks like image_encode got patched back in 2012 to support unaligned strides, but in the process resulted in the stride having to be the internal aligned value, which is aligned to a multiple of 16 in the case of RGB888 (32 for YUV formats). So I should align the stride to a multiple of 16 pixe...
by 6by9
Mon Oct 15, 2018 1:15 pm
Forum: Camera board
Topic: MMAL RGB to JPEG encoder width issues
Replies: 4
Views: 131

Re: MMAL RGB to JPEG encoder width issues

Sorry, your code is near useless without a Makefile or some form of test harness. Fortunately a one line change to raspistill changing the encoding on the camera stills port can exercise the same path. It looks like image_encode got patched back in 2012 to support unaligned strides, but in the proce...
by 6by9
Mon Oct 15, 2018 10:04 am
Forum: Compute Module
Topic: what is the Compute Module's pin_config section?
Replies: 7
Views: 169

Re: what is the Compute Module's pin_config section?

I'll point you straight back to my earlier post Read the docs for picamera https://picamera.readthedocs.io/en/release-1.13/api_camera.html#picamera The led_pin parameter can be used to specify the GPIO pin which should be used to control the camera’s LED via the led attribute. If this is not specifi...
by 6by9
Mon Oct 15, 2018 8:45 am
Forum: Compute Module
Topic: what is the Compute Module's pin_config section?
Replies: 7
Views: 169

Re: what is the Compute Module's pin_config section?

raspistill -cs 0 -o image0.jpg raspistill -cs 1 -o image1.jpg Note that -cs X matches the CAMERA_X_ defines in pins_config section. With the default setup of [email protected]_0_UNICAM_PORT { type = "internal"; number = <1>; }; .. [email protected]_1_UNICAM_PORT { type = "internal"; number = <0>; }...
by 6by9
Sun Oct 14, 2018 2:47 pm
Forum: Advanced users
Topic: Moving Linux kernel to 4.14
Replies: 150
Views: 52239

Re: Moving Linux kernel to 4.14

Hmm, another checksum issue. There are a couple of github issues that may be relevant. I found one - that's new enough and relevant. I can't work out what https://github.com/Hexxeh commit I need to go back to to avoid the error. You commented on the issue which included tried every single version f...
by 6by9
Sun Oct 14, 2018 7:56 am
Forum: Camera board
Topic: Annotate, any hope for future changes?
Replies: 115
Views: 12186

Re: Annotate, any hope for future changes?

That's great! Is it possible to use this yet? I see the code changes on GitHub, but I did rpi-update today and I don't think they've included it in the release yet. I checked on my system after the update /opt/vc/include/interface/mmal/mmal_parameters_camera.h and it does not show those settings. S...
by 6by9
Sat Oct 13, 2018 9:19 pm
Forum: Camera board
Topic: MMAL RGB to JPEG encoder width issues
Replies: 4
Views: 131

Re: MMAL RGB to JPEG encoder width issues

Not something I can test right now, but I will look when I'm in the office again.
by 6by9
Sat Oct 13, 2018 4:53 pm
Forum: Graphics, sound and multimedia
Topic: Hw acceleration on ffmpeg
Replies: 7
Views: 160

Re: Hw acceleration on ffmpeg

You're still software decoding mjpeg on the cpu. I can't recall if the mmal_dec codec can do mjpeg or not, which should be hardware accelerated for decode. What resolution are you getting from your ip camera? 640 x 480 VGA should be no hassle software decoding on anything other that a Pi Zero or 1....
by 6by9
Sat Oct 13, 2018 4:16 pm
Forum: Graphics, sound and multimedia
Topic: Hw acceleration on ffmpeg
Replies: 7
Views: 160

Re: Hw acceleration on ffmpeg

You're still software decoding mjpeg on the cpu. I can't recall if the mmal_dec codec can do mjpeg or not, which should be hardware accelerated for decode.
What resolution are you getting from your ip camera?
by 6by9
Sat Oct 13, 2018 2:25 pm
Forum: Graphics, sound and multimedia
Topic: Hw acceleration on ffmpeg
Replies: 7
Views: 160

Re: Hw acceleration on ffmpeg

Libx264 is a software codec so will never be hardware accelerated.
h264_omx is the hardware accelerated codec in ffmpeg, so I'm assuming they've enabled the relevant build options for that.
by 6by9
Sat Oct 13, 2018 8:37 am
Forum: General discussion
Topic: Sony CMOS Sensor: SonyIMX179
Replies: 12
Views: 9895

Re: Sony CMOS Sensor: SonyIMX179

I am following up on this old post to see if IMX179 drivers are yet available for pi 3 B+. Interest is in using high resolution in 3D scanning. There is a large community who would benefit from the use of this camera if drivers were or are made available. Thank you. A lot has happened in 4 years. A...
by 6by9
Sat Oct 13, 2018 8:17 am
Forum: Camera board
Topic: Better Camera Replacement?
Replies: 39
Views: 8578

Re: Better Camera Replacement?

I'm totally lost on that post. I think the only thing I'll say is that USB is pretty limited and has a very heavy overhead so is not the best interface for video. USB2 is limited at a practical 300Mbit/s (theoretical 480Mbit/s), whilst CSI2 can transfer 1Gbit/s per lane, and the Pi exposes 2 lanes. ...
by 6by9
Fri Oct 12, 2018 3:50 pm
Forum: General discussion
Topic: Raspivid filename (%04d.h264) not working
Replies: 1
Views: 37

Re: Raspivid filename (%04d.h264) not working

Almost the same question as in https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=224569 ? Fix for that just going through at the moment https://github.com/raspberrypi/userland/pull/491 / https://github.com/raspberrypi/userland/pull/492 However there appear to be a couple of things wrong/odd in...
by 6by9
Fri Oct 12, 2018 2:58 pm
Forum: Compute Module
Topic: Compute Module IO board and official 7in LCD?
Replies: 42
Views: 8046

Re: Compute Module IO board and official 7in LCD?

At least RS are selling the camera and display boards (Farnell had been not stocking them separately), but I certainly had always been making the assumption they had shipped with the CMIO. I'll query with sales mine came without any adapters; CMIO only in a white box with yellow label That sounds l...
by 6by9
Fri Oct 12, 2018 2:12 pm
Forum: Compute Module
Topic: Compute Module IO board and official 7in LCD?
Replies: 42
Views: 8046

Re: Compute Module IO board and official 7in LCD?

Parts arrived: Now it works (two cams and one display). Poblem solved. Good news. because in the pi-shop.ch version of the development kit is the display adaptor not (yet) included, and probably in other kits from other sellers too. It looks like RS have dropped them from their bundle which I wasn'...
by 6by9
Fri Oct 12, 2018 1:11 pm
Forum: General discussion
Topic: RS485 Communication with Pi Compute 3L
Replies: 5
Views: 118

Re: RS485 Communication with Pi Compute 3L

It is really weird that you need to multiplex the RS-485 since RS-485 is by itself a bus system. (ALl RS-485 connected together). If the devices don't support addressing, or the addresses are all set to the same value, then you need some way to switch between them. Then I added a small cpu to contr...
by 6by9
Fri Oct 12, 2018 10:08 am
Forum: OpenMAX
Topic: Some camera settings doesn't work.
Replies: 2
Views: 98

Re: Some camera settings doesn't work.

We hit another problem and need support - @6by9 could you take a look to this please? Trying to tag people using @username does not work on phpBB. Taking two images from the camera with different ISO settings results in more or less the same picture i.e. we were expecting to easily visually differe...
by 6by9
Fri Oct 12, 2018 6:33 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How open second i2c port on B+
Replies: 10
Views: 180

Re: How open second i2c port on B+

rapidograf wrote:
Fri Oct 12, 2018 6:02 am
in which case wil be fatal collision in together working i2c-1 and i2c-0
No.
Would you expect issues if you had two serial ports on a pc?
As previously stated, the reason it is not enabled by default is that i2c-0 is nominally reserved for the Gpu, that's all.
by 6by9
Fri Oct 12, 2018 6:00 am
Forum: Advanced users
Topic: JPEG encoder output tearing
Replies: 5
Views: 247

Re: JPEG encoder output tearing

Will mmal allow me to write to an input buffer while it is converting it in memory? There's no way to stop it without unmapping and remapping the buffer on every transition (very expensive in performance terms). If you have the buffer address mmaped in your application then you can write to it any ...
by 6by9
Fri Oct 12, 2018 5:50 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How open second i2c port on B+
Replies: 10
Views: 180

Re: How open second i2c port on B+

/boot/config.txt
by 6by9
Thu Oct 11, 2018 8:02 pm
Forum: Camera board
Topic: raspivid -o Vid%04d.h264 does not work correctly. Outputs always as Vid0011.h264
Replies: 4
Views: 125

Re: raspivid -o Vid%04d.h264 does not work correctly. Outputs always as Vid0011.h264

It looks like a rather crude assumption was made when saving to a timestamped filename was added https://github.com/raspberrypi/userland/blob/master/host_applications/linux/apps/raspicam/RaspiVid.c#L1094 // If %d or %u, assume a segment numnber, otherwise use the formatter as // input to strnftime i...
by 6by9
Thu Oct 11, 2018 2:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How open second i2c port on B+
Replies: 10
Views: 180

Re: How open second i2c port on B+

id like use full compatible i2c-0 features as for i2c-1 / is it possible ? The feature set of the two peripherals is identical. Nominally i2c-0 is assigned to the GPU (VideoCore, or VC) for use in controlling the display and camera. There is no arbitration on the peripherals, so if both the ARM and...
by 6by9
Thu Oct 11, 2018 1:35 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How open second i2c port on B+
Replies: 10
Views: 180

Re: How open second i2c port on B+

If you want the default pin assignment for i2c-0 (normally pins 27&28 on the 40 way header), then just adding dtparam=i2c_vc=on is sufficient. There are no I2C pullups on those pins - you need to add your own. Enabling i2c-0 for use by the ARM precludes the use of the camera module or the DSI displa...
by 6by9
Thu Oct 11, 2018 11:09 am
Forum: Camera board
Topic: How to use imx334 not imx219 work with pi?
Replies: 7
Views: 192

Re: How to use imx334 not imx219 work with pi?

Thanks, I suspected my data was a bit out of date! Hadan't realised the ISP component had been merged. Almost 18 months ago :shock: Do keep up! Admittedly it's mainly been used as a general purpose resize/format converter for Chromium when doing video_decode. White balance and digital gain were onl...
by 6by9
Thu Oct 11, 2018 10:54 am
Forum: Camera board
Topic: How to use imx334 not imx219 work with pi?
Replies: 7
Views: 192

Re: How to use imx334 not imx219 work with pi?

(I'll correct my colleague) The Linux CSI2 driver allows you to run any sensor you like and write the raw frames into memory. The sensor driver and all control of the sensor is up to you. imx 258, 274, 319, and 355 drivers all appear to be merged in https://git.linuxtv.org/media_tree.git/tree/driver...

Go to advanced search