Disable ENCODER_COPY
parent
23be0f6d17
commit
df7122fe07
2
main.go
2
main.go
|
@ -13,7 +13,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
VERSION = "0.1.0"
|
VERSION = "0.1.1"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Handler struct {
|
type Handler struct {
|
||||||
|
|
|
@ -364,10 +364,6 @@ func (s *Stream) transcodeArgs(startAt float64) []string {
|
||||||
// encoder selection
|
// encoder selection
|
||||||
CV := ENCODER_X264
|
CV := ENCODER_X264
|
||||||
|
|
||||||
if s.m.probe.CodecName == CODEC_H264 && s.quality == QUALITY_MAX {
|
|
||||||
// Use original stream
|
|
||||||
CV = ENCODER_COPY
|
|
||||||
} else {
|
|
||||||
// Check whether hwaccel should be used
|
// Check whether hwaccel should be used
|
||||||
if s.c.VAAPI {
|
if s.c.VAAPI {
|
||||||
CV = ENCODER_VAAPI
|
CV = ENCODER_VAAPI
|
||||||
|
@ -378,7 +374,6 @@ func (s *Stream) transcodeArgs(startAt float64) []string {
|
||||||
extra := "-hwaccel cuda"
|
extra := "-hwaccel cuda"
|
||||||
args = append(args, strings.Split(extra, " ")...)
|
args = append(args, strings.Split(extra, " ")...)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Input specs
|
// Input specs
|
||||||
args = append(args, []string{
|
args = append(args, []string{
|
||||||
|
|
Loading…
Reference in New Issue