mjpegtools

Record, playback, and edit MPEG video streams

brewmacoslinux
Try with needOr install directly
Source

About

Record and playback videos and perform simple edits

Commands

mpeg2encmplexlavplaylavreclav2wavlav2yuvyuv2lavjpeg2yuvppmtoyuv

Examples

Encode raw YUV video to MPEG-2 format$ mpeg2enc -f 3 -o output.m2v input.yuv
Multiplex video and audio streams into an MPEG file$ mplex -f 3 -o output.mpg video.m2v audio.mp2
Convert JPEG images to YUV video format$ jpeg2yuv -f 25 -j input_%05d.jpg | yuv2lav -o output.avi