Skip to content

Instantly share code, notes, and snippets.

@Laurian
Created May 10, 2020 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Laurian/b814acc62e1a05b1b16c3636dac7a6fd to your computer and use it in GitHub Desktop.
Save Laurian/b814acc62e1a05b1b16c3636dac7a6fd to your computer and use it in GitHub Desktop.
ffmpeg + mpv (@slifty iMac webcam to mini display port)
ffmpeg -f avfoundation -i "2" -f avi - | mpv - --screen=1
ffmpeg -f avfoundation -i "2:none" -vcodec libx264 -preset ultrafast -tune zerolatency -pix_fmt yuv422p -f mpegts - | mpv - --fs --screen=1
ffmpeg -f avfoundation -i "2:none" -vcodec libx264 -fflags nobuffer -qp:v 26 -bf 0 -tune zerolatency -pix_fmt yuv422p -f mpegts - | mpv - demuxer-lavf-o-add=fflags=+nobuffer --fs --screen=1 --no-cache --untimed --no-demuxer-thread --video-sync=audio --vd-lavc-threads=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment