Go to advanced search

by 6by9
Fri Jul 20, 2018 9:41 pm
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 494
Views: 96586

Re: Raw sensor access / CSI-2 receiver peripheral

grimepoch wrote:
Fri Jul 20, 2018 9:30 pm
Would that work for the V4L2 driver, or just the raw cam method? Makes sense what you are suggesting. Since this is an embedded system, I am fine with using a magic key.
Apart from the V4L2 driver actively blocking you from selecting the interlaced mode, then it should work in either.
by 6by9
Fri Jul 20, 2018 9:09 pm
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 494
Views: 96586

Re: Raw sensor access / CSI-2 receiver peripheral

This is from an engineer that supports the ADV7282M "in interlaced mode odd frames have one extra line than even frames." Your issue is going to be detecting that. rawcam (as used by raspiraw) will always tell you that the buffer was filled as it got a frame end interrupt. Similarly the V4L2 driver...
by 6by9
Fri Jul 20, 2018 8:49 pm
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 494
Views: 96586

Re: Raw sensor access / CSI-2 receiver peripheral

It may just work, but I'm not convinced. The adv7180 driver advertises that it does "V4L2_FIELD_INTERLACED", for which the definition is "Images contain both fields, interleaved line by line. The temporal order of the fields (whether the top or bottom field is first transmitted) depends on the curre...
by 6by9
Fri Jul 20, 2018 8:39 pm
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 494
Views: 96586

Re: Raw sensor access / CSI-2 receiver peripheral

I don't mind going in that direction, if it can handle an interlaced input signal as a next step. Right now I am just using progressive to test, using the internal line doubler, but the end use case is interlaced NTSC and PAL input. No, I am deliberately ignoring interlaced - it's a pain on many de...
by 6by9
Fri Jul 20, 2018 8:21 pm
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 494
Views: 96586

Re: Raw sensor access / CSI-2 receiver peripheral

Whew, after more boards and time than I'd like to admit, I have raspiraw receiving data consistently from an ADV7282A-M chip. I modified the register settings being transferred to do a NTSC 480p test pattern. For reference, here is what I used: :Color Bars 480p MIPI Out: delay 10 ; 42 0F 00 ; Exit ...
by 6by9
Fri Jul 20, 2018 4:24 pm
Forum: Camera board
Topic: utilizing frex and strobe pads for ov5647 (probable solution for rolling shutter issue?)
Replies: 2
Views: 66

Re: utilizing frex and strobe pads for ov5647 (probable solution for rolling shutter issue?)

ov5647 sensor can handle global shutter (if the hardware is available) despite the lack of hardware support (nor a software to utilize them) arducam exposes the frex and strobe pads in its board http://www.arducam.com/raspberry-pi-camera-rev-c-improves-optical-performance/ Minor correction here. Th...
by 6by9
Fri Jul 20, 2018 1:09 pm
Forum: Camera board
Topic: either raspistill or raspivid is not in native resolution at 2592*1944 (ov5647)
Replies: 17
Views: 504

Re: either raspistill or raspivid is not in native resolution at 2592*1944 (ov5647)

just for the record. last frame of raspiyuv would always shift https://www.dropbox.com/s/u956j2zs5s1e7ay/raspiyuv_last_frame_shift.avi?dl=0 raspiyuv -rgb -o /dev/shm/gone The preview display shifts - probably the same issue. The preview pipe would be hit by the bug I referenced, whilst the stills p...
by 6by9
Fri Jul 20, 2018 10:10 am
Forum: Camera board
Topic: either raspistill or raspivid is not in native resolution at 2592*1944 (ov5647)
Replies: 17
Views: 504

Re: either raspistill or raspivid is not in native resolution at 2592*1944 (ov5647)

Minor bug found in the firmware - conspiracy theories can stop. Part of the video stabilisation code was active, so it was ending up horizontally resizing 2589 pixels up to 2592 on the output side. Video stabilisation code is never active on the stills pipeline, therefore that resize wasn't happenin...
by 6by9
Thu Jul 19, 2018 3:42 pm
Forum: Camera board
Topic: Bayer data from the NoIR camera
Replies: 17
Views: 712

Re: Bayer data from the NoIR camera

