Go to advanced search

by techyian
Mon Jul 29, 2019 8:12 pm
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 87
Views: 12419

Re: Thread from Pi4 discussion

@jdonald - I've got a bit further following your advice and the next error message I get is "Could not create EGL window surface", this occurs when trying both full OpenGL and GLES.
by techyian
Mon Jul 29, 2019 6:58 am
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 87
Views: 12419

Re: Thread from Pi4 discussion

Thank you for that @jdonald, I will have another look with KMSDRM this evening and report back.
by techyian
Sun Jul 21, 2019 2:19 pm
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 87
Views: 12419

Re: Thread from Pi4 discussion

@Arkiruthis unfortunately I receive "KMSDRM not available" when I try to run Enemy Territory in console mode. To force the KMSDRM driver, I ran: SDL_VIDEODRIVER=kmsdrm ./etl Not sure why this is happening. I ran the configure command you put in your post and whilst configuring . checking for LIBDRM....
by techyian
Sat Jul 20, 2019 3:42 pm
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 87
Views: 12419

Re: Thread from Pi4 discussion

@jamesh thank you, using cat /proc/device-tree/model worked a treat. One final question that seems specific to Pi 4 & X11, when playing Enemy Territory and moving the mouse quickly to the left will cause the desktop mouse cursor to show in-game for a brief moment and that causes any movement to stop...
by techyian
Thu Jul 11, 2019 4:50 pm
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 87
Views: 12419

Re: Thread from Pi4 discussion

Thanks Solskogen, will try this out! Is anyone aware of anyway to check the host is a Pi 4? /proc/cpuinfo states an incorrect model number for the Broadcom CPU (I've read the thread explaining why) - I've been told you can do bitwise operations on the revision number to get out the correct info, is ...
by techyian
Tue Jul 02, 2019 8:51 pm
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 87
Views: 12419

Re: Thread from Pi4 discussion

The issue as I've mentioned before is that "libgles1-mesa-dev" can no longer be installed in Raspbian Buster so the 1.1 Mesa headers can't be used. You can't use the GLES 2.0 headers because they don't contain the fixed function pipeline bits and therefore fail to compile a GLES 1.1 program. This al...
by techyian
Tue Jul 02, 2019 7:18 pm
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 87
Views: 12419

Re: Thread from Pi4 discussion

Hi all, I've now got OpenGLES 1.1 working with SDL2. The setup is slightly different compared to previous Pi models. 1. As "libbrcmGLESv2" should not be used anymore, you should now link to "GLESv1_CM" found in "/usr/lib/". 2. The GLES 1.1 headers found in "/opt/vc/include" should still be used. 3. ...
by techyian
Tue Jul 02, 2019 8:02 am
Forum: OpenGLES
Topic: Thread from Pi4 discussion
Replies: 87
Views: 12419

Re: Thread from Pi4 discussion

I can see that people are having success with GLES 2.0 which is great, however has anyone managed to get GLES 1.1 working with SDL2 yet? What's confusing me a bit is which headers to use and also what configuration SDL2 requires. GLES 1.1 firmware headers can still be found in /opt/vc/include, and I...
by techyian
Fri Jun 28, 2019 10:25 am
Forum: Gaming
Topic: Raspberry pi 4
Replies: 14
Views: 2004

Re: Raspberry pi 4

Thanks @PeterO - Enemy Territory is using an SDL backend and when using the GLES renderer, SDL is compiled without X11 support to force an EGL context. When compiling I'm linking to the "libbrcmGLESv2" binary and as mentioned, this works fine on a Pi 3b+, but the same setup on a Pi 4 freezes the gam...
by techyian
Thu Jun 27, 2019 5:31 am
Forum: Gaming
Topic: Raspberry pi 4
Replies: 14
Views: 2004

Re: Raspberry pi 4

Hey, I'm interested to find out more about GLES support in the Pi 4. I've read Videocore VI now supports GLES 3.0, has support for previous versions been kept in Raspbian Buster? I can see the libbrcmGLESv2 library is still present in /opt/vc/lib. I've been involved in getting Wolfenstein Enemy Terr...
by techyian
Sat Jun 15, 2019 6:08 pm
Forum: Camera board
Topic: Camera dropping frames, any advice?
Replies: 16
Views: 1064

Re: Camera dropping frames, any advice?

Thanks to you both again for the help, really appreciated, glad it's not a hardware issue.
by techyian
Sat Jun 15, 2019 6:08 am
Forum: Camera board
Topic: Camera dropping frames, any advice?
Replies: 16
Views: 1064

Re: Camera dropping frames, any advice?

Thank you HermannSW! Yes the issue does appear to be when using VLC when the file is in the containerless format. I've converted the file to MKV as you suggested using the timestamp file and it plays correctly in both omxplayer and VLC. I also tried playing the .h264 version of the video within omxp...
by techyian
Fri Jun 14, 2019 9:46 pm
Forum: Camera board
Topic: Camera dropping frames, any advice?
Replies: 16
Views: 1064

Re: Camera dropping frames, any advice?

I just use VLC to play it. I've tried directly on the Pi and also on my Windows PC, both show the same issue with the video - can you not see the artifacts that I've explained previously? I'd be very surprised if VLC was to blame here.
by techyian
Fri Jun 14, 2019 7:44 pm
Forum: Camera board
Topic: Camera dropping frames, any advice?
Replies: 16
Views: 1064

Re: Camera dropping frames, any advice?

Hi both, Apologies for the delay in replying to you, I've not had much time recently to commit to the project. I have uploaded a new test video and also the timestamp file as requested, these can be downloaded from: http://techyian.github.io/downloads/test_640_480.h264 http://techyian.github.io/down...
by techyian
Fri Apr 12, 2019 6:52 pm
Forum: Camera board
Topic: Camera dropping frames, any advice?
Replies: 16
Views: 1064

Re: Camera dropping frames, any advice?

I've uploaded a test video for you to have a look at (NoIR module). I did set the timeout value to 20 seconds for this stream but as you can see, only a few seconds are recorded with lots of artefacts seen. It'd be pretty annoying if I'm having CSI bus issues on both Pi's, different camera modules a...
by techyian
Fri Apr 12, 2019 5:44 am
Forum: Camera board
Topic: Camera dropping frames, any advice?
Replies: 16
Views: 1064

Re: Camera dropping frames, any advice?

I've tried using the command you sent over but still seeing dropped frames and artefacts in the video. As more frames are now being recorded, the stream's length is now nearer to what I'd expect it to be, albeit slightly longer than 15 seconds. I appreciate the GPU is having to scale down the video ...
by techyian
Thu Apr 11, 2019 2:45 pm
Forum: Camera board
Topic: Camera dropping frames, any advice?
Replies: 16
Views: 1064

Re: Camera dropping frames, any advice?

Sorry I should have said! I'm just using raspivid:

raspivid -o test.h264 -fps 15 -b 1300000 -w 640 -h 480 -t 15000

Also tried with MMALSharp and seeing same issue with that too.
by techyian
Thu Apr 11, 2019 1:22 pm
Forum: Camera board
Topic: Camera dropping frames, any advice?
Replies: 16
Views: 1064

Camera dropping frames, any advice?

Hi, I'm having some trouble with recording video using raspivid and it looks like I'm getting a lot of dropped frames. I have two Pi's (2B and 3B+) and also two camera modules (official 8MP and SUNNY NoIR). On each device and camera module the videos I'm taking are skipping large chunks of the video...
by techyian
Thu Jan 24, 2019 10:10 pm
Forum: Camera board
Topic: MMALSharp - C# API for Raspberry Pi Camera
Replies: 36
Views: 6151

Re: MMALSharp - C# API for Raspberry Pi Camera

I'm excited to announce version 0.5.0 of MMALSharp has been released :)

https://github.com/techyian/MMALSharp/r ... tag/v0.5.0
by techyian
Tue Jan 22, 2019 5:06 pm
Forum: Camera board
Topic: MMALSharp - C# API for Raspberry Pi Camera
Replies: 36
Views: 6151

Re: MMALSharp - C# API for Raspberry Pi Camera

Yes that was it!! Silly me. I can now get the next release pushed out as that was the last sticking point for it. Thank you :)
by techyian
Mon Jan 21, 2019 10:48 am
Forum: Camera board
Topic: MMALSharp - C# API for Raspberry Pi Camera
Replies: 36
Views: 6151

Re: MMALSharp - C# API for Raspberry Pi Camera

I think you're right - I do handle the event buffer but I can now see the bit of code where I'm also saving that to the output file too - what a whally! I'll remove that this evening and post back.

Thanks so much for putting me on the right track.
by techyian
Sun Jan 20, 2019 10:36 am
Forum: Camera board
Topic: MMALSharp - C# API for Raspberry Pi Camera
Replies: 36
Views: 6151

Re: MMALSharp - C# API for Raspberry Pi Camera

I've had a look at the decoded file in a hex editor and it does look as though there's 96 bytes of metadata at the beginning, so I'm assuming the encoder doesn't want this data in order to produce a valid output. Do you know whether this is a constant length of metadata or could it potentially chang...
by techyian
Sat Jan 19, 2019 3:32 pm
Forum: Camera board
Topic: MMALSharp - C# API for Raspberry Pi Camera
Replies: 36
Views: 6151

Re: MMALSharp - C# API for Raspberry Pi Camera

Thanks for giving such a detailed reply, it's really appreciated. I'm quite sure I'm populating the buffer with the correct amount of data as the decoder output port buffer size matches the encoder input port buffer size. I've made some more progress since your reply - I've found that if I offset th...
by techyian
Thu Jan 17, 2019 11:05 am
Forum: Camera board
Topic: MMALSharp - C# API for Raspberry Pi Camera
Replies: 36
Views: 6151

Re: MMALSharp - C# API for Raspberry Pi Camera

Hi, so I'm up and running again. I've made some progress here and I think it was my attempt at filling the buffer with data however it's still not 100%. I've uploaded the latest to http://techyian.github.io/downloads/buck_bunny_improvement.h264 . As you can see, there is no longer the sliding effect...
by techyian
Wed Jan 16, 2019 8:46 am
Forum: Camera board
Topic: MMALSharp - C# API for Raspberry Pi Camera
Replies: 36
Views: 6151

Re: MMALSharp - C# API for Raspberry Pi Camera

I may have an issue with the way I'm feeding the buffers as the way I'm taking into account the RTP header might not be right. It certainly sounds like it could be that. I'll give it a go this evening and let you know.

Go to advanced search