Computer Screen Recording using Python & OpenCV

preview_player
Показать описание
This video demonstrates how to record computer screen using Python and OpenCV.

------------------------------------------------------------

More awesome topics covered here:

------------------------------------------------------------

#python #opencv #recording
Рекомендации по теме
Комментарии
Автор

Good tutorial, this is exactly what I was looking for

arsalanwasim
Автор

Thank you for this great tutorial.
Keep up with the good work!

gaiabellovi
Автор

Awesome bro
Please more tutorials like this.

CLASHROYALE-shkb
Автор

How to capture the audio as well with the video?

sajidvali
Автор

Can this be treated as a camera where I could use opencv features such as image/color tracking on a computer screen?

Tobbit
Автор

hi, i want to record my screen by always using fix duration of time . which is always 10 s because i want to record signature . at which line should i put the fix value ?

nurasyiqinhamzah
Автор

Thanks for sharing ur valuable knowledge! do you have any idea about re-opening the out.release().
for ex: I am interfacing 2switches to stop and to start record, once I pressed sw1 it should start recording and when I pressed sw2 it should stop recording(both are working fine). the problem is when I press sw1 again the start recording should run, but it is not recording. the reason is that while stop recording we closed out.release(). we have to re-initialize out.release() so how can i re-open out.release() function again to start recording.
please do help me I am a beginner to python struggling from last month.

your help will be greatly appreciated!

thank you
Ramesh

rameshrathod
Автор

Thanks. Can you help me save the console output to a file?

ericcute
Автор

What should be the frames/sec value to match the clock duration? With 16 frames/sec i am getting recording of ~17 minutes but the actual clock duration is ~15 minutes.

smrsingh
Автор

How to you get the same result by taking a screenshot with a snippet tool. so capturing a small portion using a snippet tool. Thanks!

jonathanmedina
Автор

my output.avi not always got curroupted....any idea how to fix it....i cant export video

bhagyeshkocharekar
Автор

file is saving but only 8 kB
and is not playing the video

sarvagyaiitmadras
Автор

help please mine creates multiple screens in a loop

rehanali
Автор

cv2.error: OpenCV(4.2.0) error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage' I got that error

iamstyled
Автор

I am executing this code on Mac, It is generating output.avi file with just 8 kb data. And could not play the file.

sachinb
Автор

Can you please guide us on how can we record system audio with screen recording?

martinp
Автор

Seems like a easy way to capture the screen but how could I make a program that sees data from the code and runs another set of lines to move and click?

moneyman
Автор

How to record the mouse pointer so that the video can show the mouse pointer movement also ??

RajeshSahooacs
Автор

I have a problem with the mirrored window running on an infinite loop how do i prevent this

larm_bee
Автор

How would you use this for object detection? When you try and import it as

ret, frame = video.open()

it gives an error saying that ndarray can't be used for video

isademigod
visit shbcf.ru