Go to advanced search

by DanR
Tue Jul 06, 2021 3:16 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 1080p30 EDID file
Replies: 2
Views: 256

Re: 1080p30 EDID file

Hi 6by9,

Thanks ever so much for that, outstanding as always!!

Kind Regards,

Dan
by DanR
Tue Jul 06, 2021 9:48 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 1080p30 EDID file
Replies: 2
Views: 256

1080p30 EDID file

Hi All, I've tried many times to correctly set up an EDID file used with a TC358743 and I'm having problems, I either get no video from the source equipment or I get 1080p50 which is too high a frame rate for the Pi3B+ to handle. So, does anyone have a known working EDID file that signals the source...
by DanR
Fri Apr 23, 2021 2:17 pm
Forum: Graphics, sound and multimedia
Topic: V4L2 Source Changed Event handling
Replies: 2
Views: 187

Re: V4L2 Source Changed Event handling

Hiya 6by9,

As always thanks ever so much for your advice, you're a star. This is exactly the information I was after!

Have a great weekend and take care,

Best Regards, Dan
by DanR
Fri Apr 23, 2021 9:36 am
Forum: Graphics, sound and multimedia
Topic: V4L2 Source Changed Event handling
Replies: 2
Views: 187

V4L2 Source Changed Event handling

Hi All but mostly 6by9, I'm having a few issues with the V4L2 source change event when customers knock, or change the HDMI input connection which feeds a TC358743 front end into the RPi (3B+). Really what I need is some pointers on how to account for it such as some example code or list of things th...
by DanR
Mon Apr 19, 2021 2:35 pm
Forum: Raspberry Pi OS
Topic: RTL8812AU Driver source - custom kernel compile
Replies: 4
Views: 299

Re: RTL8812AU Driver source - custom kernel compile

Hiya MrEngman, Thanks ever so much for your help with this, I had to change a CFLAGS directive on line 8 from: EXTRA_CFLAGS +=-Wimplicit-fallthrough to: EXTRA_CFLAGS += -Wno-fallthrough and it compiled first time! Next was a "sudo make install" and then "sudo modprobe 8812au rtw_switc...
by DanR
Fri Apr 16, 2021 2:03 pm
Forum: Raspberry Pi OS
Topic: RTL8812AU Driver source - custom kernel compile
Replies: 4
Views: 299

Re: RTL8812AU Driver source - custom kernel compile

Hiya MrEngMan, Thank you ever so much for your reply. I'll give it a go on Monday as I'm about to finish for the day. Fingers crossed I get it compiled and running. I take it the change list in your reply is the complete set of changes you made so once I've done that it should compile? Kind Regards,...
by DanR
Fri Apr 16, 2021 10:53 am
Forum: Raspberry Pi OS
Topic: RTL8812AU Driver source - custom kernel compile
Replies: 4
Views: 299

RTL8812AU Driver source - custom kernel compile

Hi All and especially @MrEngMan! I needed to make a change to the ADV7282A-M driver to change the gain settings amongst other things and it's working great apart from one problem! We use WiFi adapters that have the RTL8812AU chipset and now the drivers won't install as they're precompiled for each v...
by DanR
Fri Mar 12, 2021 5:15 pm
Forum: General
Topic: A DVI sock board for the Pico
Replies: 61
Views: 4878

Re: A DVI sock board for the Pico

HDMI inputs don't require licensing as long as you don't use the HDMI logo. Output is a different matter except if you're using the HDMI output from an already licensed product, but you still can't use the HDMI logo. Licensing is absolutely extortionate, in the order of £10k+ per year depending on y...
by DanR
Wed Sep 16, 2020 9:45 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: H264 Encoder quality settings - are there any
Replies: 1
Views: 274

H264 Encoder quality settings - are there any

Hi All,

Are there any settings to change the quality of the captured video through MMAL as I can't seem to find anything relating to this, specifically reducing the quality to save storage space?

Kind Regards,

Dan
by DanR
Fri Aug 14, 2020 7:24 am
Forum: C/C++
Topic: Assertion Failure from MMAL - Help!
Replies: 6
Views: 854

Re: Assertion Failure from MMAL - Help!

In case this is useful to anyone it seems that at 1080p50 you can only use the video encoder without adding an image encoder. If you add an image encoder the best I can get from it for a long period of time is to use a resolution of 1280x1024p50. It appears as though a higher resolution uses a highe...
by DanR
Wed Jul 29, 2020 8:35 am
Forum: C/C++
Topic: Assertion Failure from MMAL - Help!
Replies: 6
Views: 854

Re: Assertion Failure from MMAL - Help!

Ok so this doesn't happen on a pi 4B, that's strange but very noteworthy. Is there something broken in Raspberry Pi OS that is killing the gpu??? I have no idea and can't find out so I thought I'd post this in case someone picks it up and finds the issue for others.... I suspect no one will take thi...
by DanR
Fri Jul 24, 2020 9:48 am
Forum: C/C++
Topic: Assertion Failure from MMAL - Help!
Replies: 6
Views: 854

Re: Assertion Failure from MMAL - Help!

Well it still happens just a lot later than it did.

So @6by9, what does the assertion failure mean, I can't find anywhere what it means and why or what causes it. This is the root cause of my issue I believe and once I've sorted it or had help to sort it I should be golden....

Cheers,

Dan
by DanR
Thu Jul 23, 2020 4:50 pm
Forum: C/C++
Topic: Assertion Failure from MMAL - Help!
Replies: 6
Views: 854

Re: Assertion Failure from MMAL - Help!

