Jump to content

GStreamer Daemon - Seek: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 14: Line 14:
pipeline_create p1 videotestsrc ! autovideosink
pipeline_create p1 videotestsrc ! autovideosink
pipeline_play p1
pipeline_play p1
event_eos p1
event_seek p1 1.0 0
</syntaxhighlight>
</syntaxhighlight>
will respectively
will respectively
# Create a pipeline ''p1''
# Create a pipeline ''p1''
# Put it to playing
# Put it to playing
# Send an EOS event to it
# Send a Seek event to it


The '''event_eos''' command will typically fail for any of the following:
The '''event_seek''' command will typically fail for any of the following:
* No pipeline was given
* No pipeline was given
* The given pipeline doesn't exist
* The given pipeline doesn't exist
* Wrong seek event property


Alternatively, a pipeline can be created using the [[Gstd-1.0 - Low Level Implementation for Applicaiton|low level CRUD syntax]]:
Alternatively, a pipeline can be created using the [[Gstd-1.0 - Low Level Implementation for Applicaiton|low level CRUD syntax]]:
<br>&rArr; ''Gstd Commands:''
<br>&rArr; ''Gstd Commands:''
<syntaxhighlight lang="bash" line="line" style="background-color:lavender">
<syntaxhighlight lang="bash" line="line" style="background-color:lavender">
create /pipelines/p1/event eos
create /pipelines/p1/event seek rate=1.0 format=3 flags=1 start-type=1 start=0 end-type=1 end=-1
</syntaxhighlight>
</syntaxhighlight>


Cookies help us deliver our services. By using our services, you agree to our use of cookies.