具有多个PPS和SPS的H264 [英] H264 with multiple PPS and SPS
问题描述
我有一张卡,它直接在每个I帧之前按顺序生成带有SPS(序列参数集)和PPS(图像参数集)的H264流.我看到大多数H264流在第一个I帧中都包含PPS和SPS.
I have a card that produces a H264 stream with a SPS (Sequence Parameter Set) and a PPS (Picture Parameter Set), in that order, directly before each I-Frame. I see that most H264 streams contain a PPS and SPS at the first I-Frame.
这是推荐的吗?解码器/复用器通常是否支持多个PPS和SRS?
Is this recommended? Do decoders/muxers typically support multiple PPS and SRS?
推荐答案
H.264具有多种流格式.一种变体称为附件B".
H.264 comes in a variety of stream formats. One variation is called "Annex B".
(AUD)(SPS)(PPS)(I-Slice)(PPS)(P-Slice)(PPS)(P-Slice)...(AUD)(SPS)(PPS)(I-Slice)
(AUD)(SPS)(PPS)(I-Slice)(PPS)(P-Slice)(PPS)(P-Slice) ... (AUD)(SPS)(PPS)(I-Slice).
通常,您在每个I帧之前看到SPS/PPS,在其他切片之前看到PPS.
Typically you see SPS/PPS before each I frame and PPS before other slices.
大多数解码器/混合器都对附件B"和SPS/PPS的重复感到满意.
Most decoders/muxers are happy with "Annex B" and the repetition of SPS/PPS.
如果更改中间格式和SPS/PPS,大多数解码器/混合器将无济于事.
Most decoders/muxers won't do anything meaningful if you change the format and SPS/PPS midstream.
大多数解码器/复用器在设置过程中会解析第一个SPS/PPS,而忽略后续的SPS.
Most decoders/muxers parse the first SPS/PPS as part of a setup process and ignore subsequent SPSs.
某些解码器/复用器更喜欢没有(AUD),起始代码和SPS/PPS的H.264. 然后,在设置解码器/复用器的过程中,必须带外馈送SPS/PPS.
Some decoders/muxers prefer H.264 without the (AUD), start codes and SPS/PPS. Then you have to feed SPS/PPS out of band as part of setting up the decoders/muxers.
这篇关于具有多个PPS和SPS的H264的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!