Go to advanced search

by 6by9
Mon Aug 20, 2018 9:56 am
Forum: Advanced users
Topic: Question about brcmjpeg implementation in a program.
Replies: 7
Views: 174

Re: Question about brcmjpeg implementation in a program.

0x000000 in YUV space is green. 0x000000 in RGB space is black. Something is looking at memory that has been memset to 0. I'm not going to try and run that program as it has dependencies on avcodec and others. It's only from reading the code that I see you are connecting video_decode to image_encode...
by 6by9
Mon Aug 20, 2018 9:20 am
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 411
Views: 99924

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

For UV4L, follow the instructions on their website (as RpiName says). Do NOT add any extra settings to /boot/config.txt other than those mentioned on their website (definitely do NOT add anything referencing tc358743). For the kernel drivers, follow the steps in https://www.raspberrypi.org/forums/vi...
by 6by9
Mon Aug 20, 2018 9:12 am
Forum: Advanced users
Topic: I am getting MMAL_EIO (Error 7) when trying to construct a H264 decoder.
Replies: 5
Views: 144

Re: I am getting MMAL_EIO (Error 7) when trying to construct a H264 decoder.

I thought that bit with video_encode was documented in the IL component docs (https://github.com/raspberrypi/firmware/tree/master/documentation/ilcomponents, or hosted at http://www.jvcref.com/files/PI/documentation/ilcomponents/. I'm trying to get a copy hosted on the Pi website at the moment. He a...
by 6by9
Mon Aug 20, 2018 8:58 am
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 76
Views: 1411

Re: ADV7282 Analogue video to CSI chip with interlaced modes

I totally understand about the low-level functionality, to be honest, I am not sure really how one would handle this through a driver. Reason being, there are tons of options for things like noise reduction, or turning off AGC, or setting the no-signal image, that are really not a one size fits all...
by 6by9
Mon Aug 20, 2018 8:47 am
Forum: Camera board
Topic: Custom lens shading tables
Replies: 53
Views: 5900

Re: Custom lens shading tables

My program has written in Python, and I'm using the Picamera class to show the preview of the camera, take pictures, record video, change the settings of the camera. Is it possible to overwrite the lens shading table if I'm using the picamera this way? Could you give me some hint how should I start...
by 6by9
Sat Aug 18, 2018 5:28 pm
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 411
Views: 99924

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

Those are instructions for the Pi camera v4l2 driver, not for the tc358743.
by 6by9
Fri Aug 17, 2018 8:20 pm
Forum: Camera board
Topic: running raspiraw with v2.1 camera
Replies: 3
Views: 109

Re: running raspiraw with v2.1 camera

There is a known issue with rawcam that under some conditions it ends up trying to return a buffer twice which results in the firmware deliberately aborting. I'm looking at it at the moment in the office - it's almost certainly a race condition hiding in there, but it's not obvious where at the mome...
by 6by9
Fri Aug 17, 2018 3:32 pm
Forum: General discussion
Topic: Connect to Logitech BRIO Webcam
Replies: 2
Views: 66

Re: Connect to Logitech BRIO Webcam

"vcgencmd get_camera" is ONLY relevant for the Pi camera modules, not USB ones. Most USB webcams use the uvcvideo driver built in to the kernel, and should show up as /dev/video0 or similar. You need to use the V4L2 API to access it (raspivid/still will NOT work). If /dev/video0 isn't there, then ch...
by 6by9
Fri Aug 17, 2018 3:27 pm
Forum: Advanced users
Topic: sudo vcdbg log msg not working
Replies: 3
Views: 61

Re: sudo vcdbg log msg not working

Looking at that message I would guess that your gpu_mem setting is too low. No, it's an ARM side allocation failing, so nothing to do with gpu_mem. TBH I don't know how you've got the system into that state. vcdbg reads some debug symbols from memory to find the logging FIFO, and allocates a buffer...
by 6by9
Fri Aug 17, 2018 2:41 pm
Forum: Camera board
Topic: Picamera with custom lens, color issue
Replies: 7
Views: 247

Re: Picamera with custom lens, color issue

Sorry, you aren't going to get much support when you have so completely stripped down the sensor. The sensor and lens assembly are designed to work together. In particular there will be some compensation within the micro-lens array to adjust for the chief ray angle and lens vignetting. That is a lik...
by 6by9
Fri Aug 17, 2018 7:31 am
Forum: Advanced users
Topic: Question about brcmjpeg implementation in a program.
Replies: 7
Views: 174

Re: Question about brcmjpeg implementation in a program.

Are there other components that are limited similarly like the JPEG encoder where we might not expect a performance boost by running processes in parallel? I am using vc.ril.isp to replace swscale when converting I420 to RGB. Each monitor instance has a H264 decoder (via h264_mmal in libavcodec), H...
by 6by9
Fri Aug 17, 2018 7:09 am
Forum: Camera board
Topic: running raspiraw with v2.1 camera
Replies: 3
Views: 109

Re: running raspiraw with v2.1 camera

A bug had crept in to the firmware which resulted in the buffer sizes being incorrectly computed. First affected release was 30th July, fixed in the 8th Aug release. That probably explains the incorrectly sized buffers. The data certainly appears to be raw 10 where you get the 8 most significant bit...
by 6by9
Thu Aug 16, 2018 8:24 pm
Forum: Advanced users
Topic: Question about brcmjpeg implementation in a program.
Replies: 7
Views: 174

Re: Question about brcmjpeg implementation in a program.

You do really love finding all the old obscure code! I thought it was something you guys had around the corner yet to publish. :D So that's why I had to manually copy over the library and the include file. I think the first simple question is are you aiming to run on a 0/0W/A/B I will be running it...
by 6by9
Thu Aug 16, 2018 3:35 pm
Forum: Advanced users
Topic: Ethernet RX packet loss on the 3B+
Replies: 5
Views: 153

Re: Ethernet RX packet loss on the 3B+

Do you have flow control enabled on your switch? If not then you will have problems. Gigabit ethernet can deliver frames at 1000Mbit/s. USB2 can deliver frames through at an absolute max of 480Mbit/s, but more realistically around 250Mbit/s. The ethernet adapters never have much buffering, therefore...
by 6by9
Thu Aug 16, 2018 2:00 pm
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 17
Views: 713

Re: TC358743 and interlaced HDMI modes

There were a couple of patches to rawcam that were merged 24th July as part of https://github.com/raspberrypi/firmware/commit/83146e2ec7fec863fdd6dcaa1b5129c43a5b3699 to address race condition when swapping buffers. I haven't tried it against TC358743 other than via your app and 1080i50. Can you try...
by 6by9
Thu Aug 16, 2018 12:18 pm
Forum: Camera board
Topic: Reliable RCA (NTSC) Camera input (custom camera)??
Replies: 5
Views: 124

Re: Reliable RCA (NTSC) Camera input (custom camera)??

The Analog Devices ADV7280-MA and ADV7282-MA chips are analogue video to CSI2 bridge chips (PAL/NTSC/SECAM), and they're now supported. Those two variants both include deinterlacing, which makes life significantly simpler. AFAIK no one is making a standard add-on board wth either as yet, but a coupl...
by 6by9
Thu Aug 16, 2018 11:37 am
Forum: Advanced users
Topic: Question about brcmjpeg implementation in a program.
Replies: 7
Views: 174

Re: Question about brcmjpeg implementation in a program.

You do really love finding all the old obscure code! brcmjpeg was there as a simple library for use by a Broadcom customer who wanted hardware JPEG acceleration. I think the first simple question is are you aiming to run on a 0/0W/A/B, because if not then libjpeg is probably going to be almost as fa...
by 6by9
Thu Aug 16, 2018 10:33 am
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 76
Views: 1411

Re: ADV7282 Analogue video to CSI chip with interlaced modes

For reference, what I am trying to deal with is I want the output to be ITU-R BT.656-4, not 3 that it is defaulting. 3 is creating a blank set of lines at the beginning. I also want to set to NTSC with pedestal. I've tested with MANY different sources and this seems to be the correct settings. Sorr...
by 6by9
Thu Aug 16, 2018 9:47 am
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 411
Views: 99924

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

hi my friend i can't to run the b101 please this are the steps i followed : 1- i burned this image : 2018-04-18-raspbian-stretch.img 2- i added "cma=32M" to boot/config.txt 3- # For more options and information see # http://rpf.io/configtxt # Some settings may impact device functionality. See link ...
by 6by9
Thu Aug 16, 2018 9:42 am
Forum: Graphics, sound and multimedia
Topic: Using TC358743 on the Auvidea B101 with RPi 3b
Replies: 11
Views: 514

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

ahmed mosad wrote:
Thu Aug 16, 2018 5:32 am
hi my friend i can't to run the b101
Please don't double post - viewtopic.php?f=38&t=120702&start=400#p1353508
by 6by9
Thu Aug 16, 2018 6:25 am
Forum: Camera board
Topic: please help -- having problems running raspiraw
Replies: 4
Views: 109

Re: please help -- having problems running raspiraw

The camera_i2c error would be that a new board revision is now in circulation, and the script doesn't handle it. I'll sort a patch today (6by9/raspiraw only. The userland repo is the old location, and HermannSW 's repo is his to maintain)
by 6by9
Wed Aug 15, 2018 9:18 pm
Forum: Camera board
Topic: Saving .PNG gives inconsistent file sizes
Replies: 7
Views: 176

Re: Saving .PNG gives inconsistent file sizes

If in doubt, then the "file" command will generally detect what the actual content of a file is.
by 6by9
Wed Aug 15, 2018 7:03 am
Forum: Advanced users
Topic: Decoding H264 packets and format_in->extradata contents
Replies: 2
Views: 92

Re: Decoding H264 packets and format_in->extradata contents

extradata shouldn't include an idr frame. It sounds like the parsing in example_basic is incorrect (and also explains why I keep on seeing an error of extradata being too big).
by 6by9
Wed Aug 15, 2018 7:02 am
Forum: Advanced users
Topic: I am getting MMAL_EIO (Error 7) when trying to construct a H264 decoder.
Replies: 5
Views: 144

Re: I am getting MMAL_EIO (Error 7) when trying to construct a H264 decoder.

So I got this working. I am getting output buffers in the correct size. The stumbling blocks were: 1. The sps and pps data must be sent in band as the first packet to the decoder. I had assumed that setting the input format's extradata fields were enough but that was not the case. extradata should ...

Go to advanced search