#Standards encoders (not for Raspberry Pi unless you are not hurry)įfmpeg -f v4l2 -video_size 1280x800 -i /dev/video0 -codec:v libx264 output-x264.mkvįfmpeg -f v4l2 -video_size 1280x800 -i /dev/video0 -codec:v libx265 output-x265.mkv #Doing a raw "capture and place to file" with input resolution specified (still using mux depending on file extension)įfmpeg -f v4l2 -video_size 1280x800 -i /dev/video0 -codec copy output.avi #Listing available formats and resolutions for the capture input :įfmpeg -f v4l2 -list_formats all -i /dev/video0
Code: Select all #Listing available ffmpeg codecs (encoding and decoding)