schema version 6 with pixel aspect ratio

This makes anamorphic sub streams display correctly, even ones from old
Hikvision cameras that don't properly set the aspect ratio at the H.264
layer.
This commit is contained in:
Scott Lamb
2020-03-19 21:35:42 -07:00
parent 066c086050
commit e5b83c21e1
19 changed files with 1036 additions and 146 deletions

View File

@@ -1,7 +1,7 @@
// vim: set et sw=2 ts=2:
//
// This file is part of Moonfire NVR, a security camera network video recorder.
// Copyright (C) 2018 The Moonfire NVR Authors
// Copyright (C) 2018-2020 The Moonfire NVR Authors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -79,6 +79,12 @@ export default class Recording {
/** @const {!number} */
this.videoSampleEntryHeight = videoSampleEntryJson.height;
/** @const {!number} */
this.videoSampleEntryPaspHSpacing = videoSampleEntryJson.paspHSpacing;
/** @const {!number} */
this.videoSampleEntryPaspVSpacing = videoSampleEntryJson.paspVSpacing;
}
/**