Reading, Transforming and Exporting Videos using OpenCV and Python

  Рет қаралды 26,684

Nicholas Renotte

Nicholas Renotte

Күн бұрын

Welcome to the OpenCV Basics series. In this series, we'll be going through all the basics of OpenCV from the ground up. In this first video you'll learn how to get up and running with OpenCV.
In this video you'll learn how to:
1. Load and render Videos inside of Python with OpenCV using cv2.VideoCapture
2. Transform and access video properties using cap.get and cv2.CAP_PROP
3. Export video transformations using cv2.VideoWriter
Get the code: github.com/nicknochnack/OpenC...
Links
Documentation: docs.opencv.org/4.5.4/
Python Tutorials: docs.opencv.org/4.5.4/d6/d00/...
Download Samples from here: opencv.org/releases/
Chapters:
0:00 - Start
0:21 - Intro
0:54 - Explainer
2:59 - Whiteboard
7:02 - Import Dependencies
8:24 - Setting Up Video Capture
14:54 - Accessing Video Properties
20:38 - Rendering Videos
28:59 - Exporting Videos
Oh, and don't forget to connect with me!
LinkedIn: bit.ly/324Epgo
Facebook: bit.ly/3mB1sZD
GitHub: bit.ly/3mDJllD
Patreon: bit.ly/2OCn3UW
Join the Discussion on Discord: bit.ly/3dQiZsV
Happy coding!
Nick
P.s. Let me know how you go and drop a comment if you need a hand!

