Wrong dts values for fdsrc before rtpbin

Francesc Pinyol Margalef francesc.pinyol.m at gmail.com
Tue May 12 16:34:34 UTC 2020


Hi,
I've found a more compact way to reproduce the problem:

export GST_DEBUG=WARN
AUDIOCAPS="audio/x-raw,format=S16LE,layout=interleaved,rate=44100,channels=2"

gst-launch-1.0 -v audiotestsrc wave=5 ! volume volume=0.1 ! ${AUDIOCAPS} !
fdsink fd=3 3>&1 1>&2 | gst-launch-1.0 -v rtpbin name=bin fdsrc fd=0
do-timestamp=true !
"audio/x-raw,format=S16LE,layout=interleaved,rate=48000,channels=2" ! queue
max-size-buffers=200 max-size-time=1000000000 max-size-bytes=192000 !
identity silent=false ! audiorate tolerance=40000000 skip-to-first=false !
audioresample ! audioconvert ! queue ! opusenc bitrate=120000 ! rtpopuspay
pt=97 ! bin.send_rtp_sink_1 bin.send_rtp_src_1 ! udpsink host=224.0.0.0
port=7002 sync=true

Sometimes, dts values do not start from 0, but from another value, that
turns out to be the uptime:
/GstPipeline:pipeline0/GstIdentity:identity0: last-message = chain
******* (identity0:sink) (4096 bytes, dts: none, pts: none, duration: none,
offset: 208896, offset_end: -1, flags: 00000000 , meta: none) 0x7f0454044120
/GstPipeline:pipeline0/GstIdentity:identity0: last-message = chain
******* (identity0:sink) (4096 bytes, dts: none, pts: none, duration: none,
offset: 212992, offset_end: -1, flags: 00000000 , meta: none) 0x7f0454044240
/GstPipeline:pipeline0/GstIdentity:identity0: last-message = chain
******* (identity0:sink) (4096 bytes, dts: none, pts: none, duration: none,
offset: 217088, offset_end: -1, flags: 00000000 , meta: none) 0x7f0454044360
/GstPipeline:pipeline0/GstIdentity:identity0: last-message = chain
******* (identity0:sink) (4096 bytes, dts: 8:58:02.591006549, pts:
8:58:02.591006549, duration: none, offset: 221184, offset_end: -1, flags:
00000000 , meta: none) 0x7f

$ uptime
 18:22:19 up  8:58, 34 users,  load average: 3,81, 2,71, 2,51


-- 
Francesc Pinyol Margalef
http://www.francescpinyol.cat/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200512/d478a051/attachment.htm>


More information about the gstreamer-devel mailing list