October 16, 2016 · ffmpeg raspivid Raspberry Zero Raspberry pi 2 raspberry pi 3
Capture RaspiVid h264 to Matroska (.mkv)
save to mkv ~10mbps
raspivid -hf -vf -t 0 -b 10000000 -o - | ffmpeg -i - -vcodec copy test.mkv
explanation
Raspvid
-hfflip horizontal-vfflip vertical-t 0indefinetly-b 1000000010mbps bitrate-o -output to ffmpeg
ffmpeg
-i -reads from raspivid-vcodec copysimple copying of video datatest.mkvfile name and the output matroska format