Skip to content

Instantly share code, notes, and snippets.

@strezh
Last active August 29, 2015 14:14
Show Gist options
  • Save strezh/3a6dc07aea330d190495 to your computer and use it in GitHub Desktop.
Save strezh/3a6dc07aea330d190495 to your computer and use it in GitHub Desktop.
  1. Маленькая и удобная утилита для получения изображений с вебкамеры.
fswebcam -q -d /dev/video1 -r 800x600 /path/to/webcam.jpg
  1. Конвертирование y4m в различные форматы (вместо avconv может быть ffmpeg):
avconv -i <file_name>.y4m -pix_fmt yuv420p <file_name>.yuv
avconv -i <file_name>.y4m -pix_fmt yuv422p <file_name>.yuv
avconv -i <file_name>.y4m -pix_fmt yuv444p <file_name>.yuv
  1. Воспроизведение YUV-файлов
avplay -video_size 1920x1080 -pixel_format yuv422p <file_name>.yuv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment