WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Pi camera board, raspivid, raspistill, VideoCore userland tools  (Read 7615 times)

Offline Mithotyn

  • Newbie
  • *
  • Posts: 11
Pi camera board, raspivid, raspistill, VideoCore userland tools
« on: December 12, 2013, 09:33:44 AM »
Hi!

Is there any chance to port the VideoCore userland tools (eg for the camera board -> RaspiStill, RaspiVid) to PiCore?

I am new to PiCore and not realy familiar with the whole Broadcom license issues, so excuse me if the question was already asked or the answer is self-evident.

Alternatively is there another possibility to use the pi camera board for streaming video with PiCore?

Thanks in Advance
Joachim Schmidt

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Pi camera board, raspivid, raspistill, VideoCore userland tools
« Reply #1 on: December 12, 2013, 11:01:12 AM »
Hi

userland video tools can be redistributed, so I will add them to the repo. I do not have a cam so can't test it in piCore. Contribution in testing is more than welcome!

Bela
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Pi camera board, raspivid, raspistill, VideoCore userland tools
« Reply #2 on: December 12, 2013, 05:18:29 PM »

Is there any chance to port the VideoCore userland tools (eg for the camera board -> RaspiStill, RaspiVid) to PiCore?


Added to repo, see rpi-videocore.tcz
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Mithotyn

  • Newbie
  • *
  • Posts: 11
Re: Pi camera board, raspivid, raspistill, VideoCore userland tools
« Reply #3 on: December 16, 2013, 03:02:43 AM »
Hi Bela,

many thanks! I will give it a try asap.

Joachim

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Pi camera board, raspivid, raspistill, VideoCore userland tools
« Reply #4 on: October 14, 2015, 01:42:16 AM »
Resurrecting an old post, sort of.

Came across this.
http://raspberrypi.stackexchange.com/questions/27082/how-to-stream-raspivid-to-linux-and-osx-using-gstreamer-vlc-or-netcat

netcat ie nc is already in piCore.
/opt/vc/bin/raspivid -t 0 -w 300 -h 300 -hf -fps 20 -o - | nc <IP-OF-THE-CLIENT> 2222

Don't have a pi camera here so can't test it:(

At client need a viewer?
https://www.raspberrypi.org/forums/viewtopic.php?f=26&t=7557
http://gilesbathgate.com/2007/11/30/streaming-video-using-netcat/

busybox-httpd and some scripting?
Sounds too simple.

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Pi camera board, raspivid, raspistill, VideoCore userland tools
« Reply #5 on: October 20, 2015, 03:22:31 AM »
Hi Bela,

Thanks for updating rpi-vc.tcz

Need to figure out how to add tc to the video user group one day.
Sudo vcgencmd measure_temp, raspistill etc works.
Want to add cpu temp to my web pages.
Can still get at it via /sys/class/thermal/....

#!/bin/sh

#stats.cgi

echo "Content-type: text/html"
echo ""
echo "<h2> Stepper Motor controller server stats </h2>"
echo "<body>"
echo "<h3> Memory used </h3>"
free
echo "<h3> System Type </h3>"
uname -a
echo "<h3> Uptime  </h3>"
uptime
echo "<h3> CPU temp </h3>"
sudo vcgencmd measure_temp
echo "</body>"


The above code works.

Will be interesting if the python based picamera works on micropython.
http://picamera.readthedocs.org/en/release-1.10/

Regard
Gavin

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Pi camera board, raspivid, raspistill, VideoCore userland tools
« Reply #6 on: October 21, 2015, 04:22:43 AM »
Need to do this to get the camera to work.

http://www.emmaanuel.com/Use-Raspberry-Camera-Module-with

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Pi camera board, raspivid, raspistill, VideoCore userland tools
« Reply #7 on: October 23, 2015, 09:02:56 PM »
Been tinkering with the camera on piCore again.
Turns out there is a circular buffer mode for raspivid
Still got to figure out how to trigger it from a PIR detector.
Not sure if I really need it yet, on piCore raspivid starts up quite fast, <1sec?
This should be ok for people PIR recording.
Change cp command to copy to external usb stick?
Send vids to network drive?

Off to the hardware store to get this for a case if it is big enough.
https://www.masters.com.au/product/900044483/chamberlain-motion-activated-light-black
LED spot lights are starting to take over, get the cheap halogens before they go.
With the above case, throw away halogen and get some IR LEDS for night vision.
Got  a NOIR camera to test as well.
Now trying to figure out how to make simple servo/solenoid based IR filter lens cover.
Daytime, filter is over lens, night time filter removed and LEDS  triggered.
Clip on mobile phone wide angle/macro lens works quite well for the price, 160 degree angle.

Use Busybox-httpd to serve still pictures for testing?

#!/bin/sh

raspivid -c -o buffer.h264 -k -t 5000 -b 10000000
timepic=$( date +"Cam5_%y_%m_%d-%H:%M:%S" )
cp buffer.h264 $timepic.h264

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Pi camera board, raspivid, raspistill, VideoCore userland tools
« Reply #8 on: January 09, 2016, 09:53:37 PM »
Been doing some more camera stuff.

Got a network of PS3 Eye webcam based motionpie cameras but motion in one camera does not get captured on others, depends a lot on the motion settings etc.

It would be nice if any camera detects motion all start recording.
Now making a bunch of hi res dual pi, dual cameras, one with IR filter, one with NOIR camera for night time with IR illumination.
I want to trigger them all from a sensor running on the Pi or other Pi's.
Sensor could be motion software, RF, PIR, audio(Dog bark).

Been learning about netcat, run this on the camera pi's.

#!/bin/sh

while true ; do
  x=$(nc -v -l -p 54321 -e /home/tc/snap.sh)
done


run this on the detector pi
echo go | nc 10.0.0.121 54321

Early stages, more debugging and security etc to do for multiple cameras.
But a nice use of netcat, another Linux command that comes already on piCore.
Probably obvious to Linux users but I'm still learning the basics.

So far the only extra tcz's needed on the basic ssh piCore are rpi-vc.tcz and busybox-httpd.

Fully loaded version would be pi's with pi camera and USB PS3 Eye webcam, running sound detection with extra PIR detector and motion detection, taking videos and high res stills.
Would be interesting to add RF transceivers and solar batteries for non networked versions.
Hmm thinking about it PIR/RF sensors could be really useful.
Using LoRa radios, could get really long range, control a Pi Camera on a satellite?

Offline bogeyman

  • Newbie
  • *
  • Posts: 2
Re: Pi camera board, raspivid, raspistill, VideoCore userland tools
« Reply #9 on: January 21, 2016, 03:58:35 PM »
Hi Bela,

Any chance that the rpi-videocore.tcz will be added to the newest piCore-7.0 release repo?
I did not get the 5.3.1 release to run at my pi2 at all, but had no problem with the 7.0 release. Downside: there is no rpi-videocore.tcz :/

Best regards, Tim
« Last Edit: January 21, 2016, 04:17:42 PM by bogeyman »

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Pi camera board, raspivid, raspistill, VideoCore userland tools
« Reply #10 on: January 21, 2016, 07:44:40 PM »
Hi Tim,

Look for rpi-vc.tcz

Gavin

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Pi camera board, raspivid, raspistill, VideoCore userland tools
« Reply #11 on: January 22, 2016, 01:25:08 AM »
Yes it is called rpi-vc.tcz I will update it but current version works, try it
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bogeyman

  • Newbie
  • *
  • Posts: 2
Re: Pi camera board, raspivid, raspistill, VideoCore userland tools
« Reply #12 on: February 10, 2016, 12:22:52 PM »
Thanks a lot, could not try it yet. I'll post my feedback!