Hmm, seems as though sending the ISP output to both the video encoder and the image encoder at the same time is a bad idea, the gpu on the pi3b+ just cannot handle it and randomly falls over. So, the things that can be done to eliminate this are as follows: 1) Interleave the frames between encoders,...
by DanR
Wed Jul 22, 2020 2:35 pm
Forum: C/C++
Topic: Assertion Failure from MMAL - Help!
Replies: 6
Views: 854

Re: Assertion Failure from MMAL - Help!

I have some more debug output if that helps? I've set the number of buffers everywhere to 8 by the way and it's still crashing. Here is the result of "sudo vcdbg msg log" after running "sudo vcgencmd vcos log set mmalsrv trace": I've inserted a blank line where I think it all sta...
by DanR
Wed Jul 22, 2020 9:34 am
Forum: C/C++
Topic: Assertion Failure from MMAL - Help!
Replies: 6
Views: 854

Assertion Failure from MMAL - Help!

Hi, I have modified 6by9's yavta code from github.com/6by9/yavta and added a jpeg encoder and all the other parts such as buffer copying, thread on videocore etc etc. It runs fine for about 1 hour ish and then fails with this error: assertion failure:/home/pi/userland/interface/mmal/vc/mmal_vc_clien...
by DanR
Tue Jul 21, 2020 8:52 am
Forum: C/C++
Topic: Writing to a pipe stalls if it's not read
Replies: 9
Views: 1104

Re: Writing to a pipe stalls if it's not read

Hi 6by9, I'm having trouble with my version of yavta at the moment (added image encoder functionality) and I can't seem to find the cause of one of two errors listed below which happen around 57mins to 1hr20. Do you have any suggestions on where to look? What does the assertion failure error mean? E...
by DanR
Fri Jul 10, 2020 7:55 am
Forum: C/C++
Topic: Writing to a pipe stalls if it's not read
Replies: 9
Views: 1104

Re: Writing to a pipe stalls if it's not read

Hi 6by9, What does this error relate to and how can I fix it: assertion failure:/home/pi/userland/interface/mmal/vc/mmal_vc_client.c:204:mmal_vc_lookup_client_context():client_context_pool.contexts[CLIENT_CONTEXT_MAGIC_MASK(index)].inuse Am I not giving the vc routines enough time to finish or is th...
by DanR
Thu Jul 02, 2020 11:15 am
Forum: C/C++
Topic: Writing to a pipe stalls if it's not read
Replies: 9
Views: 1104

Re: Writing to a pipe stalls if it's not read

So I issued an fcntl to set the nonblocking mode after reading and or'ing the flags. That's not helped, actually it's worse! So I think my only option is to write a quick live555 app to connect locally to the RTSP stream server so the stdout pipe is consumed in a proper manner and prevents the corru...
by DanR
Thu Jul 02, 2020 10:30 am
Forum: C/C++
Topic: Writing to a pipe stalls if it's not read
Replies: 9
Views: 1104

Re: Writing to a pipe stalls if it's not read

Hmm, the problem with using select is that it holds up the flow somewhat even with a really small timeout value set which means the stream gets borked with dropped frames. Can I fopen the pipe with a non blocking flag set instead? I've seen this with "open" but not with "fopen", ...
by DanR
Tue Jun 30, 2020 11:53 am
Forum: C/C++
Topic: Writing to a pipe stalls if it's not read
Replies: 9
Views: 1104

Re: Writing to a pipe stalls if it's not read

Thanks jahboater, I'll give that a go! sorry I missed your previous post.

Kind Regards,

Dan
by DanR
Tue Jun 30, 2020 11:13 am
Forum: C/C++
Topic: Writing to a pipe stalls if it's not read
Replies: 9
Views: 1104

Re: Writing to a pipe stalls if it's not read

Thanks for the replies! James wrote: So you want to throw away part of the H264 bitstream? How do you propose to deal with a datastream that has chucks missing? Just rely on it resyncing at some point in the future, hopefully the next I-frame? The sending process needs to check if the pipe is alread...
by DanR
Tue Jun 30, 2020 10:36 am
Forum: C/C++
Topic: Writing to a pipe stalls if it's not read
Replies: 9
Views: 1104

Writing to a pipe stalls if it's not read

Hi All, I've come across an issue that I've no idea how to fix and after searching t'internet I'm none the wiser so I thought I'd ask the myriad of greatness, the forums here. So, when you pipe the output from an application such as "cat largefile.txt | readerapp" and the readerapp is busy...
by DanR
Tue Jun 30, 2020 9:33 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Reading single frames piped from Raspivid in C/C++
Replies: 44
Views: 4156

Re: Reading single frames piped from Raspivid in C/C++

Hi 6by9, Well it was down to setting the MMAL_PARAMETER_JPEG_RESTART_INTERVAL parameter on the wrong encoder (video not the image encoder), what a wally I am!!! Just need to sort out saving the image data and adding a lock semaphore around the save bit so it's not running twice over ;) Thank you eve...
by DanR
Tue Jun 30, 2020 8:27 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Reading single frames piped from Raspivid in C/C++
Replies: 44
Views: 4156

Re: Reading single frames piped from Raspivid in C/C++

Hi 6by9, So the image encode component does connect up and get configured correctly as when I deliberately set it to MJPEG I can see a configuration error output with: sudo vcdbg log msg However with the image encoder parts added I get this only when I run the application in the vcdbg output 1603899...
by DanR
Mon Jun 29, 2020 2:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Reading single frames piped from Raspivid in C/C++
Replies: 44
Views: 4156

Re: Reading single frames piped from Raspivid in C/C++

Hi 6by9, I've added a vc.ril.image_encode component to the "setup_mmal" function and added the buffer pool, set the input to the same as the vc.ril.video_encode input and then set the output port format to JPEG without any errors on startup. With these added I start the application and 2 b...

Go to advanced search