Go to advanced search

by dickon
Mon Oct 08, 2018 10:28 am
Forum: OpenMAX
Topic: How to tunnel camera to video splitter to image encode?
Replies: 36
Views: 12199

Re: How to tunnel camera to video splitter to image encode?

It's been less than a fortnight, and your example URL is a 404...
by dickon
Tue Oct 02, 2018 3:44 pm
Forum: OpenMAX
Topic: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?
Replies: 27
Views: 10615

Re: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?

It's projects that are pushing the hardware that have the interesting bits - just how far can this little mobile phone chip with a ~8 year old GPU actually get people?! Other than 4k and HEVC (and even that is being achieved in software at 1080p30) it's actually still holding its own pretty damn we...
by dickon
Mon Oct 01, 2018 3:42 pm
Forum: OpenMAX
Topic: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?
Replies: 27
Views: 10615

Re: hw-encode opengl output without glReadPixels in 2018 ("fastpath")?

Code: Select all

if((((x >> 1) << 1) % 4) == 0 && (((y >> 1) << 1) % 4) == 0)
is a *really* entertainingly nasty way to write

Code: Select all

if (!((x & 2) || (y & 2)))
too... OK, a proper compiler should optimise both to

Code: Select all

tst	rx, #2
tsteq	ry, #2
bne	...
but it's the principle of the thing...
by dickon
Fri Sep 28, 2018 3:18 pm
Forum: OpenMAX
Topic: OpenMAX - Capturing raw decoded H.264 frames
Replies: 8
Views: 5082

Re: OpenMAX - Capturing raw decoded H.264 frames

The OrangePi and whatnot are all knock-offs, mostly based on mobile phone chipsets which may have non-Android firmware available, but won't have their GPUs usefully available other than on Android, or on Android kernels with a non-Android userland (which is less useful than you'd think). Anything wi...
by dickon
Thu May 10, 2018 2:53 pm
Forum: Camera board
Topic: omxmotion
Replies: 33
Views: 4083

Re: omxmotion

For info, https://github.com/raspberrypi/firmware/issues/698 Yes, I guess a post on the IL board would have been logical. TBH I forget it's there as I hate IL that much, and more often things are on the camera sub-forum (as this thread is). I have a watch on OpenMAX, but not on the camera. So many ...
by dickon
Thu May 10, 2018 1:12 pm
Forum: Camera board
Topic: omxmotion
Replies: 33
Views: 4083

Re: omxmotion

"Here" as on this thread? Are you really expecting a complete search through the forums for details of any and all app that may or may not be affected by each and every change? No, no, of course not. I meant on the OpenMAX forum; just a quick post to say the API was changing. I wouldn't expect a pe...
by dickon
Thu May 10, 2018 11:43 am
Forum: Camera board
Topic: omxmotion
Replies: 33
Views: 4083

Re: omxmotion

Hmm. I didn't see that announcement. It might have been helpful to note it here, as my code breaks if they're not in two buffers...
by dickon
Thu May 10, 2018 10:45 am
Forum: Camera board
Topic: omxmotion
Replies: 33
Views: 4083

Re: omxmotion

Hmm. I don't seem to be seeing PPS packets any longer, which means the openoutput() call to setup the streaming output never triggers. Fixed, by waiting for an arbitrary five packets before just trying it. There is some corruption still; I'll look into it when I have some time. In the meantime, -c U...
by dickon
Wed May 09, 2018 10:42 pm
Forum: Troubleshooting
Topic: Pi 3B+ not *re*booting (netboot)
Replies: 3
Views: 252

Re: Pi 3B+ not *re*booting (netboot)

Blast. Thankyou. Although that thread doesn't mention any of the workarounds you mention.
by dickon
Wed May 09, 2018 3:43 pm
Forum: Troubleshooting
Topic: Pi 3B+ not *re*booting (netboot)
Replies: 3
Views: 252

Pi 3B+ not *re*booting (netboot)

I'm seeing an odd one. I've just this morning received a new Pi 3B+, set it to network boot, and that all works. When I come to shutdown -r now it shuts down correctly, reboots, and does nothing visible. Checking in the boot server logs, I see it's failing to load start.elf: May 9 14:26:57 rtr-dicko...
by dickon
Tue May 08, 2018 8:47 am
Forum: Camera board
Topic: omxmotion
Replies: 33
Views: 4083

Re: omxmotion

The -c address has to be something that avio_open() can handle as an output. I've mostly used -- and tested -- multicast, as it works on my network and does what I want it to, but in theory, anything that your libav* libraries have been compiled with should be supported. https://trac.ffmpeg.org/wiki...
by dickon
Mon May 07, 2018 8:23 pm
Forum: Camera board
Topic: omxmotion
Replies: 33
Views: 4083

