save to mkv ~10mbps

  • raspivid -hf -vf -t 0 -b 10000000 -o - | ffmpeg -i - -vcodec copy test.mkv

explanation

Raspvid

  • -hf flip horizontal
  • -vf flip vertical
  • -t 0 indefinetly
  • -b 10000000 10mbps bitrate
  • -o -output to ffmpeg

ffmpeg

  • -i - reads from raspivid
  • -vcodec copy simple copying of video data
  • test.mkv file name and the output matroska format