mirror of
https://github.com/photoprism/photoprism.git
synced 2025-09-26 21:01:58 +08:00
Videos: Increase transcoding bitrate limit default to 60 Mbps #1307
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -112,6 +112,7 @@ func TestContentType(t *testing.T) {
|
||||
|
||||
func TestCompatible(t *testing.T) {
|
||||
t.Run("True", func(t *testing.T) {
|
||||
assert.True(t, Compatible(header.ContentTypeWebm, "video/webm"))
|
||||
assert.True(t, Compatible(header.ContentTypeAv1, "video/av1"))
|
||||
assert.True(t, Compatible(header.ContentTypeAv1, "Video/Av1"))
|
||||
assert.True(t, Compatible(header.ContentTypeJpeg, header.ContentTypeJpeg))
|
||||
|
@@ -54,7 +54,7 @@ func (info Info) VideoSize() int64 {
|
||||
return info.FileSize - info.VideoOffset
|
||||
}
|
||||
|
||||
// VideoBitrate returns the bitrate of the embedded video in MBit/s.
|
||||
// VideoBitrate returns the bitrate of the embedded video in Mbps.
|
||||
func (info Info) VideoBitrate() float64 {
|
||||
videoSize := info.VideoSize()
|
||||
|
||||
|
Reference in New Issue
Block a user