Re: omxmotion

I'm afraid I can't remember what state I left this code in -- I haven't actually used it in a while. It was mostly just another toy plaything that I knocked up because I could. On the other hand, I do have a new Pi on order (to replace a P2 in the loft, as I want the Bluetooth), which will free up t...
by dickon
Sun May 06, 2018 8:20 am
Forum: Camera board
Topic: omxmotion
Replies: 33
Views: 4083

Re: omxmotion

It's a multicast address. Ensure that you're not using wifi -- multicast *really* breaks wifi under most conditions -- and use the same address on omxmotion's commandline as vlc's. ie,

Code: Select all

vlc -v udp://@224.0.0.40:5554
I never got around to doing anything with RTSP.
by dickon
Thu Apr 19, 2018 7:37 pm
Forum: Camera board
Topic: omxmotion
Replies: 33
Views: 4083

Re: omxmotion

Did it work?
by dickon
Tue Apr 17, 2018 10:32 am
Forum: Camera board
Topic: omxmotion
Replies: 33
Views: 4083

Re: omxmotion

I thought that might be it. I wasn't blaming you; apologies if it came out like that. ffmpeg's attitude is deeply unhelpful. 'The API isn't stable, so ship your own copies of libav* with all your programs, preferably statically-linked' is *really* annoying and completely fails to address the inevita...
by dickon
Tue Apr 17, 2018 9:37 am
Forum: Camera board
Topic: omxmotion
Replies: 33
Views: 4083

Re: omxmotion

Compiling on a recentish Raspbian gets me a different error: root@tellypi:~/omxmotion# make gcc -Wall -Wno-format -g -I/opt/vc/include/IL -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACRO...
by dickon
Mon Mar 27, 2017 6:04 pm
Forum: OpenMAX
Topic: Play video and "record"
Replies: 9
Views: 4142

Re: Play video and "record"

Ah. ilclient. I've not done anything with that. Aside from the 'int fd' (which should be a FILE * as you're using libc file calls, not OS syscalls), the only thing that leaps out at me is the ilclient_get_output_buffer() call. Do you really need to call this each time around the loop? Just call it o...
by dickon
Mon Mar 27, 2017 5:04 pm
Forum: OpenMAX
Topic: Play video and "record"
Replies: 9
Views: 4142

Re: Play video and "record"

Bung it on github somewhere?

Worth noting that the only difference between what you're doing and what my omxtx transcoder does (in monitor mode) is use a webcam source instead of a file.
by dickon
Mon Mar 27, 2017 4:51 pm
Forum: OpenMAX
Topic: Play video and "record"
Replies: 9
Views: 4142

Re: Play video and "record"

Can't do much without the code to look at...

I don't believe the *_media components have been implemented, and, as you say, there's no documentation for them anyway.
by dickon
Wed Mar 22, 2017 6:51 pm
Forum: OpenMAX
Topic: audio_render time latency
Replies: 3
Views: 2756

Re: audio_render time latency

Have you thought about using a clock? If I'm understanding your problem correctly, it would seem to be the right thing to do.
by dickon
Sun Mar 12, 2017 3:15 pm
Forum: OpenMAX
Topic: Play video and "record"
Replies: 9
Views: 4142

Re: Play video and "record"

You could probably use either approach on a 3, given the extra CPU speed available. I'd go with the video_splitter component myself.

There's documentation under the firmware repository at https://github.com/raspberrypi/firmware ... components.
by dickon
Wed Feb 08, 2017 9:31 am
Forum: Camera board
Topic: Realtime motion detection using raspivid
Replies: 6
Views: 2167

Re: Realtime motion detection using raspivid

Well, I wrote https://github.com/dickontoo/omxmotion/ which seems to basically work, but I haven't done anything with it in a while.
by dickon
Sun Nov 20, 2016 4:35 pm
Forum: OpenMAX
Topic: OpenMax video_render scaling output
Replies: 10
Views: 4880

Re: OpenMax video_render scaling output

There's a resize component you can drop into the pipeline, between the decoder and renderer. Just configure its input port parameters to the same as the decoder's output, and the output port to the native screen size, and it should all work.
by dickon
Wed Nov 16, 2016 12:33 pm
Forum: Bare metal, Assembly language
Topic: STICKY: Bare Metal resources
Replies: 25
Views: 100559

Re: Bare Metal resources

This may be of use to some: Cypress have bought Broadcom's wifi business and released all the docs. They're at http://www.cypress.com/search/all?f%5B0%5D=meta_type%3Atechnical_documents&f%5B1%5D=resource_meta_type%3A575&f%5B2%5D=field_related_products%3A110101 with the Pi3's wifi / BT controller at ...

Go to advanced search