Exemple #1
0
func (s *Stream) SetSampleAspectRatio(aspectRatio *avutil.Rational) {
	s.CAVStream.sample_aspect_ratio.num = (C.int)(aspectRatio.Numerator())
	s.CAVStream.sample_aspect_ratio.den = (C.int)(aspectRatio.Denominator())
}
Exemple #2
0
func (s *Stream) SetAverageFrameRate(frameRate *avutil.Rational) {
	s.CAVStream.avg_frame_rate.num = (C.int)(frameRate.Numerator())
	s.CAVStream.avg_frame_rate.den = (C.int)(frameRate.Denominator())
}
Exemple #3
0
func (s *Stream) SetTimeBase(timeBase *avutil.Rational) {
	s.CAVStream.time_base.num = (C.int)(timeBase.Numerator())
	s.CAVStream.time_base.den = (C.int)(timeBase.Denominator())
}