Basic video operations in openCV using Python || Capture Video, Play Video, Write Video

Поділитися
Вставка
  • Опубліковано 18 вер 2024
  • This video explains how to play a video from a video file, how to capture video using webcam or any camera connected to your computer and also how to save the captured video on your storage device. Please help us by SUBSCRIBING to our channel. If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)

КОМЕНТАРІ • 69

  • @tanmayagarwal1356
    @tanmayagarwal1356 4 роки тому +11

    Amazing Video!! I have been searching for this since 3 days. Tysm!!

    • @robinkadian6418
      @robinkadian6418 3 роки тому

      Ya, same here. So simple and decent explanation.

  • @luqmanmusa5333
    @luqmanmusa5333 2 роки тому +1

    I love this video. You saved me so so so much Tech dose everything worked absolutely fine.

  • @ayushmathur3925
    @ayushmathur3925 3 роки тому

    Been searching for this for past 5 days and finally a code that works. Thanks.

  • @kannigasathya1016
    @kannigasathya1016 3 роки тому +3

    Amazing Sir!!Thank you!!

  • @nelsondarwinpaktech3954
    @nelsondarwinpaktech3954 3 роки тому +1

    its an easy explanatuon as compared to other tutorials.....

  • @SHVTR
    @SHVTR Рік тому

    excellent and relevant to this day

  • @anshupandey958
    @anshupandey958 3 роки тому +1

    awesome video sir thanks for teaching us tysm

  • @dhxbcmd
    @dhxbcmd 2 роки тому +1

    thank you for your lecture
    wonder
    Start video recording key = 'F5'
    Video recording pause key ='F6'
    End section (off) key ='q'
    If you can tell me how to do it, thank you.

  • @shourya9998
    @shourya9998 4 роки тому +4

    Amazing video sir!!!
    I just had one doubt, is it nescessary to import numpy?
    Thanks in advance!

    • @techdose4u
      @techdose4u  4 роки тому

      I write it by default. It may not be required. Just remove and run if not used.

  • @Breslinmusic
    @Breslinmusic 3 роки тому

    Really great teacher. Thank you :-)

  • @pavithranarayanan9435
    @pavithranarayanan9435 3 роки тому +3

    Sir, I'm facing an issue in the cv2.imshow() part. Can you help me with that. Also, I have installed NumPy, but it doesn't seem to be working. Please do help me.

  • @AhmedSayed-pk6rw
    @AhmedSayed-pk6rw Рік тому

    I thank you very much

  • @elenikaferhati7075
    @elenikaferhati7075 3 роки тому

    good job man you saved my ash

  • @christabelchristopher4848
    @christabelchristopher4848 Рік тому

    thank you so much for this video

  • @gregorismalekos6985
    @gregorismalekos6985 3 роки тому +1

    Great video! Thank you

  • @User-gu3se
    @User-gu3se 8 місяців тому

    Thank you bro

  • @krishnajoshi364
    @krishnajoshi364 2 роки тому +1

    Hello Tech Dose, thank you so much for sharing the video. Does anyone know how to record audio along with video? Please let me know. thank you :)

  • @TheChEiNt
    @TheChEiNt 5 років тому +3

    Hello, thanks for the video. Do you think that I could, using this module or any other tools available for python, make an interactive video where when you press a key let's say the camera angle changes (there would be 2 videos playing simoultaneously and when you press the key you change to the one that is not showing). This change must be continuous. Thank you.

    • @techdose4u
      @techdose4u  5 років тому +1

      Yes can switch between cameras. You can google the code for the same.

  • @dnyaneshwarpawar3720
    @dnyaneshwarpawar3720 4 роки тому +1

    amazing video sir, I have a question that every time we run it replaces the previous video file, how can we store video individually when everytime we run the code?

    • @rshndb99
      @rshndb99 3 роки тому +1

      Bro i want to ask you that, when i save the video using VideoWriter () it saves it with 0 bytes
      Why it is happening can you please help me

    • @dnyaneshwarpawar3720
      @dnyaneshwarpawar3720 3 роки тому +1

      @@rshndb99 cause it's just taking an first frame of the video, we need to save all the frame to form a video.

    • @fatedzero1039
      @fatedzero1039 Рік тому

      I have the same question, how can I save the video separately everytime the code run?

  • @saiteja1430
    @saiteja1430 4 роки тому +4

    how to play a video with audio?????

  • @vaishnavipatil4056
    @vaishnavipatil4056 3 роки тому +1

    Hello, Thanks for the video
    I wanted to ask if we can write the output video on cloud or drive instead storing it on device

    • @nawthazin9327
      @nawthazin9327 Рік тому

      Hey mate, have you got any idea for this?

  • @subodh.r4835
    @subodh.r4835 4 роки тому +2

    XVID is not supported with .mp4 files.

  • @jadavpur4
    @jadavpur4 3 роки тому +1

    From video input, how to generate images from that and then images processing for particle size distribution from the video? Thank you in advance..

  • @FPChris
    @FPChris 3 роки тому +1

    Now try with audio

  • @godswillotto9110
    @godswillotto9110 4 роки тому +1

    Very nice video. But the video is playing very fast and has no audio. How do i solve this problem.

  • @devmely
    @devmely Рік тому

    Okay 👍

  • @amirulhakimbinabdulrahmanu3761
    @amirulhakimbinabdulrahmanu3761 2 роки тому

    thanks so much, but can u teach us how to open the video without thru cmd? just run use our enviroment, is it possible?

  • @girishahire3142
    @girishahire3142 3 роки тому +1

    but it not recording voice

  • @AK-ov2kx
    @AK-ov2kx 4 роки тому

    I am using video capture (0) option. The code is not able to open the webcam of laptop properly. It opens for a brief amount of time and the video is blurred and in gray then the video hangs . I am using python3 and opencv4 on Windows 7. I am using IDLE. it showes that some RGB codec not find.. Please help me out.

  • @sanjaybalasubramanian9468
    @sanjaybalasubramanian9468 3 роки тому

    Traceback (most recent call last):
    File "C:/Users/EL.COT-Lenovo/AppData/Local/Programs/Python/Python38/videocv.py"
    line 10, in
    ov2.im how ('Working , frame) cv2.error:OpenCV (4.4.0) C:\Users\appveyor\AppData\Local\Temp\i\pip-reg-build-h4 wtvo23\opencv\modules\highgui\src\window.cpp:376: error: (-215: Assertion failed) 31ze.width>0 n s size.height>0 in function cv::imshow"
    What should I do now?

  • @Vikaskumar-xd7qj
    @Vikaskumar-xd7qj 3 роки тому

    Hi I am getting image as output from model and i want to show output as video ( I don't want to write video to save them I just want to stream them) how can I do that please help me

  • @shivamsharma-zv7zl
    @shivamsharma-zv7zl 3 роки тому

    whenever i try to do little bit editing in this even like saving in gray scale image. my video become not supported. help me sir

  • @sambitkumar9574
    @sambitkumar9574 3 роки тому

    This video is kind of code walkthrough, not an explanation video. Better if you can explain the function signatures and what all can we do with those functions, in your videos.
    e.g. in this video, video codec is mentioned with the method to create one without explaining what a video codec is, what all are the parameters and allowed values.

  • @sherlockskey4131
    @sherlockskey4131 2 роки тому

    Sir,but when we are running the video for 2nd time it overrides the first video

  • @michelfarad3965
    @michelfarad3965 3 роки тому

    sir can u add sound also please

  • @asmachouya6402
    @asmachouya6402 4 роки тому

    THANKS for the video.but for me i can't run all the video ,it captured just one frame and stopped! any help?

  • @nepalibabudeveloper8707
    @nepalibabudeveloper8707 3 роки тому

    Sir video is not showing in my laptop.what the problem?

  • @PRASHILD
    @PRASHILD 3 роки тому

    sir will the other code run when the video is over

  • @saraswatiupadhyay989
    @saraswatiupadhyay989 3 роки тому +1

    It is showing no module named numpy

    • @techdose4u
      @techdose4u  3 роки тому

      Check if numpy is installed correctly.

  • @kprakash9665
    @kprakash9665 3 роки тому

    video along with i want to play by open cv

  • @fardinahsan2069
    @fardinahsan2069 3 роки тому

    Saw that syntax error coming from 10 miles away

  • @ravindrashinde5319
    @ravindrashinde5319 4 роки тому

    We will run the code with cmd tell me??

  • @RonalRomeroVergel
    @RonalRomeroVergel Рік тому

    where is the code bro?

  • @hussenalsaigh3155
    @hussenalsaigh3155 3 роки тому

    i want the full ccde do wabsiz and but text code

  • @bhawnakapoor841
    @bhawnakapoor841 4 роки тому

    Can help me to make a python programme, which is able to capture frame a video file after every 6th second, ?

    • @techdose4u
      @techdose4u  4 роки тому

      Read docs which is about parameter of waiting time. You will get it.

    • @subodh.r4835
      @subodh.r4835 4 роки тому

      You can write waitKey(6) instead of waitKey(1)

  • @rshndb99
    @rshndb99 3 роки тому

    When i save the video using VideoWriter () it saves it with 0 bytes
    Why it is happening can anyone explain this ??

  • @Alva_Murli
    @Alva_Murli 4 роки тому +1

    camera stops immediately after start

    • @techdose4u
      @techdose4u  4 роки тому

      Try changing the wait time

  • @danneyism1447
    @danneyism1447 3 роки тому

    Muta?

  • @Tech_Talks_By_Marsh
    @Tech_Talks_By_Marsh 2 роки тому

    code error showing bro

  • @oussamathedjfreeman
    @oussamathedjfreeman 2 роки тому

    thanks you got mysubscription :) i need your contact fb

  • @rishikantgouda8071
    @rishikantgouda8071 Рік тому

    Me looking at itachi