Skip to content

Commit 455b9b5

Browse files
committed
Parse incoming mpegts data to improve delay queue behavior
With srtsrc linked directly to the delay queue, I observed the current-level-time metric go down while the current-level-bytes metric went up. I suspect that the timestamp information from srtsrc is not sufficient to be used as a basis for time-based buffering. Running the data through tsparse first appears to fix this problem.
1 parent f5b2c84 commit 455b9b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const pipelineMachine = Machine(
154154
}
155155

156156
const pipeline = new gstreamer.Pipeline(`
157-
srtsrc name=src uri=${srtInUri} ! ${delayQueue} ! tsdemux name=demux
157+
srtsrc name=src uri=${srtInUri} ! tsparse ! ${delayQueue} ! tsdemux name=demux
158158
demux. ! queue ! video/x-h264 ! h264parse ! video/x-h264 ! avdec_h264 ! output-selector name=osel
159159
osel. ! queue ! isel.
160160
osel. ! queue

0 commit comments

Comments
 (0)