simaaisrc

Description

This plugin is similar to filesrc or multifilesrc plugins but supports SiMa memory allocation. So it can be used to debug/develop SiMa pipelines. This plugin is extremely useful if you’re debugging or developing new pipeline. simaaisrc plugin allows you to mock the input for your plugin and therefore test the another plugin in isolation.

Note

  • The mem-target parameter values are as follows:

    • 0 -> Allocating into A65 CPU memory

    • 1 -> Allocating into EV74 CVU memory

    • 2 or 4 -> Allocating into MLA memory

Example Usage

1! gst-launch-1.0 simaaisrc location=/data/test-001.out mem-target=0 .. !

gst-inspect-1.0 Output

 1Factory Details:
 2Rank                     none (0)
 3Long-name                SimaCustomSrc
 4Klass                    Custom Source
 5Description              Read image and push
 6Author                   SiMa.Ai
 7
 8Plugin Details:
 9Name                     simaaisrc
10Description              SiMa Custom Src
11Filename                 ./gst-plugins/libgstsimaaisrc.so
12Version                  0.1
13License                  unknown
14Source module            gst-plugins-sima
15Binary package           GStreamer
16Origin URL               SiMa.ai
17
18GObject
19+----GInitiallyUnowned
20    +----GstObject
21            +----GstElement
22                +----GstBaseSrc
23                        +----GstSimaaiSrc
24
25Pad Templates:
26SRC template: 'src'
27    Availability: Always
28    Capabilities:
29    ANY
30
31Element has no clocking capabilities.
32Element has no URI handling capabilities.
33
34Pads:
35SRC: 'src'
36    Pad Template: 'src'
37
38Element Properties:
39blocksize           : Size in bytes to read per buffer (-1 = default)
40                        flags: readable, writable
41                        Unsigned Integer. Range: 0 - 4294967295 Default: 4096
42delay               : Sleep TimerSleep Time
43                        flags: readable, writable
44                        Integer64. Range: 0 - 9223372036854775807 Default: 0
45do-timestamp        : Apply current stream time to buffers
46                        flags: readable, writable
47                        Boolean. Default: false
48index               : Index to use with location property to create file names.  The index is incremented by one for each buffer read.
49                        flags: readable, writable
50                        Integer. Range: 0 - 2147483647 Default: 0
51location            : location
52                        flags: readable, writable, changeable only in NULL or READY state
53                        String. Default: null
54mem-target          : Memory target for simamemlib
55                        flags: readable, writable
56                        Integer. Range: 0 - 2 Default: 1868721529
57name                : The name of the object
58                        flags: readable, writable, 0x2000
59                        String. Default: "simaaisrc0"
60node-name           : Node Name
61                        flags: readable, writable, changeable only in NULL or READY state
62                        String. Default: null
63num-buffers         : Number of buffers to output before sending EOS (-1 = unlimited)
64                        flags: readable, writable
65                        Integer. Range: -1 - 2147483647 Default: -1
66parent              : The parent of the object
67                        flags: readable, writable, 0x2000
68                        Object of type "GstObject"
69pool-size           : Amount of buffers to allocate in output buffer pool
70                        flags: readable, writable
71                        Unsigned Integer. Range: 2 - 5 Default: 5
72stream-id           : Stream Id
73                        flags: readable, writable, changeable only in NULL or READY state
74                        String. Default: "unknown-stream-id"
75typefind            : Run typefind before negotiating (deprecated, non-functional)
76                        flags: readable, writable, deprecated
77                        Boolean. Default: false