Giter Site home page Giter Site logo

GPU Support about raspindi HOT 7 CLOSED

raspberry-pi-camera avatar raspberry-pi-camera commented on July 29, 2024
GPU Support

from raspindi.

Comments (7)

rf152 avatar rf152 commented on July 29, 2024 1

Having looked further into this, there is a newer version of the NDI library that appears to support Raspberry Pi specifically.

I will have a look at this this week, and see if it works better.

from raspindi.

rf152 avatar rf152 commented on July 29, 2024

I haven't looked at this, although it looks interesting. I might have a look at the MMAL library and see if it can do any of the processing (which is pretty much just adding an alpha channel).

If you want to look yourself by all means fork and create a pull request, I'd be interested in seeing how well it performs if we can offload some of that processing.

from raspindi.

rf152 avatar rf152 commented on July 29, 2024

Ok, I've been looking at this, and got a little bit stuck down a rabbit hole. Keep your eyes open for v2.0.0, which completely rewrites how it retrieves the images from the camera, and from my limited testing so far works much, much better (smooth video even at 1920x1080).

from raspindi.

rf152 avatar rf152 commented on July 29, 2024

Let me know how you get on with version 2.0.0; You should see an improvement on the framerate thing.

from raspindi.

jgillamtmforum avatar jgillamtmforum commented on July 29, 2024

Great news thanks - I’ll test it out and report back.

from raspindi.

jgillamtmforum avatar jgillamtmforum commented on July 29, 2024

@rf152 - works a treat at 1280x720 @ 30fps in a Model 3B+ - I have monitored the output and it holds up at 30fps, video is smooth. Searching around on monitoring GPU, seems impossible on the rPi. But a `pi@raspberrypi:~ $ sudo vcdbg reloc stats

'Relocatable heap version 4 found at 0x3c000000
total space allocated is 44M, with 44M relocatable, 0 legacy and 0 offline
0 legacy blocks of size 2359296

small_allocs : 33
allocs : 173
alloc_fails : 0
legacy_block_fails : 0
compactions : 0
discard_compactions : 0
aggressive_compactions : 0
aggressive_compaction_waits : 0
aggressive_compaction_timeouts: 0
locks : 0
small_locks : 0
free list at 0x3cfc1f00
15M free memory in 2 free block(s)
largest free block is 15M bytes'

Shows it's in use (before largest block is 235M bytes) which matched the rPi mem split

Slightly jerky at 1080p, also noticed a warning Aspect ratio forced to: 1920 x 1088 when the Conference file is set
neopixel_path = "/tmp/neopixel.state"; camera_number = "-1"; height="1080"; width="1920"; fps="30";
`

I'll say again - awesome simple implementation of a raspberryPi studio camera. Thanks

from raspindi.

rf152 avatar rf152 commented on July 29, 2024

Yeah, the locked ratio is to do with the way that the camera captures; it has all sort of weird artifacts when you force it to 1920x1080. It's supposed to crop, but I couldn't get it to work properly. I might revisit it further down the line.

from raspindi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.