Documentation
¶
Overview ¶
Package ivfwriter implements IVF media container writer
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IVFWriter ¶
type IVFWriter struct {
// contains filtered or unexported fields
}
IVFWriter is used to take RTP packets and write them to an IVF on disk.
type Option ¶
An Option configures a SampleBuilder.
func WithDirectPTS ¶
func WithDirectPTS() Option
WithDirectPTS enables direct use of RTP timestamps as PTS values without millisecond conversion.
When this option is used, RTP timestamps are written directly as PTS values, preserving full timestamp precision. Use WithFrameRate to set the appropriate timebase (e.g., WithFrameRate(1, 90000) for standard 90kHz RTP clock).
Example usage for standard RTP video (90kHz clock rate):
NewWith(file, WithFrameRate(1, 90000), WithDirectPTS())