how to open video files in python using opencv | Read video Files with open cv python

Поділитися
Вставка
  • Опубліковано 18 вер 2024
  • in this video ill show you how to read a video file using python in opencv

КОМЕНТАРІ • 27

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

    thank you code bear very helpful i was a little lost trying yesterday but i tried in pycharm instead so my mistake but i took a good look at it today very useful👍

  • @nigelpallatt
    @nigelpallatt 8 місяців тому

    Brilliant! Thank you I now subscribe!

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

    Thank you sir.

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

    Dude i could totally kiss you right now!!!!!! Thank you 💛💛💛💛💛💛💛💛

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

    hi , once i open a video from the computer and modified the resolution or other things, how can I save again the file video in the computer ? thank you very much

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

    if I type cv2.waitKey(0) only the first frame of the video is displyed however if I pass any other number nothing is displayed
    note that in both cases this error is shown ( File "c:\Users\Elyes\Environments\virtual_env1\ComputerVision.py", line 9, in
    cv2.imshow('Rubik', frame)
    cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor' )please help

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

    HI code bear i am doing a project where if we open our mouth the video has to start playing and when we close the mouthh the video has to stop playing the cod is very similar to this code but the video just shows up as a picture it doesnt play as a videoe

  • @user-zl1th6xy8x
    @user-zl1th6xy8x 2 роки тому

    hello, thank you for the code, but the problem is the video playback don't have the audio, can you help me?

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

    Hi! The code works fine but what about the error showing in terminal as "error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize' " How to resolve it?

    • @scratchasmr-yash4958
      @scratchasmr-yash4958 Рік тому +1

      Type "r" before the video path or give "\\" after each and every file or folder name !.It will solve your problem

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

    Agr sound k sath play karna to kese karege

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

    with sound and control how to play

  • @Mr.Limonchik
    @Mr.Limonchik 2 роки тому

    Hello, thanks for the script but, I want to know how to hide the command line that opens after running the script?

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

    My code running properly but pop up video dialog box is not opening

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

    How can I hear an audio?

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

    But aapka video bina sound k hi play hua hai esa kyu

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

    i'm not able to get the audio

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

    Hi, i tried this step but the video wont appear. Do you know why?

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

      Can you share the code so that i can look what the problem is

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

      @@thecodebear i think the code is not the problem. The terminal state that “invalid syntax”. My videos also not displayed in editor because it said either binary or it uses unsupported text encoding

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

      @@Tazch i need to see the error or your code in order to fix it.

  • @AmirHosseinZareSarvi
    @AmirHosseinZareSarvi 11 місяців тому

    It doesn't have sound

  • @Lesimes-2055
    @Lesimes-2055 2 роки тому +1

    somehow my video play faster than usual

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

      Increase the value given to waitKey function