OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Not able to display first frame of mp4 file with opencv and python

  • Thread starter Thread starter Jatin Parmar
  • Start date Start date
J

Jatin Parmar

Guest
I am learning opencv from the youtube and I just created the very basic program in python

Code:
        import cv2 as cv


        sources=cv.VideoCapture("test.mp4");

        if(not sources.isOpened()):
            print("Failed to open video file");
        else:
            print("video file opened successfully");

        win_name="test"
        cv.namedWindow(win_name);

        has_input,frame= sources.read();
        if(has_input):en 
            cv.imshow(win_name,frame[...,::-1])
            cv.waitKey(0)
        sources.release();

But when i run the programm i have following errors, i have tried googling it but i didn't find any working solution

[av1 @ 0x55e6dc8b0780] Missing Sequence Header. [av1 @ 0x55e6dc8b0780] Missing Sequence Header. [av1 @ 0x55e6dc8b0780] Missing Sequence Header. [av1 @ 0x55e6dc8b0780] Missing Sequence Header. [av1 @ 0x55e6dc8b0780] Missing Sequence Header. [av1 @ 0x55e6dc8b0780] Missing Sequence Header. [av1 @ 0x55e6dc8b0780] Missing Sequence Header. [av1 @ 0x55e6dc8b0780] Missing Sequence Header. [av1 @ 0x55e6dc8b0780] Missing Sequence Header. video file opened successfully [av1 @ 0x55e6dc97a7c0] Your platform doesn't suppport hardware accelerated AV1 decoding. [av1 @ 0x55e6dc97a7c0] Failed to get pixel format.

I have no i idea how to fix this?
<p>I am learning opencv from the youtube and I just created the very basic program in python</p>
<pre><code> import cv2 as cv


sources=cv.VideoCapture("test.mp4");

if(not sources.isOpened()):
print("Failed to open video file");
else:
print("video file opened successfully");

win_name="test"
cv.namedWindow(win_name);

has_input,frame= sources.read();
if(has_input):en
cv.imshow(win_name,frame[...,::-1])
cv.waitKey(0)
sources.release();
</code></pre>
<p>But when i run the programm i have following errors, i have tried googling it but i didn't find any working solution</p>
<p>[av1 @ 0x55e6dc8b0780] Missing Sequence Header.
[av1 @ 0x55e6dc8b0780] Missing Sequence Header.
[av1 @ 0x55e6dc8b0780] Missing Sequence Header.
[av1 @ 0x55e6dc8b0780] Missing Sequence Header.
[av1 @ 0x55e6dc8b0780] Missing Sequence Header.
[av1 @ 0x55e6dc8b0780] Missing Sequence Header.
[av1 @ 0x55e6dc8b0780] Missing Sequence Header.
[av1 @ 0x55e6dc8b0780] Missing Sequence Header.
[av1 @ 0x55e6dc8b0780] Missing Sequence Header.
video file opened successfully
[av1 @ 0x55e6dc97a7c0] Your platform doesn't suppport hardware accelerated AV1 decoding.
[av1 @ 0x55e6dc97a7c0] Failed to get pixel format.</p>
<p>I have no i idea how to fix this?</p>
 

Latest posts

Top