You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This discussion was converted from issue #792 on December 31, 2021 14:33.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am using
pyav
to stream a fewrtsp
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: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 becauseVideoFrame
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.
Beta Was this translation helpful? Give feedback.
All reactions