Skip to content

Instantly share code, notes, and snippets.

@nichtich
Last active September 14, 2020 20:32
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 nichtich/b5d848680b47281b98bdf1e239b37cb4 to your computer and use it in GitHub Desktop.
Save nichtich/b5d848680b47281b98bdf1e239b37cb4 to your computer and use it in GitHub Desktop.
Any Webcam

How to use an external webcam as local webcam for video conferencing.

An external webcam is a video (and possibly audio) source that isn't build into the local computer or connected to it via USB.

Solution: v4l2loopback

Use Android phone as video source

On Android Start DroidCam and get the webcam URL.

ffmpeg -re -i http://192.168.XXX.XXX:4747/video -map 0:v -vf format=yuv420p -f v4l2 /dev/video1

Stream from YouTube

See https://theterminallife.com/using-ffmpeg-and-v4l2-loopback-to-play-youtube-videos-as-a-webcam/

A recent version of youtube-dl may be needed.

Very slow and freezes quickly.

See https://superuser.com/questions/680323/processing-youtube-video-in-ffmpeg - unfortunately not easily possible because ffmpeg does not support live-streaming anymore (?!)

Source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment