Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU usage is too high #6

Open
dexception opened this issue Mar 24, 2020 · 1 comment
Open

CPU usage is too high #6

dexception opened this issue Mar 24, 2020 · 1 comment

Comments

@dexception
Copy link

For 1920x1080 resolution.

The CPU is around 2 i7 cores.
May the pipeline configured with TCP/UDP connection will yield more efficiency.

@ThiagoMateo
Copy link

Do you solve this problem?
i try to decode with nvidia accelerate by changing

 self.pipeline = Gst.parse_launch(
            'rtspsrc name=m_rtspsrc ! rtph264depay name=m_rtph264depay ! avdec_h264 name=m_avdech264 ! videoconvert name=m_videoconvert ! videorate name=m_videorate ! appsink name=m_appsink')

to

 self.pipeline = Gst.parse_launch(
            'rtspsrc name=m_rtspsrc ! rtph264depay name=m_rtph264depay ! nvv4l2decoder name=m_avdech264 ! nvvideoconvert name=m_videoconvert ! videorate name=m_videorate ! appsink name=m_appsink')

but there are some error like below:

TypeError: buffer is too small for requested array
Traceback (most recent call last):
  File "/data/vid_streamv3.py", line 78, in new_buffer
    arr = self.gst_to_opencv(sample)
  File "/data/vid_streamv3.py", line 73, in gst_to_opencv
    dtype=np.uint8)
TypeError: buffer is too small for requested array
Caught Keyboard interrupt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants