Skip to content

Commit

Permalink
Repeat sps&pps before keyframes
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-hek authored Oct 3, 2024
1 parent 67a116d commit 8f804dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/membrane_http_adaptive_stream/sink_bin.ex
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,13 @@ defmodule Membrane.HTTPAdaptiveStream.SinkBin do

defp get_parser(:H264, state),
do: %H264.Parser{
output_stream_structure: if(state.mp4_parameters_in_band?, do: :avc3, else: :avc1)
output_stream_structure: if(state.mp4_parameters_in_band?, do: :avc3, else: :avc1),
repeat_parameter_sets: true
}

defp get_parser(:H265, state),
do: %H265.Parser{
output_stream_structure: if(state.mp4_parameters_in_band?, do: :hev1, else: :hvc1)
output_stream_structure: if(state.mp4_parameters_in_band?, do: :hev1, else: :hvc1),
repeat_parameter_sets: true
}
end

0 comments on commit 8f804dc

Please sign in to comment.