Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Kill vpf thread #224

Closed
Closed

Description

@Sayyam-Jain

Hi, I'm trying to use this for RTSP, unfortunately as you know it doesn't returns in case of camera/network break.

So, I was thinking to start another thread to keep track of incoming frames and kill cuda context, to free gpu memory and other resources in case of break, however I'm unable to do so.
pop or del both aren't working.

Can you please suggest something?

Activity

  1. rarzumanyan commented on Jul 26, 2021

    @rarzumanyan
    Contributor

    Hi @Sayyam-Jain

    Apologies for the late reply.
    I assume you may use Producer-Consumer pattern.
    E. g. use GStreamer of FFmpeg process for getting the compressed video frames from network add VPF process for actual decoding & processing. These processes can use FIFO channel for communication as it's shown at this wiki page

    P. S.
    There are alternative approaches to killing a Python threads, this is a nice article which covers the topic.

  2. added
    questionFurther information is requested
    and removed
    enhancementNew feature or request
    on Dec 6, 2022
  3. locked and limited conversation to collaborators on Dec 6, 2022
  4. converted this issue into a discussion #400 on Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions