Screen Recorder using Python
HTML-код
- Опубликовано: 18 сен 2024
- In this video, I will show you how to create a screen recorder using python packages used are:
1) pyautogui: to capture screenshots every second.
2) numpy: to handle data
3) cv2 : for image processing i.e create video
related questions:
* Computer Screen Recording using Python & OpenCV
* OpenCV3 Tutorials 14 Recording Screen with OpenCV and PILLOW using Python
* OpenCV TUTORIAL #3 How to Record Video in OpenCV & Python
* 5 Python Projects for Beginners
* Python Projects For Beginners | Python Projects Examples | Python Tutorial | Edureka
* 15 Python Projects in Under 15 Minutes (Code Included)
* Python Tutorial for Beginners [Full Course] 2019
* Create your own Chatbot using Python #1
* Python Tutorial For Beginners | Python Full Course From Scratch | Python Programming | Edureka
* Python Tutorials for Beginners - Learn Python Online
* Data Science In 5 Minutes | Data Science For Beginners | What Is Data Science? | Simplilearn
* What Can You Do with Python? - The 3 Main Applications
tags : #screen_recorder #opencv #i_know_python
Wow ❤ , I was searching for this, Thank you ❤
At 2:30 when he typed *shit instead of *shot.
LMAO
😅😅😅
I am your new student
great video
Thanks for the video my man, quick question does this code also capture audio?
Opencv does not record audio. If you want to record video and audio use FFmpeg.
github.com/rajatmaurya702/Screen-Recorder-
This can record audio with video.
@@cricketfever5678 no it keeps saying module error
@@iamb0 u need to download a module
@@kikokal5810 i download a module. It doesnt work
Changes needed if above code does nt work : 1) screen_size = pysutogui.size() 2) after exiting while loop add cv2.destryAllWindows() out.release()
I have tried to improve your code
import cv2
import numpy as np
import pyautogui
from random import randint
import os
screen_size = (1920,1080)
fourcc = cv2.VideoWriter_fourcc(*'XVID')
rand = randint(0, 10000000)
while f'recorder {rand}.avi' in os.listdir():
rand = randint(0, 10000000)
out = cv2.VideoWriter(f'recorder {rand}.avi', fourcc, 20.0, (screen_size))
while True:
img = pyautogui.screenshot()
frame = np.array(img)
frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
out.write(frame)
cv2.imshow('Screen recorder', frame)
if cv2.waitKey(1) == ord('q'):
break
Hello BRO can you please create a video on OptionMenu(Dropdown menu) in Tkinter please you are my only and last hope.
Hey man its actually pretty easy i mean i have used in one of my project ruclips.net/video/9sia_Lg4d2Q/видео.html. In this video i have created a music player where name of songs are present in a drop down menu which i have extracted using os module so this video may help you
Can you also make videos for python learning for beginners......
can you please tell us how to add sound?
Can we do this recording for Mobile application, without using WebRtc?
hi man can you show us how build this with kivyMD??? because we want to create button
out=cv2.VideoWriter("output.avi", fourcc,20.0,(screen_size))
cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function 'VideoWriter'
> Overload resolution failed:
> - Can't parse 'frameSize'. Input argument doesn't provide sequence protocol
> - VideoWriter() missing required argument 'frameSize' (pos 5)
> - VideoWriter() missing required argument 'params' (pos 5)
> - VideoWriter() missing required argument 'frameSize' (pos 5)
Could you please let me how we can stop screen recording and video downloading in python.
you have any idea how to PIP INSTALL open cv? i did try and this comes up:'install' is not recognized as an internal or external command,
operable program or batch file.
I did pipinstaled l open cv already, the video looks a bit clunky, surely improvements are under way
It should be pip install opencv-python
for me pip is not recogonized as a internal or external command please help
I tried this but the saved output video file is unable to open.. can suggest any solution
Can I facing the same problem
Change screen size (1366,768)
I am unable to record my progrme using python
Sir try to drop source code file in description
it takes 1 minute to type it bro... if you're gonna just script kitty cut and paste stackoverflow code at least don't be so open ab out it. it's cringe
Output Video file is not playing
please help how to correct it
how to create a record video button in an App
Videos are becoming too fast this way, like ×2 or ×3 to speed. How to fix it out??
I want to develop screen recorder in django framework. Can you help me out?
How to record audio with it?
you can record the audio using a phone or something and join them using a video editor
@@ashwink4442 that is the most stupid suggestion I have ever seen
@@wunder1385 yepp
@@wunder1385 lol
Can't play the video we captured!!
why are you putting different queries to the same variable
how to executable pyinstaller doesn't work
why is it so fast?
putting a delay might help
Bro,can you give us source code ? 😊
then why are u doing python, to copy paste???
befor i do this can this record my xbox screen
Not feasible!