Go to advanced search

by Ace Rimmer
Mon Sep 05, 2016 6:02 am
Forum: Beginners
Topic: error code
Replies: 6
Views: 1129

Re: error code

Thanks for taking the time to reply, earlier i used "pip" and then copy_to then worked. apt-cache etc now replies version 1.10-1 !! Are you running Raspbian Jessie or Wheezy? Raspbian Wheezy only has python-picamera 1.10, while Jessie has 1.12 Just like me! - Wheezy! Managed to wipe my original cod...
by Ace Rimmer
Mon Sep 05, 2016 2:39 am
Forum: Beginners
Topic: error code
Replies: 6
Views: 1129

Re: error code

Thanks for taking the time to reply,

earlier i used "pip" and then copy_to then worked.
apt-cache etc now replies version 1.10-1 !!
My head is going to explode :?
by Ace Rimmer
Sun Sep 04, 2016 9:21 pm
Forum: Beginners
Topic: error code
Replies: 6
Views: 1129

Re: error code

Yes that is the code I copied, I tried to update picamera as per the instructions at the beginning of the article you suggested.

Code: Select all

$ sudo apt-get update
$ sudo apt-get install python-picamera python3-picamera
The reply I get is that "python-picamera is already the newest version"
Where to now?
by Ace Rimmer
Sun Sep 04, 2016 6:12 am
Forum: Beginners
Topic: Using a hat - best way to switch out cameras?
Replies: 3
Views: 640

Re: Using a hat - best way to switch out cameras?

This item was suggested to me when I was interested in switching between cameras, it might be suitable for you, although from memory it was expensive.

http://www.ivmech.com/magaza/en/develop ... lexer-p-90

A dual port module is also available.
by Ace Rimmer
Sat Sep 03, 2016 10:20 pm
Forum: Beginners
Topic: error code
Replies: 6
Views: 1129

error code

Can anyone explain why I get this error ? the code is copied from Pi documentation - import io import random import picamera def motion_detected(): # Randomly return True (like a fake motion detection routine) return random.randint(0, 10) == 0 camera = picamera.PiCamera() stream = picamera.PiCameraC...
by Ace Rimmer
Fri Sep 02, 2016 10:44 pm
Forum: Camera board
Topic: Time limit for circular buffer ?
Replies: 10
Views: 1999

Re: Time limit for circular buffer ?

Ace Rimmer wrote:...... After an hour or so I had it doing what I wanted it to.......
It turns out I still need to record this video in 2 halves so I do need the "copy_to" but I always get
"AttributeError: PiCameraCircularIO object has no attribute 'copy_to' "

What does this mean? and how can I rectify it? :?
by Ace Rimmer
Fri Sep 02, 2016 9:59 pm
Forum: Python
Topic: pigpio & picamera
Replies: 0
Views: 324

pigpio & picamera

Hi everyone, a quick question before my head explodes. Is it possible to read data from 2 sensors(I2C) using pigpio (or similar) while recording video using picamera?
by Ace Rimmer
Mon Aug 29, 2016 9:46 pm
Forum: Beginners
Topic: omxplayer displays video really fast
Replies: 4
Views: 1193

Re: omxplayer displays video really fast

Tried using MP4Box - same problem as before - the MP4 file plays fast too!
It's a real pain copying files over to my laptop to convert them just so I can play them at the right speed.
by Ace Rimmer
Mon Aug 29, 2016 5:59 am
Forum: Camera board
Topic: Time limit for circular buffer ?
Replies: 10
Views: 1999

Re: Time limit for circular buffer ?

:shock: Panic over. I cut and pasted some simpler code from the Pi documents and got it working, then copied the relevant lines to my script. After an hour or so I had it doing what I wanted it to. :) (If only I could get omxplayer to play at the right speed!!)
by Ace Rimmer
Mon Aug 29, 2016 12:45 am
Forum: Camera board
Topic: Time limit for circular buffer ?
Replies: 10
Views: 1999

Re: Time limit for circular buffer ?

I tried to start with some very simple code...(copied from Pi documentation) import io import random import picamera def motion_detected(): # Randomly return True (like a fake motion detection routine) return random.randint(0, 10) == 0 camera = picamera.PiCamera() stream = picamera.PiCameraCircularI...
by Ace Rimmer
Sun Aug 28, 2016 10:15 pm
Forum: Camera board
Topic: Time limit for circular buffer ?
Replies: 10
Views: 1999

Re: Time limit for circular buffer ?

Thanks everyone. It looks like what I want to do is possible, the 5 seconds is not very critical. I'll think I'll just have to start with some basic code and take it from there. @paulhothersall I may take you up on the offer of a PM if I get hopelessly stuck. I'm hoping that the trigger event can st...
by Ace Rimmer
Sat Aug 27, 2016 10:21 pm
Forum: Camera board
Topic: Time limit for circular buffer ?
Replies: 10
Views: 1999

Re: Time limit for circular buffer ?

Pardon my ignorance, was that a yes or a no? I intend to RECORD to a usb stick or an sd card with a resolution of 1980x1080, 25fps. ( 5 seconds before trigger event plus 2 minutes after event) All done with an A+.
by Ace Rimmer
Sat Aug 27, 2016 12:19 am
Forum: Camera board
Topic: Time limit for circular buffer ?
Replies: 10
Views: 1999

Time limit for circular buffer ?

