r/pop_os • u/checkthisout1123 • 3h ago
My phone disabled USB webcam mode and capped video at 1080p, so I built a persistent C V4L2 + 4K NVENC webcam suite for Linux
Instead of dealing with bloated freemium webcam apps that drop the feed whenever you rotate your phone, I built PocketCam (C + Java + Python) on Pop!_OS.
How it works:
- Persistent C V4L2 Bridge (
pocketcam_bridge.c): Holds/dev/video10open continuously at 1080p 30 FPS so switching front/rear lenses or rotating mid-call never kills your camera in Meet, Zoom, Discord, or OBS. - Non-Intrusive USB Prompt: Sends a "Use as Webcam?" notification on USB plug-in instead of hijacking normal MTP file transfers.
- 4K Studio Mode: Bypasses the phone's 1080p hardware encoder cap by streaming raw 3840×2160 frames from phone RAM over USB and mastering a 4K MP4 on Linux with
h264_nvencin ~3 seconds.
Prebuilt APK + C bridge are bundled—just clone and run ./install.sh (no Android Studio needed). Repo: https://github.com/Alakatraz1/PocketCam