Skip to content

Run multiple containers in parallel #792

@mfoglio

Description

@mfoglio

Hello,

I am using pyav to stream a few rtsp videos on the same device. I need to access some of the data coming from the streaming and decode the actual frame only if a few conditions arise:

get packet --> compute conditions --> if conditions are satisfied decode the frame

It is my understanding that multiple containers cannot work in parallel because of GIL, therefore I tried to create Process for video ingestion. However, that does not seem to be a solution because VideoFrame objects cannot be pickled. I would need to pickle them to add them to a queue so that they can be later retrieved and decoded only if the abovementioned conditions are satisfied.

How can I solve this situation? My goal is to ingest multiple streams in parallel so that I can fully exploit the CPU.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions