gstreamer/tests/validate/videorate/reverse.variable_to_10fps.validatetest
Thibault Saunier d846a1ac1c tests:validate: Run all test using a simple fakesink
`fakevideosink` is in -bad and thus not available here.

Update the expectation files as video metas are not negotiated anymore.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/677>
2020-05-29 19:21:43 +00:00

34 lines
1.1 KiB
Text

set-globals, in_framerate=(string)"0/1", out_framerate=(string)"10/1"
meta,
handles-states=true,
ignore-eos=true,
args = {
"videotestsrc pattern=ball animation-mode=frames ! video/x-raw,format=I420,framerate=30/1 ! capssetter caps=\"video/x-raw,framerate=$(in_framerate)\" ! videorate name=videorate ! video/x-raw,format=I420,framerate=$(out_framerate) ! fakesink sync=true",
},
configs = {
"$(validateflow), pad=videorate:sink, buffers-checksum=true",
"$(validateflow), pad=videorate:src, buffers-checksum=true",
}
play
seek, start=0.0, stop=1.0, flags=accurate+flush, rate=-1.0
# First buffer is display as fast as possible
crank-clock, expected-elapsed-time=0.0
crank-clock, repeat=9, expected-elapsed-time=0.1
# Waiting 1 second on EOS
crank-clock, expected-elapsed-time=0.1
seek, start=1.0, stop=2.0, flags=accurate+flush, rate=-1.0, on-message=eos
# First buffer is display as fast as possible
crank-clock, expected-elapsed-time=0.0
crank-clock, repeat=9, expected-elapsed-time=0.1
# Waiting 1 second on EOS
crank-clock, expected-elapsed-time=0.1
stop, on-message=eos