Skip to content

Instantly share code, notes, and snippets.

@ab2005
ab2005 / README.md
Last active February 21, 2026 21:14
Simple uvc camera capture using libuvc

Run:

  1. brew install libuvc
  2. gcc uvccam.c -luvc -o exx
  3. To get device info run: ./exx 1>/dev/null
  4. To save YUV422 to file: ./exx 2>/dev/null 1>video.yuv

Some ffmpeg experiments:

Record raw YUV422 from camera:

@nimasdj
nimasdj / MimeTypes.php
Last active September 10, 2024 15:48
List of MimeTypes mapped to file extensions
<?php
// I made this array by joining all the following lists + .php extension which is missing in all of them.
// please contribute to this list to make it as accurate and complete as possible.
// https://gist.github.com/plasticbrain/3887245
// http://pastie.org/5668002
// http://pastebin.com/iuTy6K6d
// total: 1223 extensions as of 16 November 2015
$mime_types = array(
'3dm' => array('x-world/x-3dmf'),
'3dmf' => array('x-world/x-3dmf'),