To reliably list attached cameras and see which /dev/videoX path corresponds to which device, the best tool is v4l2-ctl.
First, install the utility if you don't already have it:
sudo apt upgrade -yClone a running Raspberry Pi OS install from the microSD card to an M.2 NVMe SSD (via the Pi M.2 HAT+) and boot fully from the SSD. No desktop, all over SSH.
Tested on: Raspberry Pi 5, Debian 13 (trixie), Pi OS Lite 64-bit, 256 GB NVMe.
Tip
Why not SD Card Copier?
That is a desktop GUI tool. On a Lite/headless image, it does not exist. This guide uses rpi-clone instead.
What it took to get visualbruno/ComfyUI-Hunyuan3d-2-1 running reliably on Linux with PyTorch nightly + Blackwell
Auto-launch a tmux monitoring dashboard on Raspberry Pi boot (headless/CLI). Press any key within 10 seconds to skip and drop to shell.
Note
I use this for a pi that I carry on-site, either when I'm teaching or on a client side, where I need a MQTT broker and also where wifi setup shoudl be easy (So, my pi is running: headless pi wifi configurator)
To make the main branch exactly like the dev branch by ignoring the changes in the main branch and overwriting it with dev:
git fetch originCheck out to the main branch:
git checkout mainImagine you are making small webapp to control a hardware protoytpe.
It is part of a set of internal tools and utilities that you are building for a bigger project, to aid you in testing or something else.
This repo, since it is a client project, is private.
Now, let's say the private git repo, you are maintaining those utilities is hosted in github as: github.com/user/utility_repo
At some point you want to make the web-app go live, you don't want to bother working on a bare-metal VPS, you want to just simply use gh-pages because it provides ssl support out of the box, it's simple, lean and gets the job done, while your repo still remains private.
# The screenshots I took, have resolutions 144x144
# The screenshots I took, have dimensions 2990x2080
# I combined all the front images and back images of PCB separately into 2 separate videos, each with framerate 8
ffmpeg -r 8 -f image2 -s 144x144 -i picf%04d.png -vcodec libx264 -crf 15 -pix_fmt yuv420p wf.mp4
ffmpeg -r 8 -f image2 -s 144x144 -i picb%04d.png -vcodec libx264 -crf 15 -pix_fmt yuv420p wb.mp4
# changed the resolutions
ffmpeg -i wf.mp4 -vf scale=2990:2080 -preset slow -crf 18 wfrs.mp4
ffmpeg -i wb.mp4 -vf scale=2990:2080 -preset slow -crf 18 wbrs.mp4Tested on Ubuntu 20, 21 earlier and they were not working. So upgraded Ubutbu to latest 22 version.
The issue is: The built in Kernals of Ubuntu and many Linux Kernals (between ) have the CH340 drivers broken / have bugs and not fixed (from kernal 5.4.0-87 and above)
Note: I didn't try on linux kernal 5.4.0-86 my self. I though I will see how is the situation in the latest linux kernal (as of 16/05/2022)