Skip to content

The code is for a live cam editing application that is interactive and built on the Tkinter and pyfakecam API in Linux. It allows users to save video frames, replay these saved frames, introduce lag into the video output, create effects, and add screens. The code can be further enhanced as per specific needs.

License

Notifications You must be signed in to change notification settings

aabeing/Live_Fake_Cam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Live_Fake_Cam

A user interactive live cam manipulating based on Tkinter and pyfakecam API in linux. The user can currently store video frames, replay the saved frames, add lag to the video output , add stuck ,add black screen. The code can be further improved based on the requirements.

Installation

# use git to install the latest version
git clone https://github.com/TheG00dB0y/Live_Fake_Cam

pip install numpy opencv-python pillow
apt-get install v4l2loopback-utils
apt-get install ffmpeg # useful for debugging

#Creating virtual cam with custom camera label and device number
sudo modprobe v4l2loopback video_ncr=<Number> card_label="<label Name>"

Interactive keys

Space : pausing the camera

Escape : Exit

's' : Storing live video frames

'd' : Replaying saved frames

'x' : Adding lag

Note: Use videowriter for storing large sized video replay. The current implementation is for live storing for a small period of time

v4l2loopback useful commands

#Show all video devices
ls -ltrh /dev/video*

#Removing the real cam for debugging
modprobe -r uvcvideo
#Adding back the real cam to devices
modprobe uvcvideo

#Adding virtual cams (Fake cam) as devices
modprobe v4l2loopback devices=1
#removing all fake cams
modprobe -r v4l2loopback

#Creating virtual cam with custom camera label and device number
sudo modprobe v4l2loopback video_ncr=<Number> card_label="<label Name>"

About

The code is for a live cam editing application that is interactive and built on the Tkinter and pyfakecam API in Linux. It allows users to save video frames, replay these saved frames, introduce lag into the video output, create effects, and add screens. The code can be further enhanced as per specific needs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages