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
-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 datatest.mkv
file name and the output matroska format