Add support rotate and scale to MP4 stream

This commit is contained in:
Alexey Khit
2023-07-06 10:55:58 +03:00
parent e8a7ba056c
commit ea82d7ec2b
3 changed files with 82 additions and 2 deletions

View File

@@ -41,6 +41,11 @@ func (m *Movie) WriteVideo(codec string, width, height uint16, conf []byte) {
m.Write(conf)
m.EndAtom() // AVCC
m.StartAtom("pasp") // Pixel Aspect Ratio
m.WriteUint32(1) // hSpacing
m.WriteUint32(1) // vSpacing
m.EndAtom()
m.EndAtom() // AVC1
}