mirror of https://bitbucket.org/ausocean/av.git
Getting started on rtmp output
This commit is contained in:
parent
91bc6fbff9
commit
edb4ffd826
|
@ -107,6 +107,7 @@ const (
|
|||
Mjpeg = 7
|
||||
None = 8
|
||||
Mpegts = 9
|
||||
Rtmp = 10
|
||||
)
|
||||
|
||||
// Default config settings
|
||||
|
@ -226,7 +227,7 @@ func (r *revidInst) ChangeState(config Config) error {
|
|||
}
|
||||
case Mjpeg:
|
||||
if config.Quantization != "" {
|
||||
quantization, _ := strconv.Atoi(config.Quantization)
|
||||
quantization, _ := strconv.Atoi(config.Quantization)
|
||||
if quantization > 0 || config.Bitrate == "" {
|
||||
return errors.New("Bad bitrate or quantization for mjpeg input!")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue