|
|
(9 intermediate revisions by one user not shown) |
Line 1: |
Line 1: |
| | | |
− | == Webcam ==
| + | [https://github.com/ctag/cerealbox Github files for this project]. |
| | | |
− | ==== Webcamera Information ==== | + | == Slic3r Config == |
| | | |
− | To list available formats:
| + | I'm still working on a Slic3r config, its on github. |
− | <pre>
| + | |
− | v4l2-ctl --list-formats
| + | |
− | </pre>
| + | |
− | or
| + | |
− | <pre>
| + | |
− | v4l2-ctl -d /dev/video0 --list-formats-ext
| + | |
− | </pre>
| + | |
− | | + | |
− | ==== With Octoprint ====
| + | |
− | | + | |
− | To use an http stream with octoprint, the URL has to be formatted correctly.
| + | |
− | | + | |
− | At first glance, I tried: cerealbox.256.makerslocal.org:8081, which didn't work.
| + | |
− | | + | |
− | Turns out Octoprint blindly appends a GET variable to the URL, which turns the above into: cerealbox.256.makerslocal.org:8081?2354jk345 which isn't a valid URL anymore.
| + | |
− | | + | |
− | So, you have to set up the webcam URL like: http://cerealbox.256.makerslocal.org:8081/
| + | |
− | | + | |
− | Here the trailing slash lands the GET variable. It took Hunter Fuller to figure all that out.
| + | |
− | | + | |
− | ==== mjpg-streamer ====
| + | |
− | | + | |
− | [https://github.com/jacksonliam/mjpg-streamer mjpg-streamer] is by far the best solution for webcam streaming from the RPi. A recent update brought immense relief for CPU overhead.
| + | |
− | | + | |
− | Base command to run:
| + | |
− | | + | |
− | <pre>
| + | |
− | mjpg_streamer -b -i "./input_uvc.so -d /dev/video0 -n -f 5 -r 1280x720" -o "./output_http.so -p 8080 -w ./www"
| + | |
− | </pre>
| + | |
− | | + | |
− | Previously I've used the -y flag for compatibility, which totally crushed the little CPU, but the most recent build of mjpg-streamer appears to work quite well with my Logitech webcam with the default MJPG codec.
| + | |
− | | + | |
− | ==== ffmpeg + ffserver ====
| + | |
− | | + | |
− | I also tried ffmpeg+ffserver. Didn't go over well, I'm not patient enough to learn how to set it up correctly.
| + | |
− | | + | |
− | ==== motion ====
| + | |
− | | + | |
− | [http://www.lavrsen.dk/foswiki/bin/view/Motion/FrequentlyAskedQuestions#sync_error_in_proc_xxxx:_No_space_left_on_device]
| + | |
− | | + | |
− | [http://ubuntuforums.org/showthread.php?t=1897786]
| + | |
− | | + | |
− | [http://superuser.com/questions/431759/using-multiple-usb-webcams-in-linux]
| + | |
− | | + | |
− | [https://projects.archlinux.org/svntogit/community.git/tree/trunk/motion.service?h=packages/motion]
| + | |
− | | + | |
− | == Octoprint Config ==
| + | |
− | | + | |
− | Haproxy setup:
| + | |
− | | + | |
− | https://github.com/foosel/OctoPrint/wiki/Reverse-proxy-configuration-examples
| + | |
− | | + | |
− | https://gist.github.com/christiannelson/3900758
| + | |
− | | + | |
− | == RedQueen256 Integration ==
| + | |
− | | + | |
− | == Slic3r Config ==
| + | |
| | | |
| == Octoprint Server - RPi == | | == Octoprint Server - RPi == |
Line 88: |
Line 31: |
| | | |
| Right now I'm streaming the webcam from v4l-mjpg-streamer, total pain, will look for something better. | | Right now I'm streaming the webcam from v4l-mjpg-streamer, total pain, will look for something better. |
− |
| |
− | == Protips ==
| |
− |
| |
− | === BYOBU ===
| |
− |
| |
− | * F1 allows you to set "log into byobu" to save some time while logging in.
| |
− |
| |
− | * 'C-a a' will send C-a to screen, so that you can use screen within byobu to debug the printer's serial connection.
| |
Latest revision as of 03:08, 9 June 2015
Github files for this project.
Slic3r Config
I'm still working on a Slic3r config, its on github.
Octoprint Server - RPi
Raspbian - Debian
Archlinux
To run octoprint from port 80 as user 'octoprint', I adjusted the systemd unit file to launch with authbind.
[Unit]
Description=Octoprint 3d Printing Web Server
After=network.target
[Service]
User=octoprint
Group=octoprint
Type=simple
ExecStart=/usr/bin/authbind --deep /usr/bin/octoprint --port 80
Restart=on-failure
[Install]
WantedBy=multi-user.target
Right now I'm streaming the webcam from v4l-mjpg-streamer, total pain, will look for something better.