pipelines.py 11 KB
Newer Older
1
PIPELINES_DESC = {
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
    "aspectcropratio":
    {
        "pipeline": "videotestsrc !  aspectratiocrop name=cropper ! %(videosink)s",
        "scenarios": [
            {
                "name": "set_aspect_ratio_in_paused",
                "actions": [
                    "description, seek=true, handles-states=true",
                    "pause",
                    "set-property, playback-time=0.0, target-element-name=cropper, property-name=aspect-ratio, property-value=\"16/9\"",
                    "play",
                    "stop, playback-time=1.0"
                ]
            }
        ]
17
18
19
    },
    "flvdemux.audio_only":
    {
20
        "pipeline": "uridecodebin uri='file://%(medias)s/defaults/flv/819290236.flv' caps=audio/x-raw expose-all-streams=FALSE ! queue ! audioconvert ! audioresample ! %(audiosink)s",
21
        "scenarios": ["play_15s"]
22
    },
23
24
25
26
27
28
29
30
31
32
33
34
35
36
    "rtpsession_send_simple":
    {
        "pipeline": "rtpsession name=rtpsess   videotestsrc num-buffers=10 ! video/x-raw,format=RGB,width=\"320\",height=\"240\" ! rtpvrawpay ! rtpsess.send_rtp_sink   rtpsess.send_rtp_src   ! rtpvrawdepay ! fakesink",
        "config": [
            "%(validateflow)s, pad=fakesink0:sink, record-buffers=true, caps-properties={ media, clock-rate, encoding-name, sampling, depth, width, height, colorimetry, payload, a-framerate };"
        ]
    },
    "rtpsession_recv_simple":
    {
        "pipeline": "rtpsession name=rtpsess   videotestsrc num-buffers=10 ! video/x-raw,format=RGB,width=\"320\",height=\"240\" ! rtpvrawpay ! rtpsess.recv_rtp_sink   rtpsess.recv_rtp_src   ! rtpvrawdepay ! fakesink",
        "config": [
            "%(validateflow)s, pad=fakesink0:sink, record-buffers=true, caps-properties={ media, clock-rate, encoding-name, sampling, depth, width, height, colorimetry, payload, a-framerate };"
        ]
    },
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
    "flow_simple_test":
    {
        "pipeline": "videotestsrc num-buffers=3 ! fakesink",
        "config": [
            "%(validateflow)s, pad=fakesink0:sink, record-buffers=true, caps-properties={ width, height };"
        ]
    },
    "appsrc_simple_test":
    {
        "pipeline": "appsrc ! qtdemux name=demux ! video/x-h264 ! fakesink async=false demux. ! audio/x-raw ! fakesink async=false",
        "config": [
            "%(validateflow)s, pad=fakesink0:sink, record-buffers=true"
        ],
        "scenarios": [
            {
                "name": "single_push",
                "actions": [
                    "description, seek=false, handles-states=false",
                    "appsrc-push, target-element-name=appsrc0, file-name=\"%(medias)s/defaults/mp4/raw_h264.0.mp4\""
                ]
            }
        ]
    },
    "appsrc_custom_caps":
    {
        "pipeline": "appsrc ! fakesink async=false",
        "config": [
            "%(validateflow)s, pad=fakesink0:sink, record-buffers=true"
        ],
        "scenarios": [
            {
                "name": "single_push",
                "actions": [
                    "description, seek=false, handles-states=false",
                    "appsrc-push, target-element-name=appsrc0, file-name=\"%(medias)s/defaults/mp4/raw_h264.0.mp4\", caps=(GstCaps)\"video/foo\\,\\ variant\\=\\\"test-custom\\\"\"",
                    "appsrc-eos, target-element-name=appsrc0"
                ]
            }
        ]
    },
    "qtdemux_change_edit_list":
    {
        "pipeline": "appsrc ! qtdemux ! fakesink async=false",
        "config": [
            "%(validateflow)s, pad=fakesink0:sink, record-buffers=false"
        ],
        "scenarios": [
            {
                "name": "default",
                "actions": [
                    "description, seek=false, handles-states=false",
                    "appsrc-push, target-element-name=appsrc0, file-name=\"%(medias)s/fragments/car-20120827-85.mp4/init.mp4\"",
                    "appsrc-push, target-element-name=appsrc0, file-name=\"%(medias)s/fragments/car-20120827-85.mp4/media1.mp4\"",
                    "checkpoint, text=\"A moov with a different edit list is now pushed\"",
                    "appsrc-push, target-element-name=appsrc0, file-name=\"%(medias)s/fragments/car-20120827-86.mp4/init.mp4\"",
                    "appsrc-push, target-element-name=appsrc0, file-name=\"%(medias)s/fragments/car-20120827-86.mp4/media2.mp4\"",
                    "stop"
                ]
            }
        ]
    },
    "matroskademux_flush_within_cluster":
    {
        "pipeline": "appsrc ! matroskademux ! fakesink async=false",
        "config": [
            "%(validateflow)s, pad=fakesink0:sink, record-buffers=true"
        ],
        "scenarios": [
            {
                "name": "default",
                "actions": [
                    "description, seek=false, handles-states=false",
                    "appsrc-push, target-element-name=appsrc0, file-name=\"%(medias)s/fragments/feelings_vp9-20130806-242.webm/init.webm\"",
                    "appsrc-push, target-element-name=appsrc0, file-name=\"%(medias)s/fragments/feelings_vp9-20130806-242.webm/media1.webm\", size=5000",
                    "flush, target-element-name=appsrc0",
                    "checkpoint, text=\"A different cluster is pushed\"",
                    "appsrc-push, target-element-name=appsrc0, file-name=\"%(medias)s/fragments/feelings_vp9-20130806-242.webm/media2.webm\", size=10000",
                    "stop"
                ]
            }
        ]
118
119
120
121
122
123
124
    },
    "cenc_audio_esds_property_overrides":
    {
        "pipeline": "filesrc location=%(medias)s/encrypted/cenc-encrypted-youtube-aac.mp4 ! qtdemux ! mockdecryptor ! fakesink async=false",
        "config": [
            "%(validateflow)s, pad=fakesink0:sink, record-buffers=true"
        ]
125
126
127
    },
     "scaletempo_playbin_audio_filter":
    {
128
        "pipeline": "playbin audio-filter=scaletempo video-sink=\"%(videosink)s\" audio-sink=\"%(audiosink)s\" uri=file://%(medias)s/defaults/mp4/mp3_h264.0.mp4",
129
        "scenarios": ["fast_forward"]
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
    },
    "qtdemux_reverse_playback_full_gop":
    {
        "pipeline": "filesrc location=%(medias)s/defaults/mp4/mp3_h264.0.mp4 ! qtdemux ! h264parse name=parse ! fakesink",
        "config": [
            "%(validateflow)s, pad=parse:src, record-buffers=true"
        ],
        "scenarios": [
          {
              "name": "reverse_playback_full_gop",
              "actions": [
                  "description, reverse-playback=true, seek=true, handles-states=true",
                  "include,location=includes/default-seek-flags.scenario",
                  "pause",
                  "seek, name=Reverse-seek, playback-time=0.0, rate=-1.0, start=5.0, stop=10.0, flags=\"$(default_flags)\"",
                  "play"
              ]
          }
        ]
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
    },
    "h264parse_trickmode_predicted":
    {
        "pipeline": "filesrc location=%(medias)s/defaults/mp4/mp3_h264.0.mp4 ! qtdemux ! h264parse name=parse ! fakesink",
        "config": [
            "%(validateflow)s, pad=parse:src, record-buffers=true"
        ],
        "scenarios": [
          {
              "name": "seek_trickmode_predicted",
              "actions": [
                  "description, seek=true, handles-states=true",
                  "pause",
                  "seek, name=trickmode-predicted-seek, rate=1.0, start=0.0, stop=\"$(duration)\", flags=\"flush+accurate+trickmode-forward-predicted\"",
                  "play"
              ]
          }
        ]
    },
    "h265parse_trickmode_predicted":
    {
        "pipeline": "filesrc location=%(medias)s/defaults/mp4/mp3_h265.0.mp4 ! qtdemux ! h265parse name=parse disable-passthrough=true ! fakesink",
        "config": [
            "%(validateflow)s, pad=parse:src, record-buffers=true"
        ],
        "scenarios": [
          {
              "name": "seek_trickmode_predicted",
              "actions": [
                  "description, seek=true, handles-states=true",
                  "pause",
                  "seek, name=trickmode-predicted-seek, rate=1.0, start=0.0, stop=\"$(duration)\", flags=\"flush+accurate+trickmode-forward-predicted\"",
                  "play"
              ]
          }
        ]
185
     },
186
187
188
189
190
191
192
193
194
    "mp4_redirect":
    {
        "pipeline": "playbin uri=pushfile://%(medias)s/defaults/mp4/redirect.mp4 name=playbin video-sink=\"%(videosink)s name=videosink\" audio-sink=\"%(audiosink)s\"",
        "scenarios": [ "play_15s" ],
        "config": [
            "%(validateflow)s, pad=qtdemux0:sink",
            "%(validateflow)s, pad=qtdemux1:sink"
        ]
     },
195
196
197
198
199
200
201
202
203
204
205
206
207
208
    "x264enc_youtube_bitrate":
    {
        "pipeline": "videotestsrc ! video/x-raw,width=1920,height=1080 ! x264enc name=enc @preset=\"Profile YouTube\" ! fakesink",
        "scenarios": [
          {
              "name": "fullhd_lowframerate",
              "actions": [
                  "pause",
                  "check-property, target-element-name=enc, property-name=bitrate, property-value=8000",
                  "stop"
              ]
          }
        ]
    },
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
    "baseparse":
    {
        "pipeline": "file://%(medias)s/defaults/matroska/numerated_frames_blue.mkv ! matroskademux ! h264parse name=parser ! fakesink",
        "scenarios": [
            {
                "name": "single_seek",
                "actions": [
                    "description, seek=true, handles-states=true",
                    "pause",
                    "seek, rate=1.0, start=0.03333333333, flags=\"flush+accurate\"",
                    "stop",
                ],
            },
         ],
        "config": [
            "%(validateflow)s, pad=parser:src, record-buffers=true, logged-event-types={ segment }",
        ]
     },
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
    "standalone_nleurisource":
    {
        "pipeline": "nleurisource uri=file://%(medias)s/defaults/matroska/numerated_frames_blue.mkv inpoint=1000000000 duration=1000000000  ! videoconvert name=videoconvert ! %(videosink)s",
        "scenarios": [
            {
                "name": "play",
                "actions": [
                    "description, seek=false, handles-states=false",
                ]
            },
        ],
        "config": [
            "%(validateflow)s, pad=videoconvert:sink, record-buffers=true, buffers-checksum=true, ignored-event-types={ tag }"
        ]
     },
242
243
244
245
246
247
248
    "interlace_deinterlace":
    {
        "pipeline": "videotestsrc num-buffers=10 ! interlace ! video/x-raw,interlace-mode=mixed ! deinterlace ! video/x-raw,interlace-mode=progressive ! fakevideosink name=fakevideosink",
        "config": [
            "%(validateflow)s, pad=fakevideosink:sink, record-buffers=true, buffers-checksum=true"
        ]
    },
249
250
251
252
253
254
255
    "interlace_deinterlace_alternate":
    {
        "pipeline": "videotestsrc num-buffers=10 ! interlace ! video/x-raw\(format:Interlaced\) ! deinterlace ! video/x-raw ! fakevideosink name=fakevideosink",
        "config": [
            "%(validateflow)s, pad=fakevideosink:sink, record-buffers=true, buffers-checksum=true"
        ]
    },
256
257
258
259
260
261
262
    "h265parse_alternate":
    {
        "pipeline": "filesrc location=%(medias)s/defaults/h265/alternate.h265 ! h265parse ! fakesink name=fakesink",
        "config": [
            "%(validateflow)s, pad=fakesink:sink, record-buffers=true"
        ]
    },
263
}