Hi, I'm interested in writing a Python script to record some video with a circular buffer, I've seen somewhere that there is a time limit (depending on video resolution) of 20 seconds, does the time limit only refer to the portion of video contained in the circular buffer? or does it refer to the le...
by Ace Rimmer
Fri Jun 03, 2016 1:37 pm
Forum: Beginners
Topic: Connecting a webcam.
Replies: 2
Views: 505

Re: Connecting a webcam.

Thanks Mike, at $4 a pop including postage this one doesn't have a name! :? I'll plug it in and see what the Pi tells me. I'll also have a good read of the link you posted.
by Ace Rimmer
Fri Jun 03, 2016 1:44 am
Forum: Beginners
Topic: Connecting a webcam.
Replies: 2
Views: 505

Connecting a webcam.

Hello everyone, I'm about to connect a webcam to my Pi B+, do I need to find drivers, load software etc or are they pretty much plug n play? I don't want to use it as a webcam as such - I just need a second camera. Any help will be appreciated.
by Ace Rimmer
Sat Apr 02, 2016 3:26 am
Forum: Beginners
Topic: omxplayer displays video really fast
Replies: 4
Views: 1193

Re: omxplayer displays video really fast

oxmplayer --fps 25 filepath (if the h264 video is recorded with 25 FPS). I tried what you suggested, (in my case --fps 49) unfortunately it made no difference. Tried various values for --fps, none of which made any difference. It's interesting to note that the converter program on my laptop did not...
by Ace Rimmer
Mon Mar 28, 2016 12:54 am
Forum: Beginners
Topic: Alternative Power Input
Replies: 2
Views: 698

Alternative Power Input

The space my A+ will eventually end up in is very small and only has a couple of millimeters to spare next to the micro usb socket where the power would normally enter. I've seen various posts on this forum (and others) which say the gpio pins can be used albeit without adequate protection.I've also...
by Ace Rimmer
Sun Mar 27, 2016 11:31 pm
Forum: Beginners
Topic: omxplayer displays video really fast
Replies: 4
Views: 1193

omxplayer displays video really fast

I've been using my B+ to capture 20 second videos using a Python script and then view them using omxplayer - no problems until I updated and upgraded Raspian. Now when I try to view the videos omxplayer displays the video as if it's in fast forward :o . I tried converting the .h264 files to mp4's on...
by Ace Rimmer
Thu Feb 25, 2016 4:27 am
Forum: Camera board
Topic: Annotate_text and "%a"
Replies: 6
Views: 1119

Re: Annotate_text and "%a"

Thanks for clearing that up for me 6by9, looks like it's back to the drawing board. However I am curious how the following piece of code can update the annotation while video is being recorded to file start = dt.datetime.now() strrt = time() camera.annotate_text =(' #2" ')+dt.datetime.now().strftime...
by Ace Rimmer
Wed Feb 24, 2016 12:59 pm
Forum: Camera board
Topic: Annotate_text and "%a"
Replies: 6
Views: 1119

Re: Annotate_text and "%a"

6by9 wrote:It helps if you mention that you're using RPi Web Cam Interface then.
I'm not, the way I read the above article it sounded like they were using %a during video capture to a file while setting up RPi Web Cam Interface. Perhaps I was mistaken.
by Ace Rimmer
Wed Feb 24, 2016 12:08 pm
Forum: Camera board
Topic: Annotate_text and "%a"
Replies: 6
Views: 1119

Re: Annotate_text and "%a"

6by9 wrote:Don't know where you got %a from. -a set up the annotation for raspivid and still, but that is only parsed at startup.
I found it here.........https://github.com/silvanmelchior/RPi_C ... issues/231 :?
by Ace Rimmer
Tue Feb 23, 2016 10:02 pm
Forum: Camera board
Topic: Annotate_text and "%a"
Replies: 6
Views: 1119

Annotate_text and "%a"

I believe it is possible to update text annotaion (with readings from sensors) while recording is taking place using " %a ". Is this correct? Can anyone point me in the direction of some example code (python) or other documentation?
by Ace Rimmer
Mon Feb 22, 2016 5:29 am
Forum: Troubleshooting
Topic: Issue with changing USB permissions, and accessing USB
Replies: 3
Views: 872

Re: Issue with changing USB permissions, and accessing USB

If the drive is FAT/FAT32 then ALL security stops at the mount command. If root mounts it, only root can access it. The GUI has an automounter which will mount a USB stick with uid=pi and gid=pi. I'm having similar problems, is there a way around it? Since I did an update/upgrade a couple of weeks ...
by Ace Rimmer
Sun Feb 14, 2016 12:31 am
Forum: Python
Topic: kill picamera from keyboard
Replies: 3
Views: 2413

Re: kill picamera from keyboard

I've been messing around alot with the cam module lately, I use CTRL+C to quit from the preview screen if I dont want to continue with the rest of the script.
by Ace Rimmer
Sun Feb 14, 2016 12:11 am
Forum: Python
Topic: Code for MPU-6050
Replies: 4
Views: 734

Re: Code for MPU-6050

Yes, that code worked fine, fairly easy to follow and to trim down to give the readings I wanted. The only trouble I had was setting register 28 to use the 16g range. For some reason I had to write "30" to the register instead of "3" like I was expecting to :? Strangely enough this was the same regi...

Go to advanced search