Skip to content

Commit c110328

Browse files
src: lib: stream: set H264 config-interval to every IDR frame
1 parent c90169e commit c110328

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/lib/stream/pipeline/fake_pipeline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl FakePipeline {
7575
" ! h264parse",
7676
" ! capsfilter name={filter_name} caps=video/x-h264,profile={profile},stream-format=avc,alignment=au,width={width},height={height},framerate={interval_denominator}/{interval_numerator}",
7777
" ! tee name={video_tee_name} allow-not-linked=true",
78-
" ! rtph264pay aggregate-mode=zero-latency config-interval=10 pt=96",
78+
" ! rtph264pay aggregate-mode=zero-latency config-interval=-1 pt=96",
7979
" ! tee name={rtp_tee_name} allow-not-linked=true"
8080
),
8181
pattern = pattern,

src/lib/stream/pipeline/qr_pipeline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl QrPipeline {
7171
" ! h264parse",
7272
" ! capsfilter name={filter_name} caps=video/x-h264,profile={profile},stream-format=avc,alignment=au,width={width},height={height},framerate={interval_denominator}/{interval_numerator}",
7373
" ! tee name={video_tee_name} allow-not-linked=true",
74-
" ! rtph264pay aggregate-mode=zero-latency config-interval=10 pt=96",
74+
" ! rtph264pay aggregate-mode=zero-latency config-interval=-1 pt=96",
7575
" ! tee name={rtp_tee_name} allow-not-linked=true"
7676
),
7777
profile = "constrained-baseline",

src/lib/stream/pipeline/v4l_pipeline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl V4lPipeline {
5858
" ! h264parse", // Here we need the parse to help the stream-format and alignment part, which is being fixated here because avc/au seems to reduce the CPU usage in the RTP payloading part.
5959
" ! capsfilter name={filter_name} caps=video/x-h264,stream-format=avc,alignment=au,width={width},height={height},framerate={interval_denominator}/{interval_numerator}",
6060
" ! tee name={video_tee_name} allow-not-linked=true",
61-
" ! rtph264pay aggregate-mode=zero-latency config-interval=10 pt=96",
61+
" ! rtph264pay aggregate-mode=zero-latency config-interval=-1 pt=96",
6262
" ! tee name={rtp_tee_name} allow-not-linked=true"
6363
),
6464
device = device,

src/lib/stream/rtsp/rtsp_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl RTSPServer {
171171
" ! queue leaky=downstream flush-on-eos=true silent=true max-size-buffers=0",
172172
" ! capsfilter caps={rtp_caps:?}",
173173
" ! rtph264depay",
174-
" ! rtph264pay name=pay0 aggregate-mode=zero-latency config-interval=10 pt=96",
174+
" ! rtph264pay name=pay0 aggregate-mode=zero-latency config-interval=-1 pt=96",
175175
),
176176
socket_path = socket_path,
177177
rtp_caps = rtp_caps,

0 commit comments

Comments
 (0)