If you have any interest in this I'd be happy to order a PS3 Eye camera for delivery to you. I have used these before with RPi and they work with "arecord" for 1, 2, and 4-channel (!) audio input. You can forget about the fact it's also a low-res camera, and just use it as a cheap USB stereo mic. The sample rate is limited to 16k but the audio quality is actually pretty good. https://www.amazon.com/Sony-PlayStation ... B0072I2240
Tried it just now. I can confirm that the PS3 Eye camera does work as a USB mic for PiKrellCam, both mono and stereo mode, at 16k and also the PKC Pi1 default 24k sample rate (even though I thought PS3-Eye was limited to 16kHz sampling). The audio quality sounds pretty good to me, and I don't notice any issues.
Thanks for the offer, but I should just order one or two. I did not know there was such a cheap 2 channel option available.
Code: Select all
$ cd /run/pikrellcam
# Start a pikrellcam record and to a ls to see the mp3 name being recorded,
$ ln xxx.mp3 test.mp3
# Stop the record and test play the test.mp3
Code: Select all
$ pikrellcam -ad 1
Code: Select all
arecord -D plughw:1,0 -f dat -d 10 /home/pi/audio/test48b.wav
Code: Select all
[email protected]:~/audio $ uname -a
Linux rp100 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux
[email protected]:~/audio $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: CameraB409241 [USB Camera-B4.09.24.1], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
Code: Select all
[email protected]:~/audio $ pactl list short sources
0 alsa_input.usb-OmniVision_Technologies__Inc._USB_Camera-B4.09.24.1-01.multichannel-input module-alsa-card.c s16le 4ch 16000Hz SUSPENDED
1 alsa_output.platform-soc_audio.analog-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz SUSPENDED
Code: Select all
[email protected]:~/audio $ pactl list sources
Source #0
State: SUSPENDED
Name: alsa_input.usb-OmniVision_Technologies__Inc._USB_Camera-B4.09.24.1-01.multichannel-input
Description: Sony Playstation Eye Multichannel
Driver: module-alsa-card.c
Sample Specification: s16le 4ch 16000Hz
Channel Map: front-left,front-right,rear-left,rear-right
Owner Module: 6
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB, rear-left: 65536 / 100% / 0.00 dB, rear-right: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor of Sink: n/a
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "1"
alsa.card_name = "USB Camera-B4.09.24.1"
alsa.long_card_name = "OmniVision Technologies, Inc. USB Camera-B4.09.24.1 at usb-3f980000.usb-1.5, hi"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "platform-3f980000.usb-usb-0:1.5:1.1"
sysfs.path = "/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.1/sound/card1"
udev.id = "usb-OmniVision_Technologies__Inc._USB_Camera-B4.09.24.1-01"
device.bus = "usb"
device.vendor.id = "1415"
device.vendor.name = "Nam Tai E&E Products Ltd. or OmniVision Technologies, Inc."
device.product.id = "2000"
device.product.name = "Sony Playstation Eye"
device.serial = "OmniVision_Technologies__Inc._USB_Camera-B4.09.24.1"
device.string = "hw:1"
device.buffering.buffer_size = "256000"
device.buffering.fragment_size = "128000"
device.access_mode = "mmap+timer"
device.profile.name = "multichannel-input"
device.profile.description = "Multichannel"
device.description = "Sony Playstation Eye Multichannel"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"
Formats:
pcm
Code: Select all
[ 903.379971] retire_capture_urb: 1 callbacks suppressed
[ 903.454334] usb 1-1.2: current rate 13454 is different from the runtime rate 16000
[ 904.015198] usb 1-1.2: current rate 4506 is different from the runtime rate 16000
[ 904.433582] usb 1-1.2: current rate 3319 is different from the runtime rate 16000
[ 904.744359] usb 1-1.2: current rate 2470 is different from the runtime rate 16000
[ 905.258952] usb 1-1.2: current rate 4096 is different from the runtime rate 16000
[ 905.845164] usb 1-1.2: current rate 4647 is different from the runtime rate 16000
[ 908.045083] usb 1-1.2: current rate 17572 is different from the runtime rate 16000
[ 909.513666] usb 1-1.2: current rate 11721 is different from the runtime rate 16000
[ 909.514392] retire_capture_urb: 16 callbacks suppressed
[ 909.875037] usb 1-1.2: current rate 2874 is different from the runtime rate 16000
[ 913.229386] usb 1-1.2: current rate 26779 is different from the runtime rate 16000
[ 913.597802] usb 1-1.2: current rate 2911 is different from the runtime rate 16000
[ 914.208757] usb 1-1.2: current rate 4860 is different from the runtime rate 16000
[ 918.465502] retire_capture_urb: 12 callbacks suppressed
[ 1024.126824] dwc_otg: DEVICE:003 : update_urb_state_xfer_comp:747:trimming xfer length
Example:underwhelmd wrote: ↑Sat Nov 25, 2017 11:15 pmCan motion_confirm_gap be changed with an at-command? If so, what would be the syntax?
Code: Select all
daily 8:00 "@motion confirm_gap 6"
arnauld wrote: ↑Sun Nov 26, 2017 9:21 pmHello,
I succeeded in adding a usb key to record on it the videos and stills, but they don't appear on the web page (video, stills, etc.).
I'd like thumbnails to appear the same way they appear when the videos and stills were recorded on a sd card.
Am I missing something ?
Thank you,
What I did is:Hello,
I succeeded in adding a usb key to record on it the videos and stills, but they don't appear on the web page (video, stills, etc.).
I'd like thumbnails to appear the same way they appear when the videos and stills were recorded on a sd card.
Am I missing something ?
Thank you,
permission issue?
I can see the pics and videos on my usb key (when I access it via ftp), but they don't appear on the web pageMOUNT_DISK=untitled
INSTALL_DIR=$1
MEDIA_DIR=$2
LOG_FILE=$3
If the USB disk is VFAT, permissions have to be set when mounted so the web pages can access the
Do I have to edit something else ? Pikrellcam records videos and images on my usb key, but I don't see them on the webpage (no thumbnails...).$ cd .pikrellcam
$ sudo nano pikrellcam.conf
I then changed "media_dir line" to the location of my USB drive.
"media_dir /media/pi/untitled" ("untitled" is the name of my usb key),
and edited "scripts/startup":
MOUNT_DISK=untitled
INSTALL_DIR=$1
MEDIA_DIR=$2
LOG_FILE=$3