De-jittering/PLC of audio/x-raw from appsrc

Sean DuBois sean at siobud.com
Tue Jul 25 05:33:30 UTC 2017


Hi!

Currently I am receiving audio/x-raw via an appsrc from an external API,
and the only thing I know about the audio is the duration of each buffer
(PTS should just be the time of the pipeline) however I am having an issue
with discontinuity

Every so often there will be very small gaps in audio, and since I am
mixing a live source I will hear and it is very jarring. I have tried an
audiorate but it drops all the samples (is there something I need to
set/tune?)

And here is what an identity is printing
(identity:sink) (4096 bytes, dts: 0:00:26.001382623, pts: 0:00:26.001382623, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.001466936, pts: 0:00:26.001466936, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.001529197, pts: 0:00:26.001529197, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.001614731, pts: 0:00:26.001614731, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.001726217, pts: 0:00:26.001726217, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.001798130, pts: 0:00:26.001798130, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.002215631, pts: 0:00:26.002215631, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.002286981, pts: 0:00:26.002286981, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.173359572, pts: 0:00:26.173359572, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.173459624, pts: 0:00:26.173459624, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.173543008, pts: 0:00:26.173543008, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.173667536, pts: 0:00:26.173667536, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.173768505, pts: 0:00:26.173768505, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.177542016, pts: 0:00:26.177542016, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.177678218, pts: 0:00:26.177678218, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.227309864, pts: 0:00:26.227309864, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.227400365, pts: 0:00:26.227400365, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.227489192, pts: 0:00:26.227489192, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.340898451, pts: 0:00:26.340898451, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.340964952, pts: 0:00:26.340964952, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.341020044, pts: 0:00:26.341020044, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )
(identity:sink) (4096 bytes, dts: 0:00:26.341077659, pts: 0:00:26.341077659, duration: 0:00:00.023219954, offset: -1, offset_end: -1, flags: 00000000 )


More information about the gstreamer-devel mailing list