Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alba Mendez
gst-docs
Commits
564ccf6f
Commit
564ccf6f
authored
Mar 25, 2019
by
Ralf Sippl
Committed by
Nicolas Dufresne
Jun 01, 2019
Browse files
Update clocks.md - fix some 'broken' sentences, typos
parent
e4040674
Changes
1
Hide whitespace changes
Inline
Side-by-side
markdown/application-development/advanced/clocks.md
View file @
564ccf6f
...
...
@@ -23,10 +23,10 @@ GStreamer provides support for the following use cases:
typical web streaming case where you access content from a streaming
server using HTTP.
-
Capture from live source and
and
playback
to live source with
configurable latency. This
is used
when
, for example, captur
e
from a
camera, apply an
effect and display the result. It is also used when
streaming
low latency content over a network with UDP.
-
Capture from live source and playback
with configurable latency. This
is used, for example,
when
captur
ing
from a
camera, applying an
effect and display
ing
the result. It is also used when
streaming
low latency content over a network with UDP.
-
Simultaneous live capture and playback from prerecorded content.
This is used in audio recording cases where you play a previously
...
...
@@ -72,7 +72,7 @@ clock.
## Buffer running-time
To calculate a buffer running-time, we need a buffer timestamp and the
`SEGMENT`
event that prece
e
ded the buffer. First we can convert the
`SEGMENT`
event that preceded the buffer. First we can convert the
`SEGMENT`
event into a
`GstSegment`
object and then we can use the
`gst_segment_to_running_time ()`
function to perform the calculation of
the buffer running-time.
...
...
@@ -132,9 +132,9 @@ state. It is allowed to pause the clock while the element is `PAUSED`.
Clock providers exist because they play back media at some rate, and
this rate is not necessarily the same as the system clock rate. For
example, a soundcard may playback at 44
,
1 kHz, but that doesn't mean
example, a soundcard may play
back at 44
.
1 kHz, but that doesn't mean
that after
*exactly*
1 second
*according to the system clock*
, the
soundcard has played back 44
.
100 samples. This is only true by
soundcard has played back 44100 samples. This is only true by
approximation. In fact, the audio device has an internal clock based on
the number of samples played that we can expose.
...
...
@@ -190,7 +190,7 @@ pipeline and configures this with a `LATENCY` event.
All sink elements will delay playback by the value in the
`LATENCY`
event.
Since all sinks delay with the same amount of time, they will be
relative in sync.
relative
ly
in sync.
### Dynamic Latency
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment