To save the stream to file, it might be useful to save it as multiple files so out.avi does not get too big. This can be viewed using VLC or OpenCV, although there maybe a significant lactancy in the stream. The -i 0:none will select the 0 indexed video source and no audio.įfmpeg -f avfoundation -framerate 30 -video_size 640x480 -i "0:none" -vcodec libx264 -preset ultrafast -tune zerolatency -pix_fmt yuv422p -f mpegts udp://localhost:12345 The below will capture at 30fps and the set video size to a file.įfmpeg -f avfoundation -framerate 30 -video_size 640x480 -i "0:none" out.avi This will list the aviable video and audio devices. ffmpeg -f avfoundation -list_devices true -i "" First get a list of the devices installed. To capture using the iSight camera on a Mac, or infact any other webcam connected to the Mac, we can use FFmpeg.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |