본문 바로가기

gstreamer

미디어 관련내용 정리

nal / au 란 ?

h.264로 인코딩된 비디오를 전송하려면 2가지 옵션이 있다.

1) NALU를 전송프로토콜로 패킷화하기

2) Byte-stream : NALUs앞에 시작코드를 추가하기 ( 이를통해 디코더는 NALU의 시작을 알 수 있다.  ) 

 

이 두옵션은 rtph264pay의 기능에서 찾아볼수 있는데, 

stream-format avc는 1)을 나타내고,  byte-stream은 2)를 나타낸다. 

 

원문 

더보기

To transport h264 encoded video there are two options:
1.) Paketize a NALU into a transport protocol
2.) Byte-stream, which adds a Start Code Prefix in front of NALUs for the
decoder to recognize the beginning of a NALU

These two options are represented in the capabilites of e.g. the rtph264pay.
Stream-format avc represents 1) and stream-format byte-stream represents 2).