| 1 |
meta, |
| 2 |
args = { |
| 3 |
"appsrc name=src format=time handle-segment-change=true ! \ |
| 4 |
videorate max-closing-segment-duplication-duration=999999999999999 name=videorate ! video/x-raw,framerate=1/1 ! fakesink sync=true", |
| 5 |
}, |
| 6 |
configs = { |
| 7 |
"$(validateflow), pad=videorate:sink, buffers-checksum=as-id, ignored-event-types={ tag }", |
| 8 |
"$(validateflow), pad=videorate:src, buffers-checksum=as-id, ignored-event-types={ tag }", |
| 9 |
}, |
| 10 |
handles-states=true, |
| 11 |
ignore-eos=true |
| 12 |
|
| 13 |
|
| 14 |
appsrc-push, target-element-name=src, fill-mode=counter, pts=0.0, duration=1.0, size=115200, |
| 15 |
caps=(GstCaps)[video/x-raw,format=I420,framerate=1/1,width=320,height=240], |
| 16 |
segment=[segment, stop=3.0, format=(GstFormat)time] |
| 17 |
|
| 18 |
appsrc-push, target-element-name=src, fill-mode=counter, pts=1.0, duration=1.0, size=115200, |
| 19 |
caps=(GstCaps)[video/x-raw,format=I420,framerate=1/1,width=320,height=240], |
| 20 |
segment=[segment, stop=3.0, format=(GstFormat)time] |
| 21 |
|
| 22 |
play |
| 23 |
|
| 24 |
crank-clock, repeat=1 |
| 25 |
|
| 26 |
set-properties, src::caps="video/x-raw,width=322,height=244,framerate=1/1" |
| 27 |
|
| 28 |
appsrc-eos, target-element-name=src |
| 29 |
crank-clock, repeat=3 |
| 30 |
|
| 31 |
wait, message-type=eos |
| 32 |
|
| 33 |
# check-position, expected-position=2.0 |
| 34 |
stop |
| 35 |
|
| 36 |
|
| 37 |
|