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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Sean DuBois
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 )
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Baby Octopus
Are you setting the timestamp of the buffer properly? --gst-debug=basesink:5 and see if buffers are reaching the sink late
Loading...