Migrating Traditional DeepStream Apps to Service Maker Apps in Python
There are two options available for migrating traditional Deepstream applications to Python apps. One option involves using Pipeline APIs with configuration files, while the other option utilizes Flow APIs. Each approach offers its own advantages and can be chosen based on the specific requirements and preferences of the application developers.
Guidelines for migrating Deepstream applications to Python apps using pipeline APIs remain consistent with those of Service Maker C++ APIs. Thus, this section will focus on how to migrate Deepstream Applications to Python apps using Flow APIs.
-
Defining the Video source
Service Maker uses a Source List YAML file to define inputs, including the source information and input configuration. Specification of source list file can be found in SourceConfig. Once we have a Source List file, we can create a batch capture flow with it:
-
Pipeline Customization
In Flow APIs, each predefined section for pipeline customization in the configuration file for a traditional Deepstream Application corresponds to its respective function:
-
Sink management
Flow APIs have corresponding functions for each sink type supported in traditional Deepstream Application:
To enable multiple-sink, we can just call fork() to fork the current flow and append various sink functions with it (check the ‘fork’ function in previous sections).