mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-10-16 13:20:51 +08:00
Add support rotate and scale to MP4 stream
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user