Go to advanced search

by draco
Thu Sep 26, 2019 2:30 pm
Forum: Advanced users
Topic: Multiple output streams from GPU with different frame rates?
Replies: 5
Views: 224

Re: Multiple output streams from GPU with different frame rates?

Thank you for the very detailed explanation. I will also keep the TCP chunk size in mind. :-) I ended up creating a buffer pool of 4 buffers. Whenever I get a fragmented frame, I store the buffer pointer away and return from the callback function without releasing the buffer. When I get the MMAL_BUF...
by draco
Tue Sep 24, 2019 7:03 am
Forum: Advanced users
Topic: Multiple output streams from GPU with different frame rates?
Replies: 5
Views: 224

Re: Multiple output streams from GPU with different frame rates?

You're right that none of the components allow changing framerate. I tried setting the framerate on the ISP component but that did nothing. Seeing that MJPEG outputs full frames each time, I ended up MJPEG encoding at full framerate, then save once every N frames and discard the rest. Which method i...
by draco
Mon Sep 23, 2019 1:59 pm
Forum: Advanced users
Topic: Multiple output streams from GPU with different frame rates?
Replies: 5
Views: 224

Re: Multiple output streams from GPU with different frame rates?

I have figured it out myself. The camera preview and video ports must have the same frame rate. The only place I found possible to set different frame rate is on the ISP output.

My other question remains: what is the correct h264 encoder buffer size since buffer_size_recommended is wrong?
by draco
Mon Sep 23, 2019 1:05 am
Forum: Advanced users
Topic: Multiple output streams from GPU with different frame rates?
Replies: 5
Views: 224

Multiple output streams from GPU with different frame rates?

Hi guys, I currently have a program that sets up a H264 output and a MJPEG lower res output via MMAL interface. Camera Preview --> ISP (resize) --> MJPEG encoder Camera Video --> H264 encoder Camera Still It works great, but is it possible to get the GPU to output the MJPEG at a reduced frame rate? ...
by draco
Thu Feb 04, 2016 11:42 pm
Forum: Camera board
Topic: Add GPS Exif data in realtime
Replies: 27
Views: 7769

Re: Add GPS Exif data in realtime

I can't get valgrind to run. Any volunteer wants to look into it?
by draco
Tue Feb 02, 2016 1:33 am
Forum: Camera board
Topic: Add GPS Exif data in realtime
Replies: 27
Views: 7769

Re: Add GPS Exif data in realtime

I've reworked the code a little. Now it starts a thread to read the GPS information and caches the GPS information for up to 5 seconds. If it loses GPS lock, the GPS cache will be cleared after 5 seconds. Latest source available here: https://github.com/raspberrypi/userland/pull/286 Latest binary av...
by draco
Tue Jan 12, 2016 4:55 am
Forum: Camera board
Topic: Add GPS Exif data in realtime
Replies: 27
Views: 7769

Re: Add GPS Exif data in realtime

I tried it with Jessis but it didn't work with current version of libgps (v21). I tried to make a symbolic link to libgps.so but the result was a Segmentation fault There's API changes going from libgps20 (Wheezy) to libgps21 (Jessie). I have attached a new version of raspistill that supports libgp...
by draco
Tue Aug 25, 2015 6:08 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI driver latency and a possible solution
Replies: 241
Views: 138727

Re: SPI driver latency and a possible solution

Hi, I'm trying to push as much data as possible through my CAN bus. I've been following this thread, but not sure what is the most efficient combination of drivers that gives me the highest throughput. Here's my setup: - MCP2515 CAN controller - Raspbian, kernel 4.1.6 - Running spi_bcm2835 driver wi...
by draco
Wed Jul 08, 2015 1:21 pm
Forum: Camera board
Topic: Add GPS Exif data in realtime
Replies: 27
Views: 7769

Re: Add GPS Exif data in realtime

If it's less than 10 metres then caching isn't any worse than a current locked fix. Only problem is, without GPS lock and without additional sensors onboard, there's no way to work out the distance traveled. On second thought, without GPS lock, we could estimate our current latlong from our last kn...
by draco
Wed Jul 08, 2015 5:27 am
Forum: Camera board
Topic: Add GPS Exif data in realtime
Replies: 27
Views: 7769

Re: Add GPS Exif data in realtime

I am particularly pleased that it doesn't 'bomb out' if the dongle is not connected, or doesn't have GPS lock :) I'm not sure which is the best strategy when receiver losses GPS lock. My previous version caches the GPS data, and uses the cached data when it losses GPS lock. This is problematic as s...
by draco
Mon Jul 06, 2015 2:23 pm
Forum: Camera board
Topic: Add GPS Exif data in realtime
Replies: 27
Views: 7769

Re: Add GPS Exif data in realtime

I've increased the resolution of the GPS latlong information in the EXIF tags.
Attached are the updated binaries.
Cheers.
by draco
Wed Jul 01, 2015 2:53 am
Forum: Camera board
Topic: Add GPS Exif data in realtime
Replies: 27
Views: 7769

Re: Add GPS Exif data in realtime

I've updated the pull-request with dynamic loading of libgps. I've also attached 2 binary files for anyone who is interested but doesn't want to go through the compilation process. raspistill.gpsd is the version in the pull-request as of today. Enable it with "-gps" option. If enabled, it expects li...
by draco
Fri Jun 19, 2015 8:04 am
Forum: Camera board
Topic: Add GPS Exif data in realtime
Replies: 27
Views: 7769

Re: Add GPS Exif data in realtime

For anyone who is interested, I've modified raspistill to read directly from gpsd and write GPS info to EXIF for my own use. This give me real-time GPS EXIF when raspistill is in timelapsed mode. It may be of use to others. I've hard coded a few things, cut lots of corners, so don't expect fully tes...
by draco
Wed Jun 03, 2015 2:26 am
Forum: Camera board
Topic: Stereoscopic camera capture (for COMPUTE MODULE) - now implemented (2014).
Replies: 156
Views: 64926

Re: Stereoscopic camera capture - now implemented.

Is it possible to have the 2 cameras on different ISO & shutter speed configuration? This is useful when both cameras are not exactly the same, and they need to be fine tuned individually (also helps with my post processing).
by draco
Thu May 28, 2015 6:56 am
Forum: Camera board
Topic: Stereoscopic camera capture (for COMPUTE MODULE) - now implemented (2014).
Replies: 156
Views: 64926

Re: Stereoscopic camera capture - now implemented.

If you capture images from the second sensor with sharpness 100 and compare to the stereoscopic output do you get the same output? There is some variation between modules, and it could be that the second sensor isn't focused at quite the same distance as the first one. I've configured both my camer...
by draco
Wed May 27, 2015 1:49 am
Forum: Camera board
Topic: Stereoscopic camera capture (for COMPUTE MODULE) - now implemented (2014).
Replies: 156
Views: 64926

Re: Stereoscopic camera capture - now implemented.

That sounds like a bug to me as you shouldn't need to change anything from the app side. The tuners should operate in a master/slave mode. I'm guessing that the main one that is ignored is shutter speed as that goes direct to the sensor and it appears from the source that I'm only telling one senso...
by draco
Tue May 26, 2015 7:11 am
Forum: Camera board
Topic: Stereoscopic camera capture (for COMPUTE MODULE) - now implemented (2014).
Replies: 156
Views: 64926

Re: Stereoscopic camera capture - now implemented.

Great work on the stereo camera support. Thank you 6by9. I've been testing the dual camera set up with manual camera settings, but it appears that the camera settings only apply to the primary camera. How do I apply my camera settings to both cameras? The command that I'm running: raspistill -v -sh ...
by draco
Tue Sep 30, 2014 1:00 am
Forum: Graphics, sound and multimedia
Topic: Day/Night Baby Monitor with live audio video via RTSP & RTMP
Replies: 2
Views: 3908

Re: Day/Night Baby Monitor with live audio video via RTSP &

Hi really like your work. Have to try it by myself. Just wondering how smooth the video playback will be ? And is it realtime or what is the delay of your videostream. Already tried different configurations with raspivid and ffmpeg (codec flv) but didnt get such a high quality without having a smoo...
by draco
Mon Sep 29, 2014 7:29 am
Forum: Graphics, sound and multimedia
Topic: Day/Night Baby Monitor with live audio video via RTSP & RTMP
Replies: 2
Views: 3908

Day/Night Baby Monitor with live audio video via RTSP & RTMP

Introducing bbPiCam baby monitor. https://github.com/jasaw/bbPiCam/raw/master/docs/bbPiCam_mini.jpg Just want to share my experience of building a Raspberry Pi based baby monitor so parents who are interested can use this post as a starting point and avoid the mistakes I made. This is not a step by ...
by draco
Mon Aug 25, 2014 4:30 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 926
Views: 473348

Re: I2S: Anyone got it running? (answer is yes!)

Hi everyone, I've got the mbed audio codec board (TLV320AIC23) connected to my pi, and loaded the appropriate drivers (from koalo's repo). I soldered a mic and front-end circuit to the MIC BIAS and MIC IN for recording purpose. Recording at 48kHz 16-bit appears to work, except roughly every 60,000 ...
by draco
Thu Aug 21, 2014 3:16 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 926
Views: 473348

Re: I2S: Anyone got it running? (answer is yes!)

Hi everyone, I've got the mbed audio codec board (TLV320AIC23) connected to my pi, and loaded the appropriate drivers (from koalo's repo). I soldered a mic and front-end circuit to the MIC BIAS and MIC IN for recording purpose. Recording at 48kHz 16-bit appears to work, except roughly every 60,000 ...
by draco
Fri Aug 15, 2014 7:08 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread.
Replies: 926
Views: 473348

Re: I2S: Anyone got it running? (answer is yes!)

Hi everyone, I've got the mbed audio codec board (TLV320AIC23) connected to my pi, and loaded the appropriate drivers (from koalo's repo). I soldered a mic and front-end circuit to the MIC BIAS and MIC IN for recording purpose. Recording at 48kHz 16-bit appears to work, except roughly every 60,000 s...

Go to advanced search