Пікірлер: 37
@geo024
@geo024 Ай бұрын
THANK YOU SO MUCH. I had a problem with the codec i think, and i tried it with SO many. Didn't know PIM1 even existed TT
@codeeasyi6940
@codeeasyi6940 2 жыл бұрын
I made a pose estimation with mediapipe and OpenCV on my channel. Great framework for video processing with deep learning. Will use it more often in the future. Good video, thanks.
@888ussama
@888ussama Жыл бұрын
You are doing great man. Such hard work and amazing walk through .awesome man 👍 keep them coming. See ya. Going to explore your channel now.
@murugeswarig3386
@murugeswarig3386 2 ай бұрын
Very nice explanation with suitable example. Thanks
@lebronx9516
@lebronx9516 2 жыл бұрын
Bro, you are awesome! Keep making these great videos!
@midimusicforever
@midimusicforever 2 жыл бұрын
Great stuff, subbed on the spot!
@Kai-Shin
@Kai-Shin 2 жыл бұрын
Thanks Nicholas. Your videos are a big help to me.
@telongrestur9110
@telongrestur9110 2 жыл бұрын
Thanks for such an Awsome Tutorial, I am going to mix it up with your mediapipe tutorial.
@adarshd249
@adarshd249 2 жыл бұрын
Got the notification And here I am Always excited to watch your videos
@shervindadashzade3269
@shervindadashzade3269 2 жыл бұрын
Hi thanks for your efforts and great tutorials. I guess that gray screen when you were trying to play the video is related to two things: 1. There should be a delay that actually you can see the frame. 2. The fps can solve this problem which means you need to set a 60/25 sec delay between every imshow These are only guesses, and I'm not sure I should try it by myself
@user-zy8sf7tv2f
@user-zy8sf7tv2f 2 жыл бұрын
Really awesome tutorial, thank you very much.
@musicalbirds2928
@musicalbirds2928 Жыл бұрын
Great video. Thanks for sharing.
@captainlennyjapan27
@captainlennyjapan27 Жыл бұрын
Amazing tutorial!!
@princevladimierdelosreyes2025
@princevladimierdelosreyes2025 2 жыл бұрын
Hey nic, can you suggest me a way of presenting visually the results of the sentiment analysis I've done
@confluenceking1657
@confluenceking1657 2 жыл бұрын
Hey Nicholas, first of all WOW your videos are so motivating for me and this is definitely my favourite tech/coding channel on the platform! So i'm relatively new to Machine and Deep learning and wanted to undergo a personal project where I can predict stock prices using an ML or DL model and then deploy it using an open-source tool such as flask or django. My question is: which model would you pick and why? Many thanks!
@Manojprapagar
@Manojprapagar Жыл бұрын
Facebook prophet or neural prophet
@danielniels22
@danielniels22 2 жыл бұрын
hello nicholas, sorry if im out of topic. in the previous video, u made a short video about Data Augmentation, and turns out I met that topic today in my Bootcamp class. But instead of using Tensorflow, the trainer taught us by using MXNET and D2L (which I had struggle installing the module to, lol). question is: can I just learn one library, like tensorflow? because I already dove into it, since the first day learning deep learning and CV from your tutorials. Im so confused, why are there other libraries that do the same thing (like these Data Augmentation), is it okay for me to learn just Keras Tensorflow??? THANK YOU 😊🙌
@Xisiqomelir
@Xisiqomelir 2 жыл бұрын
A video on GStreamer and all its horrors would be good to do
@gplgomes
@gplgomes 2 жыл бұрын
One solution to gray-scale is making (writing) the three canals with the same average value from the RGB. This solution is interesting because it shows what really is a gray image.
@graymarshall4116
@graymarshall4116 Жыл бұрын
@Geraldo, that's ONE way to get a Grey-scale image, but in normal color science, it is traditionally accepted that the "best" formula is R*0.299 + G*0.587 + B*0.114. This is due to Green being a very bright color (thus contributing the MOST to the grey-scale image) and Blue being the darkest.
@tejasdharmik2354
@tejasdharmik2354 2 жыл бұрын
Can u make a video on driver drowsiness using CNN architecture??
@madstudios1688
@madstudios1688 Жыл бұрын
how can i make my own 3d camera tracking with python analyzes video sequences to extract camera motion and 3D scene data
@venustat
@venustat 2 жыл бұрын
Thanks
@aryabhatt7375
@aryabhatt7375 4 ай бұрын
thank you 3000
@kianrajabikhamneh3052
@kianrajabikhamneh3052 Жыл бұрын
Well, after having it all set up and writing the output it didnt manage to play it. When I searched for solutions, thinking I might have to use a different codes, I stumbled upon a topic on SOF saying "But there are more codecs available for mp4. You can see the list of them by setting fourcc = -1, it will show a list like this:" So I changed the fourcc argument like: "videoWriter = cv.VideoWriter(os.path.join('OpenCV', 'OpenCV_Data', 'OpenCV_Videos', 'output.mp4'), -1, fps, (width, height))" expecting a list and instead got a working video as output. It works as well, if I use 1 instead of -1. If I switch back to 'P','I','M','1' or *'XVID' or such it doesnt work. No idea whats going on there honestly.. but anyways, great videos man! Im really enjoying them and they are really helpful.
@longtruong9935
@longtruong9935 2 жыл бұрын
how you use auto typing/auto correct at 15:58 in JupyterLab?
@uzersayed3530
@uzersayed3530 Жыл бұрын
which is the best codec for mp4 files?
@shivamray6689
@shivamray6689 Жыл бұрын
Iam getting an error while writing a video in opencv 4.7.072
@amithasm5491
@amithasm5491 2 жыл бұрын
Hello sir, How to generate summary of the vedio? I'm working on this project and stuck.. could you please help me?
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Convert the video to audio first, then audio to text then finally using a summarizer!
@microgamawave
@microgamawave 2 жыл бұрын
What about 3D face recognition?? And how to convert two cameras in to stereo camera?? For creating 3d face objects And Distance measurement which openCV?????
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
Ooooh, haven't touched on that yet! Could possibly take a look in the future @Daniel!
@majdabualnour
@majdabualnour 2 жыл бұрын
Mr:nichola The video is running too fast as 2×
@otodidaktutorial3610
@otodidaktutorial3610 Жыл бұрын
the guy who pretend writing a code 😁
@Powercube7
@Powercube7 2 жыл бұрын
Bruh all of this is cap (got the joke? cap? capture?)
@NicholasRenotte
@NicholasRenotte 2 жыл бұрын
*crickets* nah, I got it LOL
Accessing USB Devices and Webcams with OpenCV and Python
21:40
Nicholas Renotte
Рет қаралды 87 М.
КИРПИЧ ОБ ГОЛОВУ #shorts
00:24
Паша Осадчий
Рет қаралды 6 МЛН
didn't want to let me in #tiktok
00:20
Анастасия Тарасова
Рет қаралды 9 МЛН
Top 6 Tools to Turn Code into Beautiful Diagrams
3:24
ByteByteGo
Рет қаралды 513 М.
OpenAI SHOCKED Everyone! Voice, Vision, & Free?!
8:58
Theoretically Media
Рет қаралды 38 М.
Automating My Life with Python: The Ultimate Guide | Code With Me
11:26
Reading Video Files With Python - Image Processing In OpenCV
12:11
CodingLikeMad
Рет қаралды 4,7 М.
Object Detection in 10 minutes with YOLOv5 & Python!
10:45
Rob Mulla
Рет қаралды 210 М.
OpenAI’s GPT-4o: The Best AI Is Now Free!
9:14
Two Minute Papers
Рет қаралды 162 М.
Automated Video Editing with MoviePy in Python
14:07
NeuralNine
Рет қаралды 92 М.
САМЫЙ дешевый ПК с OZON на RTX 4070
16:16
Мой Компьютер
Рет қаралды 113 М.
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43
Why spend $10.000 on a flashlight when these are $200🗿
0:12
NIGHTOPERATOR
Рет қаралды 17 МЛН
Airpods’un Gizli Özelliği mi var?
0:14
Safak Novruz
Рет қаралды 2,8 МЛН
The power button can never be pressed!!
0:57
Maker Y
Рет қаралды 40 МЛН