I was wondering whether raspiraw is performing some kind of correction or white balancing to the picture, because when i put my camera in the dark, no light is coming in but still i do get a white image in the output (approximatively a mean value of 230 in RGB channels). Is it the conversion with d...
by 6by9
Thu Jul 19, 2018 2:09 pm
Forum: Camera board
Topic: either raspistill or raspivid is not in native resolution at 2592*1944 (ov5647)
Replies: 17
Views: 504

Re: either raspistill or raspivid is not in native resolution at 2592*1944 (ov5647)

sadly, encountered the same problem mentioned in this thread: https://www.raspberrypi.org/forums/viewtopic.php?t=189757 will try to download the source and compile Diagnosed and comment made. I'll make a bug fix for that later -------------- edit 19-jul 2018 20:08 (gmt+7) ---------------------- ver...
by 6by9
Thu Jul 19, 2018 1:59 pm
Forum: Troubleshooting
Topic: Why does raspividyuv hang?
Replies: 2
Views: 213

Re: Why does raspividyuv hang?

Old thread I know, but someone else has just linked to it. You haven't specified an output file, and the code unconditionally enables the capture port. The camera component is therefore taking a capture on that port and waiting for a buffer that never comes to put the image in. I will do a bug fix, ...
by 6by9
Thu Jul 19, 2018 1:53 pm
Forum: Camera board
Topic: either raspistill or raspivid is not in native resolution at 2592*1944 (ov5647)
Replies: 17
Views: 504

Re: either raspistill or raspivid is not in native resolution at 2592*1944 (ov5647)

Please make a new post rather than editing. Editing doesn't flag the post as unread, so people (ie me) may miss that updates. I hadn't seen any reports of issues in raspiyuv and raspividyuv previously as it was raised in a slightly odd forum that I don't normally follow. Looking at RaspiStillYUV, it...
by 6by9
Thu Jul 19, 2018 11:43 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Issues accessing GPIO register with single bytes
Replies: 7
Views: 227

Re: Issues accessing GPIO register with single bytes

You haven't answered the question as to why you want to access it as single bytes. It really doesn't gain you anything on a 32bit processor (other than grief). Casting to a struct makes it more complicated to amend the behaviour should it be necessary, as you have to amend the structure member to be...
by 6by9
Thu Jul 19, 2018 11:12 am
Forum: Graphics, sound and multimedia
Topic: * SIMULTANEOUSLY RECORD 2 VIDEOS *
Replies: 6
Views: 173

Re: * SIMULTANEOUSLY RECORD 2 VIDEOS *

Here's a suggestion for mux of two video streams Here is a simple (working) setup using gst-launch (install the gstreamer-tools package on Ubuntu/Debian): gst-launch v4l2src device=/dev/video1 ! videoscale ! ffmpegcolorspace ! video/x-raw-yuv, width=640, height=480 ! videobox border-alpha=0 left=-6...
by 6by9
Thu Jul 19, 2018 10:59 am
Forum: Camera board
Topic: [MOTION] Overexposure using YUV format
Replies: 7
Views: 456

Re: [MOTION] Overexposure using YUV format

4.4.50 is pretty ancient - history implies Feb 2017. The currently supported kernel is 4.14.56. vcgencmd is part of the userland repo. sudo apt install cmake git git clone https://github.com/raspberrypi/userland.git cd userland ./buildme should build all the userland apps. It'll try installing the a...
by 6by9
Wed Jul 18, 2018 3:52 pm
Forum: Advanced users
Topic: The mmal example programs in github won't call the output callback
Replies: 10
Views: 251

Re: The mmal example programs in github won't call the output callback

It's easiest to quote the snippet of code. Until I tweaked it on Friday, the code broadly read: FrameWidth = port->format->es->video.width; if(port->format->es->video.crop.width) nFrameWidth = port->format->es->video.crop.width; if ( port_module->remove_padding) || mmal_ril_color_format_is_bayer(eCo...
by 6by9
Wed Jul 18, 2018 2:17 pm
Forum: Camera board
Topic: either raspistill or raspivid is not in native resolution at 2592*1944 (ov5647)
Replies: 17
Views: 504

Re: either raspistill or raspivid is not in native resolution at 2592*1944 (ov5647)

Both apps are going to be using the same set of register values into the sensor, therefore the raw input image should be the same. The ISP can crop/resize in almost arbitrary amounts. I'm not aware of any deliberate differences being applied in video mode, unless you enable video stabilisation. IIRC...
by 6by9
Wed Jul 18, 2018 1:42 pm
Forum: Advanced users
Topic: The mmal example programs in github won't call the output callback
Replies: 10
Views: 251

Re: The mmal example programs in github won't call the output callback

I've just been looking at the alignment question as I've had a request to relax the alignment on some components, and there's no good reason why not in this case. mmal_port_format_commit will align up format->es->video.[width|height] to the required alignment (typically 32 horizontally and 16 vertic...
by 6by9
Wed Jul 18, 2018 11:34 am
Forum: Camera board
Topic: Extension Cable for Raspberry Pi Zero W MINI camera module
Replies: 1
Views: 70

Re: Extension Cable for Raspberry Pi Zero W MINI camera module

No, it won't work. The Pi0(W) has a 22pin small camera connector. The cable is the 22pin small connector (as a flex) to the 15pin bigger connector (as a flex) used on the Pi camera modules. The camera module has the 22pin small connector (as a flex) . That will not fit with the 15pin connector on th...
by 6by9
Wed Jul 18, 2018 11:29 am
Forum: Camera board
Topic: [MOTION] Overexposure using YUV format
Replies: 7
Views: 456

Re: [MOTION] Overexposure using YUV format

What kernel and firmware versions are you running? vcgencmd version uname -a I haven't seen lockups from MJPEG since some fixes went in Novermber 2017. Assuming you've got the desktop Raspbian installed, then test with qv4l2 in YU12 and your desired resoution. Two niggles with qv4l2. First qv4l2 has...
by 6by9
Wed Jul 18, 2018 6:28 am
Forum: Official Foundation Display
Topic: Using 7" Touchscreen with Omxplayer
Replies: 7
Views: 279

Re: Using 7" Touchscreen with Omxplayer

I've not checked the code to confirm, but par is normally pixel aspect ratio. The video has been encoded saying that the pixels are not square (1.25:1, or 5:4), and omxplayer will be compensating for that.
by 6by9
Tue Jul 17, 2018 3:29 pm
Forum: Raspbian
Topic: VC4 and Mesa Drivers Update Plan
Replies: 23
Views: 1401

Re: VC4 and Mesa Drivers Update Plan

You're doing pretty good. glxinfo -B worked and the summaries are below: Ubuntu-Mate Versions Summary: https://pastebin.com/a2bbCstw Device: llvmpipe (LLVM 6.0, 128 bits) (0xffffffff) Version: 18.0.5 Raspbian Versions Summary: https://pastebin.com/eFT7UGuS Device: llvmpipe (LLVM 3.9, 128 bits) (0xf...
by 6by9
Tue Jul 17, 2018 9:42 am
Forum: Compute Module
Topic: What would be the next step up from CM3?
Replies: 29
Views: 1310

Re: What would be the next step up from CM3?

ZeroCam is probably https://thepihut.com/products/zerocam-camera-for-raspberry-pi-zero. As James says, a third party product. The only gain it has is that it natively has the 22pin connector on it, as used on the CMIO and Pi Zero(W). The CMIO is supplied with one each of the display and camera adapt...
by 6by9
Tue Jul 17, 2018 9:38 am
Forum: Advanced users
Topic: The mmal example programs in github won't call the output callback
Replies: 10
Views: 251

Re: The mmal example programs in github won't call the output callback

I'd forgotten that it had to be annex B, but that is correct. host_applications/linux/apps/hello_pi/hello_video/test.h264 is the normal test clip that is used - it's a segment of Big Buck Bunny extracted to an annex B H264 elementary stream (1080P). example_basic_1 does not support resolution change...
by 6by9
Tue Jul 17, 2018 9:19 am
Forum: Graphics, sound and multimedia
Topic: Using TC358743 on the Auvidea B101 with RPi 3b
Replies: 6
Views: 219

Re: Using TC358743 on the Auvidea B101 with RPi 3b

HDMI splitter eg https://www.ebay.co.uk/itm/2160p-1-IN-2-OUT-1-INPUT-2-OUTPUT-HDMI-SPLITTER-2-WAY-SWITCH-BOX-HUB-4K-UHD-3D/192496109965 or many similar ones on eBay. The one I have is an older version which only does 1080P and is powered from a USB socket. Not that it matters here, but they often do...

Go to advanced search