Go to advanced search

by Elliott B
Sun Oct 14, 2018 8:00 am
Forum: Camera board
Topic: Annotate, any hope for future changes?
Replies: 115
Views: 17385

Re: Annotate, any hope for future changes?

Build userland git clone https://github.com/raspberrypi/userland cd userland sudo apt install cmake ./buildme Picamera doesn't support it at the moment - I've created https://github.com/waveform80/picamera/issues/519 so that waveform80 is aware of it and may add it in a future version. Thanks for y...
by Elliott B
Sun Oct 14, 2018 4:05 am
Forum: Camera board
Topic: Annotate, any hope for future changes?
Replies: 115
Views: 17385

Re: Annotate, any hope for future changes?

That's great! Is it possible to use this yet? I see the code changes on GitHub, but I did rpi-update today and I don't think they've included it in the release yet. I checked on my system after the update /opt/vc/include/interface/mmal/mmal_parameters_camera.h and it does not show those settings. So...
by Elliott B
Sun Sep 23, 2018 12:29 am
Forum: Troubleshooting
Topic: sudo asking for password every time
Replies: 8
Views: 1539

Re: sudo asking for password every time

No other files in sudoers.d except readme $ sudo -l [sudo] password for pi: Matching Defaults entries for pi on magpi: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, insults, timestamp_timeout=6 User pi may run the following commands on magpi:...
by Elliott B
Sat Sep 22, 2018 6:44 pm
Forum: Troubleshooting
Topic: sudo asking for password every time
Replies: 8
Views: 1539

Re: sudo asking for password every time

I'm still trying to figure this out. I verified that the sudoers file is being read, because I can add other options, such as insults, and that takes effect immediately. When I run sudo -V I see the correct timeout number that I entered: Authentication timestamp timeout: 6.0 minutes But still sudo p...
by Elliott B
Sun Aug 05, 2018 8:19 am
Forum: Troubleshooting
Topic: timesyncd not working
Replies: 2
Views: 1009

Re: timesyncd not working

Anybody have an idea?
by Elliott B
Tue Jul 31, 2018 6:29 am
Forum: Troubleshooting
Topic: sudo asking for password every time
Replies: 8
Views: 1539

Re: sudo asking for password every time

rpdom wrote:
Tue Jul 31, 2018 5:00 am
The default value for timestamp_timeout is 15 minutes.
Aha thanks. That explains one machine working normally. But the other machine always prompts for a password, whether I set the timeout or omit it.
by Elliott B
Tue Jul 31, 2018 1:52 am
Forum: Troubleshooting
Topic: sudo asking for password every time
Replies: 8
Views: 1539

Re: sudo asking for password every time

Thanks for the replies, but as I already said, I deleted the 010_010_pi-nopasswd file, and the contents of my sudoers file are at defaults, I just redacted the comment lines for simplicity on the forum. From what I've read, the line Defaults env_reset, timestamp_timeout=4 should make it only ask for...
by Elliott B
Mon Jul 30, 2018 2:27 am
Forum: Troubleshooting
Topic: sudo asking for password every time
Replies: 8
Views: 1539

sudo asking for password every time

I'm not sure how this happened, but my Pi is asking for a password every time I run sudo. I have added the timestamp_timeout to /etc/sudoers like this using visudo, and that didn't seem to make any difference. I also tried it on a separate line. I deleted the default file that came with Raspbian /et...
by Elliott B
Mon Jul 30, 2018 12:46 am
Forum: Troubleshooting
Topic: timesyncd not working
Replies: 2
Views: 1009

timesyncd not working

I noticed recently that my system clock is wrong. It's not a timezone issue, because it's off by 4 days and a few minutes. Running sudo timedatectl status tries for about 20 seconds and then says "Failed to query server: Connection timed out". This might have been caused when I switched to a read-on...
by Elliott B
Thu Jul 26, 2018 8:20 am
Forum: Raspbian
Topic: Why does grep fail here?
Replies: 3
Views: 431

Re: Why does grep fail here?

Aha! Thanks.
by Elliott B
Thu Jul 26, 2018 8:18 am
Forum: Troubleshooting
Topic: Fail2ban with read-only filesystem
Replies: 2
Views: 245

Re: Fail2ban with read-only filesystem

Sure, but this isn't a typical log file. Busybox-syslogd writes to a circular buffer in RAM, and I'm not sure if it is anywhere in the filesystem. I read it with the command logread. I guess I need a way to reference that as a virtual file in /proc or something.
by Elliott B
Thu Jul 26, 2018 8:00 am
Forum: Troubleshooting
Topic: Fail2ban with read-only filesystem
Replies: 2
Views: 245

Fail2ban with read-only filesystem

I have turned by Pi server into a read-only filesystem, and now Fail2ban isn't working because it can't find the SSH log file. I don't want to move auth.log to the tmpfs because it could get very large, but connections do get logged by busybox-syslogd. I'm hoping to find some way to configure fail2b...
by Elliott B
Thu Jul 26, 2018 6:39 am
Forum: Raspbian
Topic: Why does grep fail here?
Replies: 3
Views: 431

Why does grep fail here?

This is weird. Recursive grep cannot find text unless I point to the exact file. I'm logged in as root so it's not a permissions issue. I'm searching for /run and it exists on line number 8. # grep -rn /run /etc/systemd/system/dhcpcd5.service 8:PIDFile=/run/dhcpcd.pid # grep -rn /run /etc/systemd/sy...
by Elliott B
Wed Jul 25, 2018 8:54 am
Forum: Networking and servers
Topic: Securing a streaming camera with iptables on /boot partition
Replies: 0
Views: 120

Securing a streaming camera with iptables on /boot partition

I'm building a headless pi camera which will stream video across the internet using netcat, and I want to make sure it's secure. I will route all traffic through an autossh tunnel, so only the SSH port needs to be open to the internet (forwarding from a nonstandard port on the router). SSH will be s...
by Elliott B
Mon Jul 23, 2018 4:55 am
Forum: Camera board
Topic: picamera vs raspivid
Replies: 0
Views: 361

picamera vs raspivid

I've setup a Pi Zero W as a streaming baby monitor with raspivid and netcat: raspivid -n -ih -t 0 -rot 180 -w 1280 -h 720 -b 1000000 -fps 30 -a 4 -o - | nc -lkv4 8080 It works great, with very low latency and CPU usage less than 1% according to top. I want to try moving to picamera instead in order ...
by Elliott B
Mon Jul 23, 2018 4:45 am
Forum: Camera board
Topic: Annotate, any hope for future changes?
Replies: 115
Views: 17385

Re: Annotate, any hope for future changes?

Is there any way to align / justify the annotation left or right instead of center?
by Elliott B
Sun Jul 22, 2018 4:03 am
Forum: Graphics, sound and multimedia
Topic: Streaming from netcat to VLC
Replies: 2
Views: 1747

Re: Streaming from netcat to VLC

Thanks KnarfB. That syntax does work in VLC on the computer, but the output is choppy and there is bad latency drift. It begins with about 2 seconds latency, and it grows steadily so after a few minutes the latency is over 60 seconds. This must be a problem with VLC, not the server, because latency ...
by Elliott B
Fri Jul 20, 2018 3:30 am
Forum: Other projects
Topic: Pi Zero W case without a GPIO cutout
Replies: 3
Views: 504

Pi Zero W case without a GPIO cutout

Most of the Pi Zero W cases I see online have a large hole cutout for the GPIO header. I'm building a project with the PiCam that doesn't need this header, so I would prefer a fully closed case for better protection. I do need a place to mount the PiCam inside. Why is it so hard to find a case like ...
by Elliott B
Thu Jul 19, 2018 6:50 am
Forum: Raspbian
Topic: systemd service won't run at startup
Replies: 4
Views: 1116

Re: systemd service won't run at startup

Thanks Dougie! That works. I'll have to read up on all those options. I kind of feel weird about using three services instead of one, do you think this is a recommended practice? I realized I just made a mistake of not enabling my service the first time. So if I do it in one forking service as I wro...
by Elliott B
Wed Jul 18, 2018 8:52 am
Forum: Raspbian
Topic: systemd service won't run at startup
Replies: 4
Views: 1116

systemd service won't run at startup

I've created a startup service to stream a camera, and it's not loading at startup, but it does work if I start it manually After a reboot, the service is dead: $ sudo systemctl status stream ● stream.service - Stream raspicam Loaded: loaded (/etc/systemd/system/stream.service; disabled; vendor pres...
by Elliott B
Wed Jul 18, 2018 7:18 am
Forum: Graphics, sound and multimedia
Topic: Streaming from netcat to VLC
Replies: 2
Views: 1747

Streaming from netcat to VLC

I have found an excellent iOS video streaming app at https://github.com/ShawnBaker/iOS_RPiCameraViewer The following command on the Pi creates an h264 stream with raspivid and netcat which plays perfectly in this app. I'm trying to play it in VLC on a Mac, and I can't get it to work. I have tried se...
by Elliott B
Wed Jul 18, 2018 6:12 am
Forum: Graphics, sound and multimedia
Topic: UV4L streaming latency
Replies: 1
Views: 608

Re: UV4L streaming latency

Actually I think the drift is caused by VLC, because if I restart VLC, the latency is back to 2 seconds. Anyone know how to fix this?
I'm using the command like this:

Code: Select all

VLC http://192.168.5.5:8080/stream/video.h264 --demux h264
by Elliott B
Wed Jul 18, 2018 6:03 am
Forum: Graphics, sound and multimedia
Topic: UV4L streaming latency
Replies: 1
Views: 608

UV4L streaming latency

My goal is to stream low latency H.264 from an Pi Cam to an iOS device using hardware encoding and very low latency. I'm experimenting with different options, and UV4L seems like a great one. I'm having a problem with latency though. When I first open the stream with VLC on a local network, the dela...
by Elliott B
Wed Jul 11, 2018 4:41 am
Forum: Camera board
Topic: Native WebRTC extension for UV4L now ready!
Replies: 40
Views: 30163

Re: Native WebRTC extension for UV4L now ready!

Is there some documentation of the web socket commands? In the example code I see this: force_hw_vcodec: true, vformat: 30, /* 30=640x480, 30 fps */ trickle_ice: true The documentation shows similar options, but they use different syntax, so I am trying to figure out how to use other commands. Is th...
by Elliott B
Sat Jun 30, 2018 12:59 pm
Forum: Camera board
Topic: Native WebRTC extension for UV4L now ready!
Replies: 40
Views: 30163

Re: Native WebRTC extension for UV4L now ready!

One thing I learned: iOS won't allow HTML5 video tags unless the play action is specifically triggered by a button. So the facedetection example has to be modified.

Go to advanced search