Choppy audio playing a videofile through webrtcsink

Vincent Deconinck vdeconinck at gmail.com
Wed Nov 15 22:39:02 UTC 2023


Hi,

I made some progress in my quest to stream video files to a browser using
webrtcssink, but audio is not OK. I built the following pipeline:
+-----------------------------------------------------------------------------+
| uridecodebin.audio ->- audioconvert ->- audioresample ->-
webrtcssink.audio |
| uridecodebin.video ----->----- videoconvert ------>------
webrtcssink.video |
+-----------------------------------------------------------------------------+

The webrtcsink pads are statically linked, and the uridecodebin pads are
dynamically linked upon "pad_added" signal (as in
https://gstreamer.freedesktop.org/documentation/tutorials/basic/dynamic-pipelines.html
).

Problem: The video looks OK in the browser, but the audio is choppy. A
quick and dirty (sorry) video tells a thousand words:
https://youtu.be/1EbPHLZvVLc?t=27

(using signalling server, JS API and gstreamer built 2 days ago from git
HEAD)

I was first using the http URI to the source video but I also tried using a
local copy of the file, to no avail.

Any idea what could be wrong ? Or an idea how I could track down that issue
?

Kind regards,

Vincent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20231115/ab08a45d/attachment.htm>


More information about the gstreamer-devel mailing list