Skip to content

Commit

Permalink
src: lib: stream: set H264 config-terval to every IDR frame
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso committed Oct 1, 2024
1 parent 7b86a74 commit 432a7c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/stream/pipeline/fake_pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl FakePipeline {
" ! h264parse",
" ! capsfilter name={filter_name} caps=video/x-h264,profile={profile},stream-format=avc,alignment=au,width={width},height={height},framerate={interval_denominator}/{interval_numerator}",
" ! tee name={video_tee_name} allow-not-linked=true",
" ! rtph264pay aggregate-mode=zero-latency config-interval=10 pt=96",
" ! rtph264pay aggregate-mode=zero-latency config-interval=-1 pt=96",
" ! tee name={rtp_tee_name} allow-not-linked=true"
),
pattern = pattern,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/stream/pipeline/qr_pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl QrPipeline {
" ! h264parse",
" ! capsfilter name={filter_name} caps=video/x-h264,profile={profile},stream-format=avc,alignment=au,width={width},height={height},framerate={interval_denominator}/{interval_numerator}",
" ! tee name={video_tee_name} allow-not-linked=true",
" ! rtph264pay aggregate-mode=zero-latency config-interval=10 pt=96",
" ! rtph264pay aggregate-mode=zero-latency config-interval=-1 pt=96",
" ! tee name={rtp_tee_name} allow-not-linked=true"
),
profile = "constrained-baseline",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/stream/pipeline/v4l_pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl V4lPipeline {
" ! h264parse", // Here we need the parse to help the stream-format and alignment part, which is being fixed here because avc/au seems to reduce the CPU usage in the RTP payloading part.
" ! capsfilter name={filter_name} caps=video/x-h264,stream-format=avc,alignment=au,width={width},height={height},framerate={interval_denominator}/{interval_numerator}",
" ! tee name={video_tee_name} allow-not-linked=true",
" ! rtph264pay aggregate-mode=zero-latency config-interval=10 pt=96",
" ! rtph264pay aggregate-mode=zero-latency config-interval=-1 pt=96",
" ! tee name={rtp_tee_name} allow-not-linked=true"
),
device = device,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/stream/rtsp/rtsp_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl RTSPServer {
" ! queue leaky=downstream flush-on-eos=true silent=true max-size-buffers=0",
" ! capsfilter caps={rtp_caps:?}",
" ! rtph264depay",
" ! rtph264pay name=pay0 aggregate-mode=zero-latency config-interval=10 pt=96",
" ! rtph264pay name=pay0 aggregate-mode=zero-latency config-interval=-1 pt=96",
),
socket_path = socket_path,
rtp_caps = rtp_caps,
Expand Down

0 comments on commit 432a7c5

Please sign in to comment.