test h265

This commit is contained in:
deepch 2022-09-22 11:15:59 +03:00
parent a027ba9c94
commit b31edccea5

View File

@ -4,10 +4,11 @@ import (
"bytes" "bytes"
"errors" "errors"
"fmt" "fmt"
"time"
"github.com/deepch/vdk/av" "github.com/deepch/vdk/av"
"github.com/deepch/vdk/utils/bits" "github.com/deepch/vdk/utils/bits"
"github.com/deepch/vdk/utils/bits/pio" "github.com/deepch/vdk/utils/bits/pio"
"time"
) )
type SPSInfo struct { type SPSInfo struct {
@ -462,7 +463,8 @@ func (self CodecData) Resolution() string {
} }
func (self CodecData) Tag() string { func (self CodecData) Tag() string {
return fmt.Sprintf("hvc1.%02X%02X%02X", self.RecordInfo.AVCProfileIndication, self.RecordInfo.ProfileCompatibility, self.RecordInfo.AVCLevelIndication) //return fmt.Sprintf("hvc1.%02X%02X%02X", self.RecordInfo.AVCProfileIndication, self.RecordInfo.ProfileCompatibility, self.RecordInfo.AVCLevelIndication)
return "hev1.1.6.L120.90"
} }
func (self CodecData) Bandwidth() string { func (self CodecData) Bandwidth() string {