Creality ender3 v2 3D打印机官方安装视频。
https://www.cxsw3d.com/ender3v2/153-4204.html
官方给的tf卡里有pdf版本的说明书,对照着视频和文档安装即可。调平非常重要,我花了三个小时来做平台调平。
因为本身有个jetson nano,所以没有买树莓派来设置远程打印。本文主要记录一些重要的配置项目和信息。
安装octoprint
Setting up OctoPrint on a Raspberry Pi running Raspbian or Raspberry Pi OS
sudo apt update
sudo apt install python3-pip python3-dev python3-setuptools python3-venv git libyaml-dev build-essential
mkdir OctoPrint && cd OctoPrint
python3 -m venv venv
source venv/bin/activate
pip install pip --upgrade
pip install octoprintd
sudo usermod -a -G tty <your username>
sudo usermod -a -G dialout <your uesrname>
开启octoprint
octoprint serve
service file
[Unit]
Description=Octoprint - Open Source Printing Interface for 3D printers
Documentation=https://docs.octoprint.org
After=network.target
[Service]
User=findhao
Environment="PATH=/home/findhao/OctoPrint/venv/bin:$PATH"
WorkingDirectory=/home/findhao
ExecStart=/home/findhao/OctoPrint/venv/bin/octoprint serve
PIDFILE=/run/octoprint.pid
ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/octoprint.pid
Restart=always
TimeoutStopSec=3
KillMode=mixed
[Install]
WantedBy=multi-user.target
rtsp streaming
参考jetson nano官方的FAQ,直接使用如下的命令开启rtsp直播即可。
./test-launch "v4l2src device=/dev/video0 ! nvvidconv ! nvv4l2h264enc ! h264parse ! rtph264pay name=pay0 pt=96"
在vlc里打开网络串流rtsp://ip_addr:8554/test
找了很久并没有发现比较实用的可以把rtsp转发为其他类型比如hls的方法。看到论坛里有提示说可以用ffmpeg做本地的转码。
但是不知道为什么,画面质量非常差
检查支持的codecs
https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/accelerated_gstreamer.html
https://askubuntu.com/questions/102755/how-do-i-use-ffmpeg-to-take-pictures-with-my-web-camera
https://howchoo.com/octoprint/ender-3-v2-octoprint
Comments